feat(profiles): general update.

This commit is contained in:
Alexandre Pujol 2023-03-07 17:57:57 +00:00
parent 3ff8e3847d
commit 558cb68f23
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
27 changed files with 155 additions and 150 deletions

View file

@ -9,8 +9,12 @@ include <tunables/global>
@{exec_path} = /{usr/,}{s,}bin/nologin
profile nologin @{exec_path} {
include <abstractions/base>
include <abstractions/consoles>
include <abstractions/nameservice-strict>
@{exec_path} mr,
owner @{PROC}/@{pid}/loginuid r,
include if exists <local/nologin>
}

View file

@ -30,8 +30,9 @@ profile pkttyagent @{exec_path} {
dbus receive bus=system path=/org/freedesktop/PolicyKit[0-9]/AuthenticationAgent
interface=org.freedesktop.PolicyKit1.AuthenticationAgent
member=BeginAuthentication,
member={BeginAuthentication,CancelAuthentication}
peer=(name=:*, label=polkitd),
dbus receive bus=system path=/org/freedesktop/PolicyKit[0-9]/Authority
interface=org.freedesktop.PolicyKit[0-9].Authority
member=Changed,

View file

@ -6,7 +6,7 @@ abi <abi/3.0>,
include <tunables/global>
@{exec_path} = /{usr/,}bin/qemu-ga
@{exec_path} = /{usr/,}{s,}bin/qemu-ga
profile qemu-ga @{exec_path} {
include <abstractions/base>

View file

@ -116,7 +116,8 @@ profile run-parts @{exec_path} {
/etc/kernel/prerm.d/dkms rCx -> kernel,
owner /tmp/#[0-9]*[0-9] rw,
owner /tmp/file* rw,
/dev/tty[0-9]* rw,
profile motd {
include <abstractions/base>
@ -152,6 +153,7 @@ profile run-parts @{exec_path} {
@{PROC}/@{pids}/mounts r,
/dev/tty[0-9]* rw,
}
profile kernel {