feat(profiles): general update.

This commit is contained in:
Alexandre Pujol 2023-05-07 20:34:00 +01:00
parent b740a1c3e6
commit 526dcc3252
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
14 changed files with 29 additions and 9 deletions

View file

@ -7,16 +7,24 @@ abi <abi/3.0>,
include <tunables/global>
@{exec_path} = /{usr/,}bin/systemd-machine-id-setup
profile systemd-machine-id-setup @{exec_path} {
profile systemd-machine-id-setup @{exec_path} flags=(attach_disconnected) {
include <abstractions/base>
include <abstractions/consoles>
capability dac_override,
capability setgid,
capability setuid,
capability sys_admin,
capability sys_chroot,
ptrace (read),
mount /,
umount /etc/machine-id,
@{exec_path} mr,
/ r,
/etc/machine-id rw,
/etc/ r,
/var/ r,
@ -25,6 +33,7 @@ profile systemd-machine-id-setup @{exec_path} {
@{PROC}/cmdline r,
@{PROC}/sys/kernel/osrelease r,
owner @{PROC}/@{pid}/stat r,
owner @{PROC}/@{pid}/setgroups r,
include if exists <local/systemd-machine-id-setup>
}

View file

@ -18,7 +18,11 @@ profile systemd-sleep-grub @{exec_path} {
/etc/sysconfig/bootloader r,
/var/lib/nscd/passwd r,
@{PROC}/@{pid}/maps r,
/dev/tty rw,
include if exists <local/systemd-sleep-grub>
}