feat(profile): general update.

This commit is contained in:
Alexandre Pujol 2024-02-23 20:21:22 +00:00
parent f5084ca150
commit 2ea53a9dc3
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
14 changed files with 26 additions and 14 deletions

View file

@ -107,7 +107,7 @@ profile systemd flags=(attach_disconnected,mediate_deleted) {
@{bin}/mandb rPx -> systemd-service,
@{bin}/savelog rPx -> systemd-service,
@{coreutils_path} rPx -> systemd-service,
@{shells_path} rPx -> systemd-service,
@{sh_path} rPx -> systemd-service,
@{bin}/** PUx,
@{lib}/** PUx,
@ -128,8 +128,6 @@ profile systemd flags=(attach_disconnected,mediate_deleted) {
/var/tmp/ r,
@{lib}/ r,
/usr/share/** r,
/etc/binfmt.d/{,**} r,
/etc/conf.d/{,**} r,
/etc/credstore.encrypted/{,**} r,
@ -139,6 +137,7 @@ profile systemd flags=(attach_disconnected,mediate_deleted) {
/etc/machine-id r,
/etc/modules-load.d/{,**} r,
/etc/systemd/{,**} r,
/etc/udev/hwdb.d/{,**} r,
/var/lib/systemd/{,**} rw,
owner /var/tmp/systemd-private-*/{,**} rw,

View file

@ -23,7 +23,7 @@ profile systemd-service @{exec_path} flags=(attach_disconnected) {
@{bin}/systemctl rix,
@{bin}/gzip rix,
@{coreutils_path} rix,
@{shells_path} rmix,
@{sh_path} rmix,
# shadow.service
@{bin}/pwck rPx,

View file

@ -4,7 +4,7 @@
# Profile for 'systemd --user', not PID 1 but the user manager for any UID.
# It does not specify an attachment path because it is intended to be used only
# via "AppArmorProfile=systemd-user" from a systemd unit file.
# via "px -> systemd-user" exec transitions from the `systemd` profile.
# Only use this profile with a fully configured system. Otherwise it **WILL**
# break your computer. See https://apparmor.pujol.io/full-system-policy/.