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:
Kelvin M. Klann 2021-01-09 21:43:57 -03:00
parent 83ac023972
commit 3849e1201d
4 changed files with 5 additions and 2 deletions

View file

@ -3,3 +3,5 @@
include allow-ssh.local
noblacklist ${HOME}/.ssh
noblacklist /etc/ssh
noblacklist /etc/ssh/ssh_config

View file

@ -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

View file

@ -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)

View file

@ -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