aboutsummaryrefslogtreecommitdiffstats
path: root/etc/profile-m-z
diff options
context:
space:
mode:
authorLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2021-01-10 14:29:14 -0300
committerLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2021-01-27 18:18:39 -0300
commitf8df786908bb9e4c8a5ec6b65e4a7b0b178954e1 (patch)
treefc67cd9073f5f3ef7b7ba3944fb1c75e93dcb260 /etc/profile-m-z
parentallow-ssh.inc: allow /etc/ssh/ssh_config (diff)
downloadfirejail-f8df786908bb9e4c8a5ec6b65e4a7b0b178954e1.tar.gz
firejail-f8df786908bb9e4c8a5ec6b65e4a7b0b178954e1.tar.zst
firejail-f8df786908bb9e4c8a5ec6b65e4a7b0b178954e1.zip
ssh: deny access to the rest of /etc/ssh/*
ssh_config (allowed on allow-ssh.inc) is the only file in /etc/ssh that is used by ssh(1). The other paths are only used by sshd(8), so stop allowing them on ssh.profile and ssh-agent.profile. Path examples from sshd(8): * /etc/ssh/moduli * /etc/ssh/ssh_host_ecdsa_key * /etc/ssh/ssh_host_ecdsa_key.pub * /etc/ssh/ssh_known_hosts * /etc/ssh/sshd_config * /etc/ssh/sshrc $ pacman -Q openssh openssh 8.4p1-2
Diffstat (limited to 'etc/profile-m-z')
-rw-r--r--etc/profile-m-z/ssh-agent.profile1
-rw-r--r--etc/profile-m-z/ssh.profile1
2 files changed, 0 insertions, 2 deletions
diff --git a/etc/profile-m-z/ssh-agent.profile b/etc/profile-m-z/ssh-agent.profile
index 0b7caed7d..60c7b510c 100644
--- a/etc/profile-m-z/ssh-agent.profile
+++ b/etc/profile-m-z/ssh-agent.profile
@@ -6,7 +6,6 @@ include ssh-agent.local
6# Persistent global definitions 6# Persistent global definitions
7include globals.local 7include globals.local
8 8
9noblacklist /etc/ssh/*
10noblacklist /tmp/ssh-* 9noblacklist /tmp/ssh-*
11 10
12# Allow ssh (blacklisted by disable-common.inc) 11# Allow ssh (blacklisted by disable-common.inc)
diff --git a/etc/profile-m-z/ssh.profile b/etc/profile-m-z/ssh.profile
index eb7bc3ec5..3ddd96df4 100644
--- a/etc/profile-m-z/ssh.profile
+++ b/etc/profile-m-z/ssh.profile
@@ -7,7 +7,6 @@ include ssh.local
7# Persistent global definitions 7# Persistent global definitions
8include globals.local 8include globals.local
9 9
10noblacklist /etc/ssh/*
11noblacklist /tmp/ssh-* 10noblacklist /tmp/ssh-*
12# nc can be used as ProxyCommand, e.g. when using tor 11# nc can be used as ProxyCommand, e.g. when using tor
13noblacklist ${PATH}/nc 12noblacklist ${PATH}/nc