diff --git a/apparmor.d/abstractions/bwrap b/apparmor.d/abstractions/bwrap index cd54aed4..95565cb4 100644 --- a/apparmor.d/abstractions/bwrap +++ b/apparmor.d/abstractions/bwrap @@ -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/{,**}, diff --git a/apparmor.d/abstractions/dconf-write b/apparmor.d/abstractions/dconf-write index 064fd8c9..58aad166 100644 --- a/apparmor.d/abstractions/dconf-write +++ b/apparmor.d/abstractions/dconf-write @@ -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, diff --git a/apparmor.d/abstractions/sudo b/apparmor.d/abstractions/sudo index 83e91cb9..5c0dc981 100644 --- a/apparmor.d/abstractions/sudo +++ b/apparmor.d/abstractions/sudo @@ -11,6 +11,8 @@ include 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,