mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-21 14:56:05 -06:00
disable-common.inc: read-only access to ~/.ssh/authorized_keys
disable-common.inc blacklists whole .ssh, but some profiles (e.g. idea.sh) unblacklists it to allow git over ssh with public key auth. But this creates security hole, since firejailed app could modify ~/.ssh/authorized_keys and allow arbitrary code execution on the host with sshd installed (e.g. ssh localhost and run any program) or even open backdoor for remote attacker. This commits disallows write access to ~/.ssh/authorized_keys even if .ssh was unblacklisted. Signed-off-by: Alexander GQ Gerasiov <gq@cs.msu.su>
This commit is contained in:
parent
a51c369b8c
commit
b5542fc948
1 changed files with 3 additions and 0 deletions
|
|
@ -194,6 +194,9 @@ read-only ${HOME}/.zshenv
|
|||
read-only ${HOME}/.zshrc
|
||||
read-only ${HOME}/.zshrc.local
|
||||
|
||||
# Remote access
|
||||
read-only ${HOME}/.ssh/authorized_keys
|
||||
|
||||
# Initialization files that allow arbitrary command execution
|
||||
read-only ${HOME}/.caffrc
|
||||
read-only ${HOME}/.dotfiles
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue