mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-18 17:08:09 +01:00
feat(abs): deny apparmor/.null in the base abstraction.
This commit is contained in:
parent
ba6172bb8c
commit
7e8f854b16
23 changed files with 2 additions and 41 deletions
|
@ -24,3 +24,5 @@
|
|||
/etc/locale.conf r,
|
||||
|
||||
@{sys}/devices/system/cpu/possible r,
|
||||
|
||||
deny /apparmor/.null rw,
|
||||
|
|
|
@ -46,7 +46,5 @@ profile child-systemctl flags=(attach_disconnected) {
|
|||
|
||||
@{run}/systemd/private rw,
|
||||
|
||||
deny /apparmor/.null rw,
|
||||
|
||||
include if exists <local/child-systemctl>
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
|
||||
|
|
|
@ -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>
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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>
|
||||
}
|
|
@ -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,
|
||||
|
||||
|
|
|
@ -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>
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
}
|
|
@ -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>
|
||||
}
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -37,7 +37,5 @@ profile firecfg @{exec_path} flags=(attach_disconnected) {
|
|||
|
||||
/dev/tty rw,
|
||||
|
||||
deny /apparmor/.null rw,
|
||||
|
||||
include if exists <local/firecfg>
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
|
||||
|
|
|
@ -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>
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue