feat(profile): minor profile update.

This commit is contained in:
Alexandre Pujol 2025-07-20 14:06:58 +02:00
parent cf76e2e714
commit 101248b37e
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
11 changed files with 25 additions and 6 deletions

View file

@ -11,6 +11,11 @@
member={GetUnit,StartUnit,StartTransientUnit}
peer=(name=org.freedesktop.systemd1, label="@{p_systemd}"),
dbus send bus=system path=/org/freedesktop/systemd1
interface=org.freedesktop.systemd1.Manager
member=ListUnitsByPatterns
peer=(name=org.freedesktop.systemd1, label="@{p_systemd}"),
dbus send bus=session path=/org/freedesktop/systemd1
interface=org.freedesktop.systemd1.Manager
member={GetUnit,StartUnit,StartTransientUnit}

View file

@ -52,7 +52,7 @@ profile wireplumber @{exec_path} {
owner @{run}/user/@{uid}/pipewire-@{int} rw,
owner @{run}/user/@{uid}/pipewire-@{int}-manager rw,
/dev/shm/lttng-ust-wait-@{int} r,
/dev/shm/lttng-ust-wait-@{int} rw,
owner /dev/shm/lttng-ust-wait-@{int}-@{uid} rw,
owner /dev/shm/lttng-ust-wait-@{int}-@{int} rw,

View file

@ -10,12 +10,17 @@ include <tunables/global>
profile gnome-session-check @{exec_path} {
include <abstractions/base>
include <abstractions/graphics>
include <abstractions/X-strict>
@{exec_path} mr,
@{lib}/gnome-session-check-accelerated-gl-helper ix,
@{lib}/gnome-session-check-accelerated-gles-helper ix,
/usr/share/gnome-session/hardware-compatibility r,
@{PROC}/cmdline r,
include if exists <local/gnome-session-check>
}

View file

@ -40,6 +40,8 @@ profile dhcpcd @{exec_path} flags=(attach_disconnected) {
@{bin}/sed rix,
@{lib}/dhcpcd/dhcpcd-run-hooks rix,
/usr/share/dhcpcd/{,**} r,
/etc/dhcpcd.conf r,
/etc/resolv.conf rw,

View file

@ -110,6 +110,7 @@ profile snapd @{exec_path} {
/etc/modprobe.d/{,**/} r,
/etc/modules-load.d/{,**/} r,
/etc/modules-load.d/*snap* rw,
/etc/polkit-1/rules.d/{,**/} r,
/etc/systemd/system/{,**/} r,
/etc/systemd/system/snap* rw,
/etc/systemd/user/{,**/} rw,

View file

@ -32,6 +32,7 @@ profile sshd @{exec_path} flags=(attach_disconnected) {
capability dac_override,
capability dac_read_search,
capability fowner,
capability fsetid,
capability kill,
capability net_bind_service,
capability setgid,

View file

@ -16,13 +16,13 @@ profile systemd-generator-import @{exec_path} flags=(attach_disconnected) {
@{exec_path} mr,
/ r,
@{PROC}/@{pid}/cgroup r,
@{PROC}/1/environ r,
@{PROC}/cmdline r,
@{PROC}/sys/kernel/osrelease r,
/ r,
/dev/kmsg w,
include if exists <local/systemd-generator-import>

View file

@ -28,8 +28,8 @@ profile apport @{exec_path} flags=(attach_disconnected) {
@{exec_path} mr,
@{bin}/{,e,f}grep rix,
@{bin}/dpkg rPx -> child-dpkg,
@{bin}/dpkg-divert rPx -> child-dpkg-divert,
@{bin}/dpkg rPx -> &child-dpkg,
@{bin}/dpkg-divert rPx -> &child-dpkg-divert,
@{bin}/gdbus rix,
@{bin}/md5sum rix,
@ -37,6 +37,8 @@ profile apport @{exec_path} flags=(attach_disconnected) {
@{etc_ro}/login.defs r,
/etc/apport/report-ignore/{,**} r,
/etc/dpkg/dpkg.cfg r,
/etc/dpkg/dpkg.cfg.d/{,**} r,
/var/lib/dpkg/info/ r,
/var/lib/dpkg/info/*.list r,

View file

@ -17,7 +17,7 @@ profile package-system-locked @{exec_path} flags=(attach_disconnected) {
network inet dgram,
network inet6 dgram,
mqueue r type=posix /,
mqueue (read,getattr) type=posix /,
ptrace (read),

View file

@ -18,6 +18,8 @@ profile who @{exec_path} {
@{exec_path} mr,
@{run}/systemd/sessions/* r,
deny owner @{user_share_dirs}/gvfs-metadata/{,*} r,
deny owner @{user_share_dirs}/zed/**/data.mdb rw,

View file

@ -86,6 +86,7 @@ profile libvirtd @{exec_path} flags=(attach_disconnected) {
unix (send, receive) type=stream addr=none peer=(label=libvirtd//qemu_bridge_helper),
unix (send, receive) type=stream addr=none peer=(label=unconfined addr=none),
unix (send, receive) type=stream addr=none peer=(label=unconfined),
unix (send, receive) type=stream addr=none peer=(label=virt-manager),
# Allow changing to our UUID-based named profiles
change_profile -> libvirt-@{uuid},