Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ssh-agent: hardening #5753

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
27 changes: 25 additions & 2 deletions etc/profile-m-z/ssh-agent.profile
Original file line number Diff line number Diff line change
@@ -1,37 +1,60 @@
# Firejail profile for ssh-agent
# Description: OpenSSH authentication agent
# This file is overwritten after every install/update
quiet
# Persistent local customizations
include ssh-agent.local
# Persistent global definitions
include globals.local

blacklist ${RUNUSER}/wayland-*

# Allow ssh (blacklisted by disable-common.inc)
include allow-ssh.inc

blacklist /tmp/.X11-unix
blacklist ${RUNUSER}/wayland-*
ignore noexec ${RUNUSER}

include disable-common.inc
include disable-devel.inc
include disable-exec.inc
include disable-interpreters.inc
include disable-proc.inc
include disable-programs.inc
include disable-shell.inc
include disable-X11.inc
include disable-xdg.inc

include whitelist-common.inc
include whitelist-run-common.inc
include whitelist-runuser-common.inc
glitsj16 marked this conversation as resolved.
Show resolved Hide resolved
include whitelist-usr-share-common.inc

apparmor
caps.drop all
machine-id
netfilter
no3d
nodvd
noinput
nogroups
nonewprivs
noprinters
noroot
nosound
notv
novideo
protocol unix,inet,inet6
seccomp
tracelog

disable-mnt
private-bin ssh-agent
private-cache
private-dev
writable-run-user

dbus-user none
dbus-system none

memory-deny-write-execute
restrict-namespaces