[GH-ISSUE #1725] SSH fails, can't access /dev/null #1167

Closed
opened 2026-05-05 07:34:36 -06:00 by gitea-mirror · 7 comments
Owner

Originally created by @gea0 on GitHub (Jan 11, 2018).
Original GitHub issue: https://github.com/netblue30/firejail/issues/1725

With version 0.9.52, ssh fails:

$ ssh host
Couldn't open /dev/null: Permission denied

Which information should i provide to debug this?

Originally created by @gea0 on GitHub (Jan 11, 2018). Original GitHub issue: https://github.com/netblue30/firejail/issues/1725 With version 0.9.52, ssh fails: ``` $ ssh host Couldn't open /dev/null: Permission denied ``` Which information should i provide to debug this?
gitea-mirror 2026-05-05 07:34:36 -06:00
Author
Owner

@chiraag-nataraj commented on GitHub (Jan 11, 2018):

Can you provide the output of firejail --debug -- ssh user@host? You're using the default ssh profile, right?

<!-- gh-comment-id:357003905 --> @chiraag-nataraj commented on GitHub (Jan 11, 2018): Can you provide the output of `firejail --debug -- ssh user@host`? You're using the default `ssh` profile, right?
Author
Owner

@chiraag-nataraj commented on GitHub (Jul 15, 2018):

@gea0 Could you please provide the debugging output? We can't do much without that.

<!-- gh-comment-id:405115341 --> @chiraag-nataraj commented on GitHub (Jul 15, 2018): @gea0 Could you please provide the debugging output? We can't do much without that.
Author
Owner

@chiraag-nataraj commented on GitHub (Sep 28, 2018):

Going to close since there was no response and we can't help debug this without more info. @gea0 please feel free to re-open if you are able to provide more output.

<!-- gh-comment-id:425567046 --> @chiraag-nataraj commented on GitHub (Sep 28, 2018): Going to close since there was no response and we can't help debug this without more info. @gea0 please feel free to re-open if you are able to provide more output.
Author
Owner

@danielrocher commented on GitHub (Mar 21, 2019):

I confirm this bug

firejail --debug -- ssh user@host 2>&1 | grep null
lrwx------ 1 user user 64 Mar 21 22:33 0 -> /dev/null
sbox run: /usr/lib/x86_64-linux-gnu/firejail/fseccomp protocol build unix,inet,inet6 /run/firejail/mnt/seccomp.protocol (null) 
Disable /dev/null (requested /home/user/.adobe)
Disable /dev/null (requested /home/user/.macromedia)
lrwx------ 1 user user 64 Mar 21 22:33 0 -> /dev/null
lrwx------ 1 user user 64 Mar 21 22:33 0 -> /dev/null
lrwx------ 1 user user 64 Mar 21 22:33 0 -> /dev/null
sbox run: /usr/lib/x86_64-linux-gnu/firejail/fseccomp print /run/firejail/mnt/seccomp.protocol (null) 
sbox run: /usr/lib/x86_64-linux-gnu/firejail/fseccomp print /run/firejail/mnt/seccomp.32 (null) 
sbox run: /usr/lib/x86_64-linux-gnu/firejail/fseccomp print /run/firejail/mnt/seccomp (null) 

I removed /home/user/.adobe and /home/user/.macromedia, and now it's works fine.

Thanks

<!-- gh-comment-id:475413243 --> @danielrocher commented on GitHub (Mar 21, 2019): I confirm this bug ``` firejail --debug -- ssh user@host 2>&1 | grep null lrwx------ 1 user user 64 Mar 21 22:33 0 -> /dev/null sbox run: /usr/lib/x86_64-linux-gnu/firejail/fseccomp protocol build unix,inet,inet6 /run/firejail/mnt/seccomp.protocol (null) Disable /dev/null (requested /home/user/.adobe) Disable /dev/null (requested /home/user/.macromedia) lrwx------ 1 user user 64 Mar 21 22:33 0 -> /dev/null lrwx------ 1 user user 64 Mar 21 22:33 0 -> /dev/null lrwx------ 1 user user 64 Mar 21 22:33 0 -> /dev/null sbox run: /usr/lib/x86_64-linux-gnu/firejail/fseccomp print /run/firejail/mnt/seccomp.protocol (null) sbox run: /usr/lib/x86_64-linux-gnu/firejail/fseccomp print /run/firejail/mnt/seccomp.32 (null) sbox run: /usr/lib/x86_64-linux-gnu/firejail/fseccomp print /run/firejail/mnt/seccomp (null) ``` I removed /home/user/.adobe and /home/user/.macromedia, and now it's works fine. Thanks
Author
Owner

@ghost commented on GitHub (Mar 22, 2019):

@danielrocher Are you using firejail 0.9.52 too like the OP? It's likely this has been fixed in later versions. With the ssh profile in git master I see the following, which is expected behavior IMHO:

$ ssh host
ssh: Could not resolve hostname host: No address associated with hostname

<!-- gh-comment-id:475602775 --> @ghost commented on GitHub (Mar 22, 2019): @danielrocher Are you using firejail 0.9.52 too like the OP? It's likely this has been fixed in later versions. With the ssh profile in git master I see the following, which is expected behavior IMHO: $ ssh host ssh: Could not resolve hostname host: No address associated with hostname
Author
Owner

@danielrocher commented on GitHub (Mar 22, 2019):

Yes, I use Ubuntu 18.04 LTS 64 bits (xfce)

$ firejail --version
firejail version 0.9.52

Compile time support:
	- AppArmor support is enabled
	- AppImage support is enabled
	- bind support is enabled
	- chroot support is enabled
	- file and directory whitelisting support is enabled
	- file transfer support is enabled
	- git install support is disabled
	- networking support is enabled
	- overlayfs support is enabled
	- private-home support is enabled
	- seccomp-bpf support is enabled
	- user namespace support is enabled
	- X11 sandboxing support is enabled
$ ssh host
ssh: Could not resolve hostname host: Name or service not known
<!-- gh-comment-id:475613241 --> @danielrocher commented on GitHub (Mar 22, 2019): Yes, I use Ubuntu 18.04 LTS 64 bits (xfce) ``` $ firejail --version firejail version 0.9.52 Compile time support: - AppArmor support is enabled - AppImage support is enabled - bind support is enabled - chroot support is enabled - file and directory whitelisting support is enabled - file transfer support is enabled - git install support is disabled - networking support is enabled - overlayfs support is enabled - private-home support is enabled - seccomp-bpf support is enabled - user namespace support is enabled - X11 sandboxing support is enabled ``` ``` $ ssh host ssh: Could not resolve hostname host: Name or service not known ```
Author
Owner

@ghost commented on GitHub (Mar 22, 2019):

@danielrocher Thanks for your response. Lots of things have changed since 0.9.52. You might want to install firejail from this PPA, maintained by @reinerh to keep up with all the security fixes/enhancements.

<!-- gh-comment-id:475639948 --> @ghost commented on GitHub (Mar 22, 2019): @danielrocher Thanks for your response. Lots of things have changed since 0.9.52. You might want to install firejail from [this PPA](https://launchpad.net/~deki/+archive/ubuntu/firejail), maintained by @reinerh to keep up with all the security fixes/enhancements.
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#1167
No description provided.