feat(profiles): general update.

This commit is contained in:
Alexandre Pujol 2023-04-26 18:39:23 +01:00
parent 8cfc6b4574
commit 1e533ec656
Failed to generate hash of commit
8 changed files with 10 additions and 3 deletions

View file

@ -9,7 +9,7 @@ include <tunables/global>
@{chromium_name} = brave{,-beta,-dev,-bin}
@{chromium_domain} = com.brave.Brave
@{chromium_lib_dirs} = /opt/brave.com/@{chromium_name} /opt/brave-bin/@{chromium_name}
@{chromium_lib_dirs} = /opt/brave{-bin,.com}/@{chromium_name}
@{chromium_config_dirs} = @{user_config_dirs}/BraveSoftware/Brave-Browser{,-Beta,-Dev}
@{chromium_cache_dirs} = @{user_cache_dirs}/BraveSoftware/Brave-Browser{,-Beta,-Dev}

View file

@ -9,6 +9,7 @@ include <tunables/global>
@{exec_path} = /usr/share/libalpm/scripts/mkinitcpio
profile pacman-hook-mkinitcpio @{exec_path} flags=(attach_disconnected) {
include <abstractions/base>
include <abstractions/nameservice-strict>
capability dac_read_search,
capability mknod,

View file

@ -22,6 +22,7 @@ profile systemd-machine-id-setup @{exec_path} {
/var/ r,
@{PROC}/1/environ r,
@{PROC}/cmdline r,
@{PROC}/sys/kernel/osrelease r,
owner @{PROC}/@{pid}/stat r,

View file

@ -26,6 +26,9 @@ profile systemd-remount-fs @{exec_path} {
/etc/fstab r,
@{run}/host/container-manager r,
@{run}/mount/utab rw,
@{run}/mount/utab.?????? rw,
@{run}/mount/utab.lock rwk,
@{PROC}/ r,
@{PROC}/1/cmdline r,

View file

@ -66,6 +66,7 @@ profile systemd-udevd @{exec_path} flags=(attach_disconnected,complain) {
/usr/share/hplip/config_usb_printer.py rPUx,
/etc/console-setup/*.sh rPUx,
/etc/network/cloud-ifupdown-helper rPUx,
/etc/machine-id r,

View file

@ -6,7 +6,7 @@ abi <abi/3.0>,
include <tunables/global>
@{exec_path} = /{usr/,}{s,}bin/aa-status
@{exec_path} = /{usr/,}{s,}bin/aa-status /{usr/,}{s,}bin/apparmor_status
profile aa-status @{exec_path} {
include <abstractions/base>
include <abstractions/consoles>

View file

@ -11,6 +11,7 @@ include <tunables/global>
profile appstreamcli @{exec_path} flags=(complain) {
include <abstractions/base>
include <abstractions/consoles>
include <abstractions/freedesktop.org>
include <abstractions/nameservice-strict>
capability dac_read_search,
@ -50,7 +51,6 @@ profile appstreamcli @{exec_path} flags=(complain) {
owner @{user_cache_dirs}/appstream-cache-*.mdb rw,
owner @{user_cache_dirs}/appstream/ rw,
owner @{user_cache_dirs}/appstream/appcache-*.mdb rw,
owner @{user_share_dirs}/mime/mime.cache r,
owner /tmp/appstream-cache-*.mdb rw,
owner /tmp/appstream/ rw,

View file

@ -41,6 +41,7 @@ profile ifup @{exec_path} {
@{run}/network/ rw,
@{run}/network/{.,}ifstate* rwk,
@{run}/network/{ifup,ifdown}-*.pid rw,
@{run}/network/interfaces.d/{,*} r,
# For setting a USB modem
owner /dev/ttyUSB[0-9]* rw,