mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-30 23:05:11 +01:00
feat(abs): update some abstractions.
This commit is contained in:
parent
c852fd3a01
commit
92f83d9e8d
3 changed files with 18 additions and 3 deletions
|
@ -23,7 +23,7 @@
|
|||
mount options=(rw silent rslave) -> /,
|
||||
mount fstype=devpts options=(rw nosuid noexec) devpts -> /newroot/dev/pts/,
|
||||
mount fstype=proc options=(rw nosuid nodev noexec) proc -> /newroot/@{PROC}/,
|
||||
mount fstype=tmpfs options=(rw nosuid nodev) tmpfs -> /newroot/dev/,
|
||||
mount fstype=tmpfs options=(rw nosuid nodev) tmpfs -> /newroot/{,**},
|
||||
mount fstype=tmpfs options=(rw nosuid nodev) tmpfs -> /tmp/,
|
||||
|
||||
remount /newroot/{,**},
|
||||
|
|
|
@ -15,6 +15,8 @@
|
|||
member=Notify
|
||||
peer=(name=:*, label=dconf-service),
|
||||
|
||||
/usr/share/dconf/profile/gdm r,
|
||||
|
||||
/etc/dconf/** r,
|
||||
|
||||
owner @{user_config_dirs}/dconf/user r,
|
||||
|
|
|
@ -11,6 +11,8 @@
|
|||
include <abstractions/wutmp>
|
||||
|
||||
capability audit_write,
|
||||
capability dac_override,
|
||||
capability dac_read_search,
|
||||
capability net_admin,
|
||||
capability setgid,
|
||||
capability setuid,
|
||||
|
@ -27,7 +29,8 @@
|
|||
interface=org.freedesktop.systemd.Manager
|
||||
member={JobRemoved,StartTransientUnit},
|
||||
|
||||
@{lib}/sudo/** mr,
|
||||
@{bin}/sudo mr,
|
||||
@{lib}/sudo/** mr,
|
||||
|
||||
@{etc_ro}/environment r,
|
||||
@{etc_ro}/security/limits.d/{,*} r,
|
||||
|
@ -44,7 +47,17 @@
|
|||
@{PROC}/sys/kernel/ngroups_max r,
|
||||
@{PROC}/sys/kernel/seccomp/actions_avail r,
|
||||
|
||||
/dev/ r, # interactive login
|
||||
owner /var/lib/sudo/ts/ rw,
|
||||
owner /var/lib/sudo/ts/@{uid} rwk,
|
||||
owner /var/log/sudo.log wk,
|
||||
|
||||
@{run}/faillock/{,*} rwk,
|
||||
|
||||
owner @{run}/sudo/ rw,
|
||||
owner @{run}/sudo/ts/ rw,
|
||||
owner @{run}/sudo/ts/@{uid} rwk,
|
||||
|
||||
/dev/ r,
|
||||
/dev/ptmx rwk,
|
||||
/dev/tty rwk,
|
||||
owner /dev/tty@{int} rw,
|
||||
|
|
Loading…
Reference in a new issue