feat(profile): general update.

This commit is contained in:
Alexandre Pujol 2024-06-29 23:05:45 +01:00
parent 7c5ba70b40
commit f9a93ab67e
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
18 changed files with 51 additions and 75 deletions

View file

@ -49,7 +49,6 @@ profile mount @{exec_path} flags=(attach_disconnected) {
@{MOUNTS}/ rw,
@{MOUNTS}/*/ rw,
@{MOUNTS}/*/*/ rw,
/media/cdrom[0-9]/ r,
# Mount iso/img files
owner @{user_img_dirs}/{,**} rwk,

View file

@ -9,8 +9,9 @@ include <tunables/global>
@{exec_path} = @{bin}/{low,}ntfs{,-3g}
@{exec_path} += @{bin}/mount.{low,}ntfs{,-3g}
profile ntfs-3g @{exec_path} {
profile ntfs-3g @{exec_path} flags=(attach_disconnected) {
include <abstractions/base>
include <abstractions/consoles>
include <abstractions/disks-write>
include <abstractions/nameservice-strict>

View file

@ -47,4 +47,6 @@ profile ollama @{exec_path} flags=(attach_disconnected) {
owner @{PROC}/@{pid}/task/@{tid}/comm w,
include if exists <local/ollama>
}
}
# vim:syntax=apparmor

View file

@ -15,7 +15,7 @@ profile pam-tmpdir-helper @{exec_path} {
@{exec_path} mr,
owner @{tmp}/user/ rw,
owner /tmp/user/ rw,
owner @{tmp}/ rw,
/dev/ptmx rw,

View file

@ -137,7 +137,7 @@ profile run-parts @{exec_path} {
owner @{tmp}/#@{int} rw,
owner @{tmp}/$anacron* rw,
owner @{tmp}/file@{rand6} ra,
owner @{tmp}/file@{rand6} rw,
owner @{sys}/class/power_supply/ r,