mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #3927] [INFO] Whitelist ssh_config #2456
Labels
No labels
LTS merge
LTS merge
bug
bug
converted-to-discussion
doc-todo
documentation
duplicate
enhancement
file-transfer
firecfg
firejail-in-firejail
firetools
graphics
help wanted
information_old
installation
invalid
modif
moved
needinfo
networking
notabug
notourbug
old-version
overlayfs
packaging
profile-request
pull-request
question
question_old
removal
runtime-permissions
sandbox-ipc
security
stale
wiki
wiki
wontfix
wordpress
workaround
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/firejail#2456
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @rgomez-eng on GitHub (Jan 29, 2021).
Original GitHub issue: https://github.com/netblue30/firejail/issues/3927
We are using firejail for very specific use case, only for jailed shell and access to basic tools inside the host for multiple users. Therefor we don't configure any profile. Always used the default.
We created a
custom2020.incand added it todefault.profileright after theinclude globals.localwithinclude custom2020.incThe file content is the following.
As
/etc/sshis blacklisted on theinclude disable-common.incand I would like to have the system-widessh_configfile available for all users there is a need to have it readable.However the
blacklist /etc/sshthat comes after by theinclude disable-common.incI would expect it to be blacklisting all the other files again.I guess something is wrong in the file and the settings order.
@rusty-snake commented on GitHub (Jan 29, 2021):
blacklist /etc/sshmeansblacklist /etc/sshand notblacklist /etc/ssh/*so only that directory is blacklisted. If you the add anoblacklisttheblacklistis ognored.This means
/etc/ssh/ssh_configwill be the only file in/etc, no passwd, ssl, pki, bashrc, wgetrc, vimrc, crypto-policies, fonts, machine-id, … .This is probably what you want:
Allow
/etc/ssh/ssh_configbut blacklist everything else in/etc/ssh(when the sandbox is started).@kmk3 commented on GitHub (Jan 29, 2021):
@rgomez-eng commented 1 hour ago:
Hello, allowing ssh_config is part of #3885; see commit
3849e1201("allow-ssh.inc: allow /etc/ssh/ssh_config"). The only difference is that it's
done with blacklisting rather than whitelisting (just like the rest of
disable-common.inc).
@rusty-snake commented 44 minutes ago:
That commit does essentially this (I guess I did it right then :p)
@rgomez-eng commented on GitHub (Jan 29, 2021):
Thank you @rusty-snake worked like I charm. Also I think I got better understanding now.
@kmk3 good job