[GH-ISSUE #5510] Error chdir: sandbox.c:1117 sandbox: Permission denied #3021

Closed
opened 2026-05-05 09:40:21 -06:00 by gitea-mirror · 4 comments
Owner

Originally created by @gitsteff on GitHub (Dec 8, 2022).
Original GitHub issue: https://github.com/netblue30/firejail/issues/5510

Hi.

When running firejail I get this output:

$ firejail --debug --profile=~/.config/firejail/freeplane.profile \
  /home/sl/Software/Freeplane/freeplane/freeplane.sh
Creating empty /run/firejail/mnt/dns-etc/zsh directory
Mount-bind /run/firejail/mnt/dns-etc on top of /etc
Error chdir: sandbox.c:1117 sandbox: Permission denied
Error: proc 438162 cannot sync with peer: unexpected EOF
Peer 438163 unexpectedly exited with status 1

The error message is showing no hint at all which chdir failed. Where can I get this information from?

Originally created by @gitsteff on GitHub (Dec 8, 2022). Original GitHub issue: https://github.com/netblue30/firejail/issues/5510 Hi. When running firejail I get this output: ```console $ firejail --debug --profile=~/.config/firejail/freeplane.profile \ /home/sl/Software/Freeplane/freeplane/freeplane.sh Creating empty /run/firejail/mnt/dns-etc/zsh directory Mount-bind /run/firejail/mnt/dns-etc on top of /etc Error chdir: sandbox.c:1117 sandbox: Permission denied Error: proc 438162 cannot sync with peer: unexpected EOF Peer 438163 unexpectedly exited with status 1 ``` The error message is showing no hint at all which chdir failed. Where can I get this information from?
gitea-mirror 2026-05-05 09:40:21 -06:00
Author
Owner

@rusty-snake commented on GitHub (Dec 8, 2022):

As a first step you should provide necessary details like firejail version and the profile you use. The easiest way is to follow the bug template.

<!-- gh-comment-id:1342890814 --> @rusty-snake commented on GitHub (Dec 8, 2022): As a first step you should provide necessary details like firejail version and the profile you use. The easiest way is to follow the bug template.
Author
Owner

@gitsteff commented on GitHub (Dec 9, 2022):

Hi.
I fixed it by myself, thanks for your effort.

Maybe you can make the log/messages a bit more verbose to see which dir is meant?

Thanks.

<!-- gh-comment-id:1344001235 --> @gitsteff commented on GitHub (Dec 9, 2022): Hi. I fixed it by myself, thanks for your effort. Maybe you can make the log/messages a bit more verbose to see which dir is meant? Thanks.
Author
Owner

@kmk3 commented on GitHub (Dec 9, 2022):

@gitsteff on Dec 9:

Maybe you can make the log/messages a bit more verbose to see which dir is
meant?

Thanks.

Good idea; done in commit f24a49a2c ("sandbox.c: print the dir on failed
chdir(cfg.homedir)", 2022-12-09).

<!-- gh-comment-id:1344183954 --> @kmk3 commented on GitHub (Dec 9, 2022): @gitsteff [on Dec 9](https://github.com/netblue30/firejail/issues/5510#issuecomment-1344001235): > Maybe you can make the log/messages a bit more verbose to see which dir is > meant? > > Thanks. Good idea; done in commit f24a49a2c ("sandbox.c: print the dir on failed chdir(cfg.homedir)", 2022-12-09).
Author
Owner

@kmk3 commented on GitHub (Dec 9, 2022):

@gitsteff on Dec 9:

Hi. I fixed it by myself, thanks for your effort.

Alright, closing this.

<!-- gh-comment-id:1344187882 --> @kmk3 commented on GitHub (Dec 9, 2022): @gitsteff [on Dec 9](https://github.com/netblue30/firejail/issues/5510#issuecomment-1344001235): > Hi. I fixed it by myself, thanks for your effort. Alright, closing this.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/firejail#3021
No description provided.