feat(profile): small improvment on systemd profiles.
This commit is contained in:
parent
17bfd0e869
commit
5e6af16580
5 changed files with 7 additions and 12 deletions
|
|
@ -14,9 +14,6 @@ profile systemd-localed @{exec_path} flags=(attach_disconnected) {
|
||||||
include <abstractions/consoles>
|
include <abstractions/consoles>
|
||||||
include <abstractions/common/systemd>
|
include <abstractions/common/systemd>
|
||||||
|
|
||||||
# Needed?
|
|
||||||
audit capability net_admin,
|
|
||||||
|
|
||||||
unix (bind) type=stream addr=@@{hex16}/bus/systemd-localed/system,
|
unix (bind) type=stream addr=@@{hex16}/bus/systemd-localed/system,
|
||||||
|
|
||||||
#aa:dbus own bus=system name=org.freedesktop.locale1
|
#aa:dbus own bus=system name=org.freedesktop.locale1
|
||||||
|
|
|
||||||
|
|
@ -19,21 +19,21 @@ profile systemd-machine-id-setup @{exec_path} flags=(attach_disconnected) {
|
||||||
|
|
||||||
ptrace (read),
|
ptrace (read),
|
||||||
|
|
||||||
mount flags=(rw rslave) -> /,
|
mount options=(rw rslave) -> /,
|
||||||
umount /etc/machine-id,
|
umount /etc/machine-id,
|
||||||
|
|
||||||
@{exec_path} mr,
|
@{exec_path} mr,
|
||||||
|
|
||||||
/ r,
|
/ r,
|
||||||
/etc/machine-id rw,
|
|
||||||
/etc/ r,
|
/etc/ r,
|
||||||
|
/etc/machine-id rw,
|
||||||
/var/ r,
|
/var/ 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,
|
||||||
owner @{PROC}/@{pid}/stat r,
|
|
||||||
owner @{PROC}/@{pid}/setgroups r,
|
owner @{PROC}/@{pid}/setgroups r,
|
||||||
|
owner @{PROC}/@{pid}/stat r,
|
||||||
|
|
||||||
include if exists <local/systemd-machine-id-setup>
|
include if exists <local/systemd-machine-id-setup>
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,7 @@ abi <abi/3.0>,
|
||||||
|
|
||||||
include <tunables/global>
|
include <tunables/global>
|
||||||
|
|
||||||
@{exec_path} = @{bin}/systemd-mount
|
@{exec_path} = @{bin}/systemd-mount @{bin}/systemd-umount
|
||||||
@{exec_path} += @{bin}/systemd-umount
|
|
||||||
profile systemd-mount @{exec_path} {
|
profile systemd-mount @{exec_path} {
|
||||||
include <abstractions/base>
|
include <abstractions/base>
|
||||||
include <abstractions/disks-write>
|
include <abstractions/disks-write>
|
||||||
|
|
|
||||||
|
|
@ -24,8 +24,8 @@ profile systemd-oomd @{exec_path} flags=(attach_disconnected) {
|
||||||
/etc/systemd/oomd.conf r,
|
/etc/systemd/oomd.conf r,
|
||||||
/etc/systemd/oomd.conf.d/{,**} r,
|
/etc/systemd/oomd.conf.d/{,**} r,
|
||||||
|
|
||||||
@{run}/systemd/io.system.ManagedOOM rw,
|
@{run}/systemd/io.system.ManagedOOM rw,
|
||||||
@{run}/systemd/io.systemd.ManagedOOM rw,
|
@{run}/systemd/io.systemd.ManagedOOM rw,
|
||||||
@{run}/systemd/notify rw,
|
@{run}/systemd/notify rw,
|
||||||
owner @{run}/systemd/journal/socket w,
|
owner @{run}/systemd/journal/socket w,
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,7 @@ include <tunables/global>
|
||||||
@{exec_path} = @{lib}/systemd/system-sleep/grub2.sleep
|
@{exec_path} = @{lib}/systemd/system-sleep/grub2.sleep
|
||||||
profile systemd-sleep-grub @{exec_path} {
|
profile systemd-sleep-grub @{exec_path} {
|
||||||
include <abstractions/base>
|
include <abstractions/base>
|
||||||
|
include <abstractions/nameservice-strict>
|
||||||
|
|
||||||
@{exec_path} mr,
|
@{exec_path} mr,
|
||||||
|
|
||||||
|
|
@ -18,8 +19,6 @@ profile systemd-sleep-grub @{exec_path} {
|
||||||
|
|
||||||
/etc/sysconfig/bootloader r,
|
/etc/sysconfig/bootloader r,
|
||||||
|
|
||||||
/var/lib/nscd/passwd r,
|
|
||||||
|
|
||||||
@{PROC}/@{pid}/maps r,
|
@{PROC}/@{pid}/maps r,
|
||||||
|
|
||||||
/dev/tty rw,
|
/dev/tty rw,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue