mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-18 00:48:10 +01:00
feat(profiles): general update.
This commit is contained in:
parent
8cfc6b4574
commit
1e533ec656
8 changed files with 10 additions and 3 deletions
|
@ -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}
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue