feat(profile): update some core profiles.

This commit is contained in:
Alexandre Pujol 2024-11-12 20:42:31 +00:00
parent cf2998b7bd
commit 4108d6a987
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
11 changed files with 33 additions and 7 deletions

View file

@ -29,6 +29,7 @@ profile snap @{exec_path} {
mount options=(ro, silent) -> /tmp/snapd-auto-import-mount-@{int}/,
#aa:dbus own bus=session name=io.snapcraft.Launcher
#aa:dbus own bus=session name=io.snapcraft.SessionAgent
#aa:dbus own bus=session name=io.snapcraft.Settings
#aa:dbus talk bus=session name=org.freedesktop.systemd1 label="@{p_systemd_user}"
@ -45,6 +46,7 @@ profile snap @{exec_path} {
@{bin}/gpg{,2} rCx -> gpg,
@{bin}/systemctl rCx -> systemctl,
@{lib_dirs}/** mr,
@{lib_dirs}/snapd/snap-confine rPx,
@{lib_dirs}/snapd/snap-seccomp rPx,
@{lib_dirs}/snapd/snapd rPx,
@ -108,6 +110,9 @@ profile snap @{exec_path} {
network unix stream,
owner @{run}/user/@{uid}/systemd/notify rw,
owner @{run}/user/@{uid}/systemd/private rw,
include if exists <local/snap_systemctl>
}

View file

@ -23,11 +23,17 @@ profile snap-update-ns @{exec_path} {
mount -> /tmp/.snap/**,
mount -> /usr/**,
mount -> /var/lib/dhcp/,
umount /snap/**,
umount /var/lib/dhcp/,
umount @{lib}/@{multiarch}/webkit2gtk-@{version}/,
umount /usr/share/xml/iso-codes/,
@{exec_path} mr,
@{lib}/@{multiarch}/webkit2gtk-@{version}/ w,
/usr/share/xml/iso-codes/ w,
/var/lib/snapd/mount/{,*} r,
/ r,

View file

@ -17,6 +17,7 @@ profile snapd-apparmor @{exec_path} {
@{bin}/systemd-detect-virt rPx,
@{bin}/apparmor_parser rPx,
@{lib_dirs}/** mr,
@{lib_dirs}/snapd/apparmor_parser rPx -> apparmor_parser,
@{lib_dirs}/snapd/info r,

View file

@ -17,6 +17,7 @@ profile uuidd @{exec_path} flags=(attach_disconnected) {
owner /var/lib/libuuid/clock.txt rwk,
@{run}/uuidd/request w,
@{att}/@{run}/uuidd/request w,
include if exists <local/uuidd>