mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-14 23:43:56 +01:00
feat(profile): small improvment on systemd profiles.
This commit is contained in:
parent
17bfd0e869
commit
5e6af16580
@ -14,9 +14,6 @@ profile systemd-localed @{exec_path} flags=(attach_disconnected) {
|
||||
include <abstractions/consoles>
|
||||
include <abstractions/common/systemd>
|
||||
|
||||
# Needed?
|
||||
audit capability net_admin,
|
||||
|
||||
unix (bind) type=stream addr=@@{hex16}/bus/systemd-localed/system,
|
||||
|
||||
#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),
|
||||
|
||||
mount flags=(rw rslave) -> /,
|
||||
mount options=(rw rslave) -> /,
|
||||
umount /etc/machine-id,
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
/ r,
|
||||
/etc/machine-id rw,
|
||||
/etc/ r,
|
||||
/etc/machine-id rw,
|
||||
/var/ r,
|
||||
|
||||
@{PROC}/1/environ r,
|
||||
@{PROC}/cmdline r,
|
||||
@{PROC}/sys/kernel/osrelease r,
|
||||
owner @{PROC}/@{pid}/stat r,
|
||||
owner @{PROC}/@{pid}/setgroups r,
|
||||
owner @{PROC}/@{pid}/stat r,
|
||||
|
||||
include if exists <local/systemd-machine-id-setup>
|
||||
}
|
||||
|
@ -6,8 +6,7 @@ abi <abi/3.0>,
|
||||
|
||||
include <tunables/global>
|
||||
|
||||
@{exec_path} = @{bin}/systemd-mount
|
||||
@{exec_path} += @{bin}/systemd-umount
|
||||
@{exec_path} = @{bin}/systemd-mount @{bin}/systemd-umount
|
||||
profile systemd-mount @{exec_path} {
|
||||
include <abstractions/base>
|
||||
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.d/{,**} r,
|
||||
|
||||
@{run}/systemd/io.system.ManagedOOM rw,
|
||||
@{run}/systemd/io.systemd.ManagedOOM rw,
|
||||
@{run}/systemd/io.system.ManagedOOM rw,
|
||||
@{run}/systemd/io.systemd.ManagedOOM rw,
|
||||
@{run}/systemd/notify rw,
|
||||
owner @{run}/systemd/journal/socket w,
|
||||
|
||||
|
@ -9,6 +9,7 @@ include <tunables/global>
|
||||
@{exec_path} = @{lib}/systemd/system-sleep/grub2.sleep
|
||||
profile systemd-sleep-grub @{exec_path} {
|
||||
include <abstractions/base>
|
||||
include <abstractions/nameservice-strict>
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
@ -18,8 +19,6 @@ profile systemd-sleep-grub @{exec_path} {
|
||||
|
||||
/etc/sysconfig/bootloader r,
|
||||
|
||||
/var/lib/nscd/passwd r,
|
||||
|
||||
@{PROC}/@{pid}/maps r,
|
||||
|
||||
/dev/tty rw,
|
||||
|
Loading…
Reference in New Issue
Block a user