mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-15 16:03:51 +01:00
feat(profiles): general update.
This commit is contained in:
parent
081308db2f
commit
c750cb1b77
@ -10,6 +10,7 @@ include <tunables/global>
|
|||||||
profile plymouthd @{exec_path} {
|
profile plymouthd @{exec_path} {
|
||||||
include <abstractions/base>
|
include <abstractions/base>
|
||||||
include <abstractions/consoles>
|
include <abstractions/consoles>
|
||||||
|
include <abstractions/dri-common>
|
||||||
|
|
||||||
capability sys_admin,
|
capability sys_admin,
|
||||||
capability sys_tty_config,
|
capability sys_tty_config,
|
||||||
@ -37,12 +38,12 @@ profile plymouthd @{exec_path} {
|
|||||||
@{sys}/class/drm/ r,
|
@{sys}/class/drm/ r,
|
||||||
@{sys}/devices/pci[0-9]*/**/drm/card[0-9]/card[0-9]-{HDMI,VGA,LVDS,DP,eDP,Virtual}-*/uevent r,
|
@{sys}/devices/pci[0-9]*/**/drm/card[0-9]/card[0-9]-{HDMI,VGA,LVDS,DP,eDP,Virtual}-*/uevent r,
|
||||||
@{sys}/devices/pci[0-9]*/**/drm/card[0-9]/uevent r,
|
@{sys}/devices/pci[0-9]*/**/drm/card[0-9]/uevent r,
|
||||||
|
@{sys}/devices/pci[0-9]*/**/drm/renderD128/uevent r,
|
||||||
@{sys}/devices/virtual/tty/console/active r,
|
@{sys}/devices/virtual/tty/console/active r,
|
||||||
@{sys}/firmware/acpi/bgrt/{,*} r,
|
@{sys}/firmware/acpi/bgrt/{,*} r,
|
||||||
|
|
||||||
@{PROC}/cmdline r,
|
@{PROC}/cmdline r,
|
||||||
|
|
||||||
/dev/dri/card[0-9]* rw,
|
|
||||||
/dev/ptmx rw,
|
/dev/ptmx rw,
|
||||||
/dev/tty[0-9]* rw,
|
/dev/tty[0-9]* rw,
|
||||||
|
|
||||||
|
@ -15,14 +15,18 @@ profile do-release-upgrade @{exec_path} {
|
|||||||
include <abstractions/python>
|
include <abstractions/python>
|
||||||
include <abstractions/ssl_certs>
|
include <abstractions/ssl_certs>
|
||||||
|
|
||||||
|
capability net_admin,
|
||||||
|
|
||||||
network inet dgram,
|
network inet dgram,
|
||||||
network inet6 dgram,
|
network inet6 dgram,
|
||||||
network inet stream,
|
network inet stream,
|
||||||
network inet6 stream,
|
network inet6 stream,
|
||||||
|
network netlink raw,
|
||||||
|
|
||||||
@{exec_path} mr,
|
@{exec_path} mr,
|
||||||
|
|
||||||
/{usr/,}bin/dpkg rPx -> child-dpkg,
|
/{usr/,}bin/dpkg rPx -> child-dpkg,
|
||||||
|
/{usr/,}bin/ischroot rix,
|
||||||
/{usr/,}bin/lsb_release rPx -> lsb_release,
|
/{usr/,}bin/lsb_release rPx -> lsb_release,
|
||||||
|
|
||||||
/usr/share/distro-info/*.csv r,
|
/usr/share/distro-info/*.csv r,
|
||||||
@ -31,10 +35,11 @@ profile do-release-upgrade @{exec_path} {
|
|||||||
/etc/machine-id r,
|
/etc/machine-id r,
|
||||||
/etc/update-manager/{,**} r,
|
/etc/update-manager/{,**} r,
|
||||||
|
|
||||||
/var/lib/update-manager/meta-release-* rw,
|
/var/lib/update-manager/* rw,
|
||||||
/var/cache/apt/pkgcache.bin{,.*} rw,
|
/var/cache/apt/pkgcache.bin{,.*} rw,
|
||||||
|
|
||||||
owner @{PROC}/@{pid}/fd/ r,
|
owner @{PROC}/@{pid}/fd/ r,
|
||||||
|
@{PROC}/@{pids}/mountinfo r,
|
||||||
|
|
||||||
include if exists <local/do-release-upgrade>
|
include if exists <local/do-release-upgrade>
|
||||||
}
|
}
|
@ -11,6 +11,8 @@ profile apparmor.systemd @{exec_path} flags=(complain) {
|
|||||||
include <abstractions/base>
|
include <abstractions/base>
|
||||||
include <abstractions/nameservice-strict>
|
include <abstractions/nameservice-strict>
|
||||||
|
|
||||||
|
capability mac_admin,
|
||||||
|
|
||||||
@{exec_path} mr,
|
@{exec_path} mr,
|
||||||
|
|
||||||
/{usr/,}{s,}bin/aa-status rPx,
|
/{usr/,}{s,}bin/aa-status rPx,
|
||||||
@ -19,6 +21,8 @@ profile apparmor.systemd @{exec_path} flags=(complain) {
|
|||||||
/{usr/,}bin/{,e}grep rix,
|
/{usr/,}bin/{,e}grep rix,
|
||||||
/{usr/,}bin/getconf rix,
|
/{usr/,}bin/getconf rix,
|
||||||
/{usr/,}bin/ls rix,
|
/{usr/,}bin/ls rix,
|
||||||
|
/{usr/,}bin/sed rix,
|
||||||
|
/{usr/,}bin/sort rix,
|
||||||
/{usr/,}bin/systemd-detect-virt rPx,
|
/{usr/,}bin/systemd-detect-virt rPx,
|
||||||
/{usr/,}bin/xargs rix,
|
/{usr/,}bin/xargs rix,
|
||||||
|
|
||||||
@ -28,6 +32,7 @@ profile apparmor.systemd @{exec_path} flags=(complain) {
|
|||||||
|
|
||||||
@{sys}/fs/cgroup/systemd/ r,
|
@{sys}/fs/cgroup/systemd/ r,
|
||||||
@{sys}/kernel/security/apparmor/{,**} r,
|
@{sys}/kernel/security/apparmor/{,**} r,
|
||||||
|
@{sys}/kernel/security/apparmor/.remove rw,
|
||||||
@{sys}/module/apparmor/ r,
|
@{sys}/module/apparmor/ r,
|
||||||
|
|
||||||
@{PROC}/@{pids}/fd/ r,
|
@{PROC}/@{pids}/fd/ r,
|
||||||
|
@ -26,6 +26,8 @@ profile apparmor_parser @{exec_path} flags=(attach_disconnected) {
|
|||||||
owner /var/lib/docker/tmp/docker-default[0-9]* r,
|
owner /var/lib/docker/tmp/docker-default[0-9]* r,
|
||||||
owner /var/lib/snapd/apparmor/{,**} r,
|
owner /var/lib/snapd/apparmor/{,**} r,
|
||||||
|
|
||||||
|
owner /tmp/cri-containerd.apparmor.d[0-9]* r,
|
||||||
|
|
||||||
owner @{sys}/kernel/security/apparmor/.{remove,replace,load,access} rw,
|
owner @{sys}/kernel/security/apparmor/.{remove,replace,load,access} rw,
|
||||||
@{sys}/kernel/security/apparmor/{,**} r,
|
@{sys}/kernel/security/apparmor/{,**} r,
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user