feat(profile): various small improvment.
This commit is contained in:
parent
6b5e586d83
commit
feaf61fb0b
17 changed files with 56 additions and 20 deletions
|
|
@ -26,7 +26,7 @@ profile command-not-found @{exec_path} {
|
|||
@{bin}/snap rPx,
|
||||
|
||||
@{lib}/ r,
|
||||
@{lib}/@{python_name}/dist-packages/CommandNotFound/{,**/}__pycache__/*.cpython-@{int}.pyc.@{int} w,
|
||||
@{lib}/@{python_name}/dist-packages/CommandNotFound/{,**/}__pycache__/*.cpython-@{int}.pyc.@{int}@{int} w,
|
||||
|
||||
/usr/share/command-not-found/{,**} r,
|
||||
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ profile dbus-system flags=(attach_disconnected) {
|
|||
network bluetooth stream,
|
||||
network bluetooth seqpacket,
|
||||
|
||||
ptrace (read) peer=@{p_systemd},
|
||||
ptrace read peer=@{p_systemd},
|
||||
|
||||
#aa:dbus own bus=system name=org.freedesktop.DBus path=/{,org/freedesktop/DBus}
|
||||
dbus receive bus=system path=/org/freedesktop/DBus
|
||||
|
|
|
|||
|
|
@ -70,9 +70,9 @@ profile sddm @{exec_path} flags=(attach_disconnected,mediate_deleted) {
|
|||
@{lib}/@{multiarch}/sddm/sddm-helper rix,
|
||||
@{lib}/plasma-dbus-run-session-if-needed rix,
|
||||
@{lib}/@{multiarch}/libexec/plasma-dbus-run-session-if-needed rix,
|
||||
@{lib}/sddm/sddm-helper rix,
|
||||
@{lib}/sddm/sddm-helper-start-wayland rix,
|
||||
@{lib}/sddm/sddm-helper-start-x11user rix,
|
||||
@{lib}/{,sddm/}sddm-helper rix,
|
||||
@{lib}/{,sddm/}sddm-helper-start-wayland rix,
|
||||
@{lib}/{,sddm/}sddm-helper-start-x11user rix,
|
||||
|
||||
@{shells_path} rix,
|
||||
@{bin}/cat rix,
|
||||
|
|
|
|||
|
|
@ -31,16 +31,16 @@ profile netplan-generate @{exec_path} flags=(attach_disconnected) {
|
|||
@{run}/systemd/generator/netplan.stamp w,
|
||||
@{run}/systemd/generator/network-online.target.wants/ w,
|
||||
@{run}/systemd/generator/network-online.target.wants/systemd-networkd-wait-online.service w,
|
||||
@{run}/systemd/network/ r,
|
||||
@{run}/systemd/network/ rw,
|
||||
@{run}/systemd/network/@{int}-netplan{,-*}.{network,link}{,.@{rand6}} rw,
|
||||
@{run}/systemd/system/ r,
|
||||
@{run}/systemd/system/netplan-* rw,
|
||||
@{run}/systemd/system/systemd-networkd-wait-online.service.d/ r,
|
||||
@{run}/systemd/system/systemd-networkd-wait-online.service.d/ rw,
|
||||
@{run}/systemd/system/systemd-networkd-wait-online.service.d/@{int}-netplan.conf{,.@{rand6}} rw,
|
||||
@{run}/systemd/system/systemd-networkd.service.wants/ rw,
|
||||
@{run}/systemd/system/systemd-networkd.service.wants/netplan-*.service rw,
|
||||
|
||||
@{run}/udev/rules.d/ r,
|
||||
@{run}/udev/rules.d/ rw,
|
||||
@{run}/udev/rules.d/@{int}-netplan{,-*}.rules{,.@{rand6}} rw,
|
||||
|
||||
@{sys}/devices/**/net/*/address r,
|
||||
|
|
|
|||
|
|
@ -53,8 +53,6 @@ profile sshd @{exec_path} flags=(attach_disconnected) {
|
|||
|
||||
ptrace (read,trace) peer=@{p_systemd},
|
||||
|
||||
unix (bind) type=stream addr=@@{udbus}/bus/sshd/system,
|
||||
|
||||
dbus send bus=system path=/org/freedesktop/login1
|
||||
interface=org.freedesktop.login1.Manager
|
||||
member={CreateSession,ReleaseSession,CreateSessionWithPIDFD}
|
||||
|
|
|
|||
|
|
@ -10,6 +10,8 @@ include <tunables/global>
|
|||
@{exec_path} = @{bin}/coredumpctl
|
||||
profile coredumpctl @{exec_path} flags=(complain) {
|
||||
include <abstractions/base>
|
||||
include <abstractions/consoles>
|
||||
include <abstractions/bus-system>
|
||||
include <abstractions/nameservice-strict>
|
||||
|
||||
capability dac_read_search,
|
||||
|
|
@ -31,9 +33,7 @@ profile coredumpctl @{exec_path} flags=(complain) {
|
|||
|
||||
/{run,var}/log/journal/ r,
|
||||
/{run,var}/log/journal/@{hex32}/ r,
|
||||
/{run,var}/log/journal/@{hex32}/user-@{hex}.journal* r,
|
||||
/{run,var}/log/journal/@{hex32}/system.journal* r,
|
||||
/{run,var}/log/journal/@{hex32}/system@@{hex}.journal* r,
|
||||
/{run,var}/log/journal/@{hex32}/* r,
|
||||
|
||||
owner @{tmp}/*.coredump w,
|
||||
owner @{tmp}/core.* w,
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ profile systemd-oomd @{exec_path} flags=(attach_disconnected) {
|
|||
capability dac_override,
|
||||
capability kill,
|
||||
|
||||
unix (bind) type=stream addr=@@{udbus}/bus/systemd-oomd/bus-api-oom,
|
||||
unix bind type=stream addr=@@{udbus}/bus/systemd-oomd/bus-api-oom,
|
||||
|
||||
#aa:dbus own bus=system name=org.freedesktop.oom1
|
||||
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ abi <abi/4.0>,
|
|||
include <tunables/global>
|
||||
|
||||
@{exec_path} = @{lib}/systemd/systemd-sleep
|
||||
profile systemd-sleep @{exec_path} {
|
||||
profile systemd-sleep @{exec_path} flags=(attach_disconnected) {
|
||||
include <abstractions/base>
|
||||
include <abstractions/bus-system>
|
||||
include <abstractions/nameservice-strict>
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@ profile systemd-tty-ask-password-agent @{exec_path} {
|
|||
signal receive set=(term cont) peer=deb-systemd-invoke,
|
||||
signal receive set=(term cont) peer=default,
|
||||
signal receive set=(term cont) peer=logrotate,
|
||||
signal receive set=(term cont) peer=makepkg//sudo,
|
||||
signal receive set=(term cont) peer=role_*,
|
||||
signal receive set=(term cont) peer=rpm,
|
||||
|
||||
|
|
|
|||
|
|
@ -27,10 +27,11 @@ profile apport @{exec_path} flags=(attach_disconnected) {
|
|||
|
||||
@{exec_path} mr,
|
||||
|
||||
@{bin}/gdbus rix,
|
||||
@{bin}/{,e,f}grep rix,
|
||||
@{bin}/dpkg rPx -> child-dpkg,
|
||||
@{bin}/dpkg-divert rPx -> child-dpkg-divert,
|
||||
@{bin}/gdbus rix,
|
||||
@{bin}/md5sum rix,
|
||||
|
||||
/usr/share/apport/{,**} r,
|
||||
|
||||
|
|
@ -39,6 +40,7 @@ profile apport @{exec_path} flags=(attach_disconnected) {
|
|||
|
||||
/var/lib/dpkg/info/ r,
|
||||
/var/lib/dpkg/info/*.list r,
|
||||
/var/lib/dpkg/info/*.md5sums r,
|
||||
|
||||
/var/crash/ rw,
|
||||
/var/crash/*.@{uid}.crash rw,
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ abi <abi/4.0>,
|
|||
include <tunables/global>
|
||||
|
||||
@{exec_path} = @{bin}/dmesg
|
||||
profile dmesg @{exec_path} {
|
||||
profile dmesg @{exec_path} flags=(attach_disconnected) {
|
||||
include <abstractions/base>
|
||||
include <abstractions/consoles>
|
||||
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ abi <abi/4.0>,
|
|||
include <tunables/global>
|
||||
|
||||
@{exec_path} = @{bin}/fstrim
|
||||
profile fstrim @{exec_path} {
|
||||
profile fstrim @{exec_path} flags=(attach_disconnected) {
|
||||
include <abstractions/base>
|
||||
include <abstractions/disks-write>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue