aboutsummaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2023-08-21 10:21:11 -0300
committerLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2023-08-21 10:41:47 -0300
commit5ba5ed07640eae8f94e8bcdaff1573a5161339e3 (patch)
tree137aef9dfcdcee2ec75736687a9646c10dbc5bad /etc/inc
parenttests: fix error when /dev/kmsg is missing (diff)
downloadfirejail-5ba5ed07640eae8f94e8bcdaff1573a5161339e3.tar.gz
firejail-5ba5ed07640eae8f94e8bcdaff1573a5161339e3.tar.zst
firejail-5ba5ed07640eae8f94e8bcdaff1573a5161339e3.zip
profiles: restore entries for ssh-related paths
This partially reverts commit d94f54736 ("disable all ssh utilities in disable-common.inc", 2023-08-20). Certain files in ~/.ssh are only used by sshd (not by ssh), so always blacklist them. Also, ssh itself does not need write access to the configuration files, so make them read-only by default. For details, see commit 2ec3f3a96 ("disable-common.inc: add missing openssh paths", 2021-01-09) / PR #3885. Cc: @netblue30
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/disable-common.inc8
1 files changed, 7 insertions, 1 deletions
diff --git a/etc/inc/disable-common.inc b/etc/inc/disable-common.inc
index faed10008..010cb05b6 100644
--- a/etc/inc/disable-common.inc
+++ b/etc/inc/disable-common.inc
@@ -319,9 +319,13 @@ read-only ${HOME}/.zshenv
319read-only ${HOME}/.zshrc 319read-only ${HOME}/.zshrc
320read-only ${HOME}/.zshrc.local 320read-only ${HOME}/.zshrc.local
321 321
322# Remote access - ${HOME}/.ssh directory blacklisted in top secret section below 322# Remote access (used only by sshd; should always be blacklisted)
323blacklist ${HOME}/.rhosts 323blacklist ${HOME}/.rhosts
324blacklist ${HOME}/.shosts 324blacklist ${HOME}/.shosts
325blacklist ${HOME}/.ssh/authorized_keys
326blacklist ${HOME}/.ssh/authorized_keys2
327blacklist ${HOME}/.ssh/environment
328blacklist ${HOME}/.ssh/rc
325blacklist /etc/hosts.equiv 329blacklist /etc/hosts.equiv
326 330
327# Initialization files that allow arbitrary command execution 331# Initialization files that allow arbitrary command execution
@@ -354,6 +358,8 @@ read-only ${HOME}/.nanorc
354read-only ${HOME}/.npmrc 358read-only ${HOME}/.npmrc
355read-only ${HOME}/.pythonrc.py 359read-only ${HOME}/.pythonrc.py
356read-only ${HOME}/.reportbugrc 360read-only ${HOME}/.reportbugrc
361read-only ${HOME}/.ssh/config
362read-only ${HOME}/.ssh/config.d
357read-only ${HOME}/.tmux.conf 363read-only ${HOME}/.tmux.conf
358read-only ${HOME}/.vim 364read-only ${HOME}/.vim
359read-only ${HOME}/.viminfo 365read-only ${HOME}/.viminfo