Created
October 24, 2016 22:19
-
-
Save brandocorp/197e42d10cc52f062c428bc1d5407ded to your computer and use it in GitHub Desktop.
SSH Apparmor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
usr.sbin.sshd | |
# Last Modified: Mon Oct 24 22:15:48 2016 | |
#include <tunables/global> | |
/usr/sbin/sshd flags=(complain) { | |
#include <abstractions/base> | |
#include <abstractions/consoles> | |
#include <abstractions/nameservice> | |
#include <abstractions/openssl> | |
capability setgid, | |
capability sys_resource, | |
/etc/ssh/ssh_host_dsa_key r, | |
/etc/ssh/ssh_host_dsa_key.pub r, | |
/etc/ssh/ssh_host_ecdsa_key r, | |
/etc/ssh/ssh_host_ecdsa_key.pub r, | |
/etc/ssh/ssh_host_ed25519_key r, | |
/etc/ssh/ssh_host_ed25519_key.pub r, | |
/etc/ssh/ssh_host_rsa_key r, | |
/etc/ssh/ssh_host_rsa_key.pub r, | |
/etc/ssh/sshd_config r, | |
/proc/*/fd/ r, | |
/proc/*/oom_score_adj rw, | |
/run/sshd.pid w, | |
/usr/sbin/sshd mr, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment