Profiles update.

This commit is contained in:
Alexandre Pujol 2021-09-26 17:28:26 +01:00
parent 937171d40c
commit 18e4745fb1
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
27 changed files with 103 additions and 67 deletions

View file

@ -13,7 +13,7 @@ abi <abi/3.0>,
include <tunables/global>
# Do not attach to /{usr/,}bin/systemctl by default
profile child-systemctl {
profile child-systemctl flags=(attach_disconnected) {
include <abstractions/base>
include <abstractions/consoles>
include <abstractions/wutmp>
@ -38,5 +38,7 @@ profile child-systemctl {
/dev/kmsg w,
deny /apparmor/.null rw,
include if exists <local/child-systemctl>
}

View file

@ -7,7 +7,7 @@ abi <abi/3.0>,
include <tunables/global>
@{exec_path} = /{usr/,}bin/systemd-hwdb
profile systemd-hwdb @{exec_path} {
profile systemd-hwdb @{exec_path} flags=(attach_disconnected) {
include <abstractions/base>
@{exec_path} mr,
@ -19,5 +19,7 @@ profile systemd-hwdb @{exec_path} {
owner @{PROC}/@{pid}/stat r,
deny /apparmor/.null rw,
include if exists <local/systemd-hwdb>
}

View file

@ -13,16 +13,14 @@ profile systemd-journald @{exec_path} {
include <abstractions/consoles>
include <abstractions/systemd-common>
capability syslog,
capability sys_ptrace,
capability audit_control,
capability dac_read_search,
capability kill,
capability sys_admin,
capability setuid,
capability setgid,
# For audit logs
capability audit_control,
capability setuid,
capability sys_admin,
capability sys_ptrace,
capability syslog,
network netlink raw,

View file

@ -7,7 +7,7 @@ abi <abi/3.0>,
include <tunables/global>
@{exec_path} = /{usr/,}bin/systemd-sysusers
profile systemd-sysusers @{exec_path} {
profile systemd-sysusers @{exec_path} flags=(attach_disconnected) {
include <abstractions/base>
@{exec_path} mr,
@ -37,5 +37,7 @@ profile systemd-sysusers @{exec_path} {
owner @{PROC}/@{pid}/stat r,
@{PROC}/sys/kernel/random/boot_id r,
deny /apparmor/.null rw,
include if exists <local/systemd-sysusers>
}

View file

@ -7,7 +7,7 @@ abi <abi/3.0>,
include <tunables/global>
@{exec_path} = /{usr/,}bin/systemd-tmpfiles
profile systemd-tmpfiles @{exec_path} {
profile systemd-tmpfiles @{exec_path} flags=(attach_disconnected) {
include <abstractions/base>
include <abstractions/systemd-common>
include <abstractions/nameservice-strict>
@ -50,5 +50,7 @@ profile systemd-tmpfiles @{exec_path} {
@{PROC}/@{pid}/net/unix r,
deny /apparmor/.null rw,
include if exists <local/systemd-tmpfiles>
}

View file

@ -97,5 +97,7 @@ profile systemd-udevd @{exec_path} flags=(attach_disconnected complain) {
# file_inherit
owner @{HOME}/.xsession-errors w,
deny /apparmor/.null rw,
include if exists <local/systemd-udevd>
}