feat(abs): deny apparmor/.null in the base abstraction.

This commit is contained in:
Alexandre Pujol 2024-03-03 11:51:39 +00:00
parent ba6172bb8c
commit 7e8f854b16
Failed to generate hash of commit
23 changed files with 2 additions and 41 deletions

View file

@ -24,3 +24,5 @@
/etc/locale.conf r,
@{sys}/devices/system/cpu/possible r,
deny /apparmor/.null rw,

View file

@ -46,7 +46,5 @@ profile child-systemctl flags=(attach_disconnected) {
@{run}/systemd/private rw,
deny /apparmor/.null rw,
include if exists <local/child-systemctl>
}

View file

@ -116,7 +116,6 @@ profile mkinitcpio @{exec_path} flags=(attach_disconnected) {
# Inherit silencer
deny @{HOME}/** r,
deny /apparmor/.null rw,
deny network inet stream,
deny network inet6 stream,

View file

@ -44,8 +44,5 @@ profile pacdiff @{exec_path} flags=(attach_disconnected) {
/dev/tty rw,
/dev/pts/@{int} rw,
# Inherit Silencer
deny /apparmor/.null rw,
include if exists <local/pacdiff>
}

View file

@ -22,7 +22,6 @@ profile pacman-conf @{exec_path} flags=(attach_disconnected) {
# Inherit Silencer
deny network inet6 stream,
deny network inet stream,
deny /apparmor/.null rw,
include if exists <local/pacman-conf>
}

View file

@ -29,7 +29,6 @@ profile pacman-hook-dkms @{exec_path} flags=(attach_disconnected) {
/dev/tty rw,
# Inherit Silencer
deny /apparmor/.null rw,
deny network inet stream,
deny network inet6 stream,
deny unix (receive) type=stream,

View file

@ -46,7 +46,6 @@ profile pacman-hook-mkinitcpio @{exec_path} flags=(attach_disconnected) {
# # Inherit Silencer
deny network inet6 stream,
deny network inet stream,
# deny /apparmor/.null rw,
include if exists <local/pacman-hook-mkinitcpio>
}

View file

@ -51,7 +51,6 @@ profile journalctl @{exec_path} flags=(attach_disconnected) {
owner @{PROC}/@{pid}/cgroup r,
deny @{user_share_dirs}/gvfs-metadata/* r,
deny /apparmor/.null rw,
deny network inet stream,
deny network inet6 stream,

View file

@ -28,7 +28,5 @@ profile systemd-binfmt @{exec_path} flags=(attach_disconnected) {
/dev/tty@{int} rw,
/dev/pts/@{int} rw,
deny /apparmor/.null rw,
include if exists <local/systemd-binfmt>
}

View file

@ -30,8 +30,5 @@ profile systemd-detect-virt @{exec_path} flags=(attach_disconnected) {
@{sys}/devices/virtual/dmi/id/sys_vendor r,
@{sys}/firmware/dmi/entries/*/raw r,
# Inherit silencer
deny /apparmor/.null rw,
include if exists <local/systemd-detect-virt>
}

View file

@ -25,7 +25,5 @@ profile systemd-hwdb @{exec_path} flags=(attach_disconnected,mediate_deleted) {
owner @{PROC}/@{pid}/stat r,
deny /apparmor/.null rw,
include if exists <local/systemd-hwdb>
}

View file

@ -29,8 +29,5 @@ profile systemd-sysctl @{exec_path} flags=(attach_disconnected) {
@{PROC}/sys/** rw,
# Inherit Silencer
deny /apparmor/.null rw,
include if exists <local/systemd-sysctl>
}

View file

@ -47,7 +47,6 @@ profile systemd-sysusers @{exec_path} flags=(attach_disconnected) {
# Inherit Silencer
deny network inet6 stream,
deny network inet stream,
deny /apparmor/.null rw,
include if exists <local/systemd-sysusers>
}

View file

@ -57,7 +57,5 @@ profile systemd-tmpfiles @{exec_path} flags=(attach_disconnected) {
@{PROC}/1/cmdline r,
@{PROC}/sched_debug w,
deny /apparmor/.null rw,
include if exists <local/systemd-tmpfiles>
}

View file

@ -129,8 +129,6 @@ profile systemd-udevd @{exec_path} flags=(attach_disconnected,complain) {
/dev/ rw,
/dev/** rwk,
deny /apparmor/.null rw,
profile systemctl flags=(attach_disconnected,complain) {
include <abstractions/base>
include <abstractions/systemd-common>

View file

@ -44,7 +44,5 @@ profile apparmor_parser @{exec_path} flags=(attach_disconnected) {
@{PROC}/sys/kernel/osrelease r,
owner @{PROC}/@{pid}/mounts r,
deny /apparmor/.null rw,
include if exists <local/apparmor_parser>
}

View file

@ -111,9 +111,6 @@ profile dkms @{exec_path} flags=(attach_disconnected) {
@{PROC}/sys/kernel/osrelease r,
owner @{PROC}/@{pid}/fd/ r,
# Inherit silencer
deny /apparmor/.null rw,
profile kmod {
include <abstractions/base>
include <abstractions/consoles>
@ -134,8 +131,6 @@ profile dkms @{exec_path} flags=(attach_disconnected) {
@{sys}/module/compression r,
deny /apparmor/.null rw,
include if exists <local/dkms_kmod>
}

View file

@ -23,7 +23,6 @@ profile findmnt @{exec_path} flags=(attach_disconnected,complain) {
@{PROC}/@{pids}/mountinfo r,
# File Inherit
deny /apparmor/.null rw,
deny unix (receive) type=stream,
include if exists <local/findmnt>

View file

@ -37,7 +37,5 @@ profile firecfg @{exec_path} flags=(attach_disconnected) {
/dev/tty rw,
deny /apparmor/.null rw,
include if exists <local/firecfg>
}

View file

@ -19,7 +19,6 @@ profile gio-querymodules @{exec_path} flags=(attach_disconnected) {
@{lib}/gtk-{3,4}.0/**/giomodule.cache{,.[0-9A-Z]*} w,
@{lib}/gio/modules/giomodule.cache{,.[0-9A-Z]*} w,
deny /apparmor/.null rw,
deny network inet stream,
deny network inet6 stream,

View file

@ -26,7 +26,5 @@ profile gtk-update-icon-cache @{exec_path} flags=(attach_disconnected) {
owner @{user_share_dirs}/**/.icon-theme.cache rw,
owner @{user_share_dirs}/**/icon-theme.cache rw,
deny /apparmor/.null rw,
include if exists <local/gtk-update-icon-cache>
}

View file

@ -71,7 +71,6 @@ profile kmod @{exec_path} flags=(attach_disconnected) {
/dev/tty@{int} rw,
deny @{user_share_dirs}/gvfs-metadata/* r,
deny /apparmor/.null rw,
deny unix (receive) type=stream,
include if exists <local/kmod>

View file

@ -48,7 +48,5 @@ profile lvm @{exec_path} flags=(attach_disconnected) {
/dev/**/ r,
/dev/mapper/control rw,
deny /apparmor/.null rw,
include if exists <local/lvm>
}