mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
allow-ssh.inc: allow /etc/ssh/ssh_config
This is the system-wide equivalent of ~/.ssh/config.
$ pacman -Q openssh
openssh 8.4p1-2
Reasons for blacklisting both /etc/ssh and /etc/ssh/* on
disable-common.inc:
Leave /etc/ssh that way so that profiles without allow-ssh.inc remain
unable to see inside of /etc/ssh. And blacklist /etc/ssh/* so that
profiles with allow-ssh.inc are able to access only nonblacklisted files
inside of /etc/ssh.
This commit is contained in:
parent
83ac023972
commit
3849e1201d
4 changed files with 5 additions and 2 deletions
|
|
@ -3,3 +3,5 @@
|
|||
include allow-ssh.local
|
||||
|
||||
noblacklist ${HOME}/.ssh
|
||||
noblacklist /etc/ssh
|
||||
noblacklist /etc/ssh/ssh_config
|
||||
|
|
|
|||
|
|
@ -396,6 +396,7 @@ blacklist /etc/shadow
|
|||
blacklist /etc/shadow+
|
||||
blacklist /etc/shadow-
|
||||
blacklist /etc/ssh
|
||||
blacklist /etc/ssh/*
|
||||
blacklist /home/.ecryptfs
|
||||
blacklist /home/.fscrypt
|
||||
blacklist /var/backup
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ include ssh-agent.local
|
|||
# Persistent global definitions
|
||||
include globals.local
|
||||
|
||||
noblacklist /etc/ssh
|
||||
noblacklist /etc/ssh/*
|
||||
noblacklist /tmp/ssh-*
|
||||
|
||||
# Allow ssh (blacklisted by disable-common.inc)
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ include ssh.local
|
|||
# Persistent global definitions
|
||||
include globals.local
|
||||
|
||||
noblacklist /etc/ssh
|
||||
noblacklist /etc/ssh/*
|
||||
noblacklist /tmp/ssh-*
|
||||
# nc can be used as ProxyCommand, e.g. when using tor
|
||||
noblacklist ${PATH}/nc
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue