feat(profile): minor profile update.
This commit is contained in:
parent
cf76e2e714
commit
101248b37e
11 changed files with 25 additions and 6 deletions
|
|
@ -11,6 +11,11 @@
|
||||||
member={GetUnit,StartUnit,StartTransientUnit}
|
member={GetUnit,StartUnit,StartTransientUnit}
|
||||||
peer=(name=org.freedesktop.systemd1, label="@{p_systemd}"),
|
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
|
dbus send bus=session path=/org/freedesktop/systemd1
|
||||||
interface=org.freedesktop.systemd1.Manager
|
interface=org.freedesktop.systemd1.Manager
|
||||||
member={GetUnit,StartUnit,StartTransientUnit}
|
member={GetUnit,StartUnit,StartTransientUnit}
|
||||||
|
|
|
||||||
|
|
@ -52,7 +52,7 @@ profile wireplumber @{exec_path} {
|
||||||
owner @{run}/user/@{uid}/pipewire-@{int} rw,
|
owner @{run}/user/@{uid}/pipewire-@{int} rw,
|
||||||
owner @{run}/user/@{uid}/pipewire-@{int}-manager 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}-@{uid} rw,
|
||||||
owner /dev/shm/lttng-ust-wait-@{int}-@{int} rw,
|
owner /dev/shm/lttng-ust-wait-@{int}-@{int} rw,
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -10,12 +10,17 @@ include <tunables/global>
|
||||||
profile gnome-session-check @{exec_path} {
|
profile gnome-session-check @{exec_path} {
|
||||||
include <abstractions/base>
|
include <abstractions/base>
|
||||||
include <abstractions/graphics>
|
include <abstractions/graphics>
|
||||||
|
include <abstractions/X-strict>
|
||||||
|
|
||||||
@{exec_path} mr,
|
@{exec_path} mr,
|
||||||
|
|
||||||
@{lib}/gnome-session-check-accelerated-gl-helper ix,
|
@{lib}/gnome-session-check-accelerated-gl-helper ix,
|
||||||
@{lib}/gnome-session-check-accelerated-gles-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>
|
include if exists <local/gnome-session-check>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -40,6 +40,8 @@ profile dhcpcd @{exec_path} flags=(attach_disconnected) {
|
||||||
@{bin}/sed rix,
|
@{bin}/sed rix,
|
||||||
@{lib}/dhcpcd/dhcpcd-run-hooks rix,
|
@{lib}/dhcpcd/dhcpcd-run-hooks rix,
|
||||||
|
|
||||||
|
/usr/share/dhcpcd/{,**} r,
|
||||||
|
|
||||||
/etc/dhcpcd.conf r,
|
/etc/dhcpcd.conf r,
|
||||||
/etc/resolv.conf rw,
|
/etc/resolv.conf rw,
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -110,6 +110,7 @@ profile snapd @{exec_path} {
|
||||||
/etc/modprobe.d/{,**/} r,
|
/etc/modprobe.d/{,**/} r,
|
||||||
/etc/modules-load.d/{,**/} r,
|
/etc/modules-load.d/{,**/} r,
|
||||||
/etc/modules-load.d/*snap* rw,
|
/etc/modules-load.d/*snap* rw,
|
||||||
|
/etc/polkit-1/rules.d/{,**/} r,
|
||||||
/etc/systemd/system/{,**/} r,
|
/etc/systemd/system/{,**/} r,
|
||||||
/etc/systemd/system/snap* rw,
|
/etc/systemd/system/snap* rw,
|
||||||
/etc/systemd/user/{,**/} rw,
|
/etc/systemd/user/{,**/} rw,
|
||||||
|
|
|
||||||
|
|
@ -32,6 +32,7 @@ profile sshd @{exec_path} flags=(attach_disconnected) {
|
||||||
capability dac_override,
|
capability dac_override,
|
||||||
capability dac_read_search,
|
capability dac_read_search,
|
||||||
capability fowner,
|
capability fowner,
|
||||||
|
capability fsetid,
|
||||||
capability kill,
|
capability kill,
|
||||||
capability net_bind_service,
|
capability net_bind_service,
|
||||||
capability setgid,
|
capability setgid,
|
||||||
|
|
|
||||||
|
|
@ -16,13 +16,13 @@ profile systemd-generator-import @{exec_path} flags=(attach_disconnected) {
|
||||||
|
|
||||||
@{exec_path} mr,
|
@{exec_path} mr,
|
||||||
|
|
||||||
|
/ r,
|
||||||
|
|
||||||
@{PROC}/@{pid}/cgroup r,
|
@{PROC}/@{pid}/cgroup r,
|
||||||
@{PROC}/1/environ r,
|
@{PROC}/1/environ r,
|
||||||
@{PROC}/cmdline r,
|
@{PROC}/cmdline r,
|
||||||
@{PROC}/sys/kernel/osrelease r,
|
@{PROC}/sys/kernel/osrelease r,
|
||||||
|
|
||||||
/ r,
|
|
||||||
|
|
||||||
/dev/kmsg w,
|
/dev/kmsg w,
|
||||||
|
|
||||||
include if exists <local/systemd-generator-import>
|
include if exists <local/systemd-generator-import>
|
||||||
|
|
|
||||||
|
|
@ -28,8 +28,8 @@ profile apport @{exec_path} flags=(attach_disconnected) {
|
||||||
@{exec_path} mr,
|
@{exec_path} mr,
|
||||||
|
|
||||||
@{bin}/{,e,f}grep rix,
|
@{bin}/{,e,f}grep rix,
|
||||||
@{bin}/dpkg rPx -> child-dpkg,
|
@{bin}/dpkg rPx -> &child-dpkg,
|
||||||
@{bin}/dpkg-divert rPx -> child-dpkg-divert,
|
@{bin}/dpkg-divert rPx -> &child-dpkg-divert,
|
||||||
@{bin}/gdbus rix,
|
@{bin}/gdbus rix,
|
||||||
@{bin}/md5sum rix,
|
@{bin}/md5sum rix,
|
||||||
|
|
||||||
|
|
@ -37,6 +37,8 @@ profile apport @{exec_path} flags=(attach_disconnected) {
|
||||||
|
|
||||||
@{etc_ro}/login.defs r,
|
@{etc_ro}/login.defs r,
|
||||||
/etc/apport/report-ignore/{,**} 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/ r,
|
||||||
/var/lib/dpkg/info/*.list r,
|
/var/lib/dpkg/info/*.list r,
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ profile package-system-locked @{exec_path} flags=(attach_disconnected) {
|
||||||
network inet dgram,
|
network inet dgram,
|
||||||
network inet6 dgram,
|
network inet6 dgram,
|
||||||
|
|
||||||
mqueue r type=posix /,
|
mqueue (read,getattr) type=posix /,
|
||||||
|
|
||||||
ptrace (read),
|
ptrace (read),
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -18,6 +18,8 @@ profile who @{exec_path} {
|
||||||
|
|
||||||
@{exec_path} mr,
|
@{exec_path} mr,
|
||||||
|
|
||||||
|
@{run}/systemd/sessions/* r,
|
||||||
|
|
||||||
deny owner @{user_share_dirs}/gvfs-metadata/{,*} r,
|
deny owner @{user_share_dirs}/gvfs-metadata/{,*} r,
|
||||||
deny owner @{user_share_dirs}/zed/**/data.mdb rw,
|
deny owner @{user_share_dirs}/zed/**/data.mdb rw,
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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=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 addr=none),
|
||||||
unix (send, receive) type=stream addr=none peer=(label=unconfined),
|
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
|
# Allow changing to our UUID-based named profiles
|
||||||
change_profile -> libvirt-@{uuid},
|
change_profile -> libvirt-@{uuid},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue