mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-18 17:08:09 +01:00
sshd: Ubuntu compatibility (#37)
* Ubuntu, allow fallback * reverting to Ubuntu compatibility only
This commit is contained in:
parent
9a48515089
commit
8deddc8a2c
1 changed files with 6 additions and 4 deletions
|
@ -43,14 +43,17 @@ profile sshd @{exec_path} flags=(attach_disconnected) {
|
||||||
|
|
||||||
ptrace (read,trace) peer=unconfined,
|
ptrace (read,trace) peer=unconfined,
|
||||||
|
|
||||||
|
network inet stream,
|
||||||
|
network inet6 stream,
|
||||||
|
|
||||||
@{exec_path} mrix,
|
@{exec_path} mrix,
|
||||||
|
|
||||||
/{usr/,}bin/{,b,d,rb}ash rUx,
|
/{usr/,}bin/{,b,d,rb}ash rUx,
|
||||||
/{usr/,}bin/{c,k,tc,z}sh rUx,
|
/{usr/,}bin/{c,k,tc,z}sh rUx,
|
||||||
/{usr/,}{s,}bin/nologin rPx,
|
/{usr/,}{s,}bin/nologin rPx,
|
||||||
/{usr/,}bin/false rix,
|
|
||||||
/{usr/,}bin/passwd rPx,
|
/{usr/,}bin/passwd rPx,
|
||||||
/{usr/,}lib/openssh/sftp-server rPx,
|
/{usr/,}lib/openssh/sftp-server rPx,
|
||||||
|
/{usr/,}bin/false rix,
|
||||||
|
|
||||||
/etc/default/locale r,
|
/etc/default/locale r,
|
||||||
/etc/environment r,
|
/etc/environment r,
|
||||||
|
@ -73,7 +76,7 @@ profile sshd @{exec_path} flags=(attach_disconnected) {
|
||||||
@{run}/motd.dynamic.new rw,
|
@{run}/motd.dynamic.new rw,
|
||||||
@{run}/resolvconf/resolv.conf r,
|
@{run}/resolvconf/resolv.conf r,
|
||||||
@{run}/systemd/sessions/[0-9]*.ref rw,
|
@{run}/systemd/sessions/[0-9]*.ref rw,
|
||||||
@{run}/systemd/userdb/ r,
|
@{run}/systemd/notify w,
|
||||||
|
|
||||||
@{sys}/fs/cgroup/*/user/*/[0-9]*/ rw,
|
@{sys}/fs/cgroup/*/user/*/[0-9]*/ rw,
|
||||||
@{sys}/fs/cgroup/systemd/user.slice/user-@{uid}.slice/session-c[0-9]*.scope/ rw,
|
@{sys}/fs/cgroup/systemd/user.slice/user-@{uid}.slice/session-c[0-9]*.scope/ rw,
|
||||||
|
@ -87,7 +90,6 @@ profile sshd @{exec_path} flags=(attach_disconnected) {
|
||||||
@{PROC}/@{pids}/fd/ r,
|
@{PROC}/@{pids}/fd/ r,
|
||||||
@{PROC}/1/environ r,
|
@{PROC}/1/environ r,
|
||||||
@{PROC}/cmdline r,
|
@{PROC}/cmdline r,
|
||||||
@{PROC}/cmdline r,
|
|
||||||
@{PROC}/filesystems r,
|
@{PROC}/filesystems r,
|
||||||
@{PROC}/sys/kernel/ngroups_max r,
|
@{PROC}/sys/kernel/ngroups_max r,
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue