feat(profiles): general update.

This commit is contained in:
Alexandre Pujol 2022-07-18 11:36:16 +01:00
parent 081308db2f
commit c750cb1b77
No known key found for this signature in database
GPG Key ID: C5469996F0DF68EC
4 changed files with 15 additions and 2 deletions

View File

@ -10,6 +10,7 @@ include <tunables/global>
profile plymouthd @{exec_path} {
include <abstractions/base>
include <abstractions/consoles>
include <abstractions/dri-common>
capability sys_admin,
capability sys_tty_config,
@ -37,12 +38,12 @@ profile plymouthd @{exec_path} {
@{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]/uevent r,
@{sys}/devices/pci[0-9]*/**/drm/renderD128/uevent r,
@{sys}/devices/virtual/tty/console/active r,
@{sys}/firmware/acpi/bgrt/{,*} r,
@{PROC}/cmdline r,
/dev/dri/card[0-9]* rw,
/dev/ptmx rw,
/dev/tty[0-9]* rw,

View File

@ -15,14 +15,18 @@ profile do-release-upgrade @{exec_path} {
include <abstractions/python>
include <abstractions/ssl_certs>
capability net_admin,
network inet dgram,
network inet6 dgram,
network inet stream,
network inet6 stream,
network netlink raw,
@{exec_path} mr,
/{usr/,}bin/dpkg rPx -> child-dpkg,
/{usr/,}bin/ischroot rix,
/{usr/,}bin/lsb_release rPx -> lsb_release,
/usr/share/distro-info/*.csv r,
@ -31,10 +35,11 @@ profile do-release-upgrade @{exec_path} {
/etc/machine-id r,
/etc/update-manager/{,**} r,
/var/lib/update-manager/meta-release-* rw,
/var/lib/update-manager/* rw,
/var/cache/apt/pkgcache.bin{,.*} rw,
owner @{PROC}/@{pid}/fd/ r,
@{PROC}/@{pids}/mountinfo r,
include if exists <local/do-release-upgrade>
}

View File

@ -11,6 +11,8 @@ profile apparmor.systemd @{exec_path} flags=(complain) {
include <abstractions/base>
include <abstractions/nameservice-strict>
capability mac_admin,
@{exec_path} mr,
/{usr/,}{s,}bin/aa-status rPx,
@ -19,6 +21,8 @@ profile apparmor.systemd @{exec_path} flags=(complain) {
/{usr/,}bin/{,e}grep rix,
/{usr/,}bin/getconf rix,
/{usr/,}bin/ls rix,
/{usr/,}bin/sed rix,
/{usr/,}bin/sort rix,
/{usr/,}bin/systemd-detect-virt rPx,
/{usr/,}bin/xargs rix,
@ -28,6 +32,7 @@ profile apparmor.systemd @{exec_path} flags=(complain) {
@{sys}/fs/cgroup/systemd/ r,
@{sys}/kernel/security/apparmor/{,**} r,
@{sys}/kernel/security/apparmor/.remove rw,
@{sys}/module/apparmor/ r,
@{PROC}/@{pids}/fd/ r,

View File

@ -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/snapd/apparmor/{,**} r,
owner /tmp/cri-containerd.apparmor.d[0-9]* r,
owner @{sys}/kernel/security/apparmor/.{remove,replace,load,access} rw,
@{sys}/kernel/security/apparmor/{,**} r,