feat(profile): add deb-systemd-* profiles.
This commit is contained in:
parent
e5b1c0ca7d
commit
f90208bb7f
3 changed files with 70 additions and 0 deletions
39
apparmor.d/groups/apt/deb-systemd-helper
Normal file
39
apparmor.d/groups/apt/deb-systemd-helper
Normal file
|
|
@ -0,0 +1,39 @@
|
||||||
|
# apparmor.d - Full set of apparmor profiles
|
||||||
|
# Copyright (C) 2025 Alexandre Pujol <alexandre@pujol.io>
|
||||||
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
|
||||||
|
abi <abi/4.0>,
|
||||||
|
|
||||||
|
include <tunables/global>
|
||||||
|
|
||||||
|
@{exec_path} = @{bin}/deb-systemd-helper
|
||||||
|
profile deb-systemd-helper @{exec_path} {
|
||||||
|
include <abstractions/base>
|
||||||
|
include <abstractions/consoles>
|
||||||
|
include <abstractions/perl>
|
||||||
|
|
||||||
|
@{exec_path} mr,
|
||||||
|
|
||||||
|
@{bin}/systemctl rCx -> systemctl,
|
||||||
|
|
||||||
|
/var/lib/systemd/deb-systemd-helper-enabled/** rw,
|
||||||
|
/var/lib/systemd/deb-systemd-helper-masked/ rw,
|
||||||
|
|
||||||
|
profile systemctl {
|
||||||
|
include <abstractions/base>
|
||||||
|
include <abstractions/app/systemctl>
|
||||||
|
|
||||||
|
/etc/ r,
|
||||||
|
/etc/systemd/ r,
|
||||||
|
/etc/systemd/system/ r,
|
||||||
|
/etc/systemd/system/* rw,
|
||||||
|
/etc/systemd/system/*.wants/ r,
|
||||||
|
/etc/systemd/system/*.wants/* rw,
|
||||||
|
|
||||||
|
include if exists <local/deb-systemd-helper_systemctl>
|
||||||
|
}
|
||||||
|
|
||||||
|
include if exists <local/deb-systemd-helper>
|
||||||
|
}
|
||||||
|
|
||||||
|
# vim:syntax=apparmor
|
||||||
29
apparmor.d/groups/apt/deb-systemd-invoke
Normal file
29
apparmor.d/groups/apt/deb-systemd-invoke
Normal file
|
|
@ -0,0 +1,29 @@
|
||||||
|
# apparmor.d - Full set of apparmor profiles
|
||||||
|
# Copyright (C) 2025 Alexandre Pujol <alexandre@pujol.io>
|
||||||
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
|
||||||
|
abi <abi/4.0>,
|
||||||
|
|
||||||
|
include <tunables/global>
|
||||||
|
|
||||||
|
@{exec_path} = @{bin}/deb-systemd-invoke
|
||||||
|
profile deb-systemd-invoke @{exec_path} {
|
||||||
|
include <abstractions/base>
|
||||||
|
include <abstractions/app/systemctl>
|
||||||
|
include <abstractions/perl>
|
||||||
|
|
||||||
|
capability net_admin,
|
||||||
|
capability sys_resource,
|
||||||
|
|
||||||
|
signal send set=(cont term) peer=systemd-tty-ask-password-agent,
|
||||||
|
|
||||||
|
@{exec_path} mr,
|
||||||
|
|
||||||
|
@{sh_path} rix,
|
||||||
|
@{bin}/systemctl rix,
|
||||||
|
@{bin}/systemd-tty-ask-password-agent rPx,
|
||||||
|
|
||||||
|
include if exists <local/deb-systemd-invoke>
|
||||||
|
}
|
||||||
|
|
||||||
|
# vim:syntax=apparmor
|
||||||
|
|
@ -75,6 +75,8 @@ cups-notifier-rss complain
|
||||||
cups-pk-helper-mechanism complain
|
cups-pk-helper-mechanism complain
|
||||||
cupsd attach_disconnected,complain
|
cupsd attach_disconnected,complain
|
||||||
ddcutil complain
|
ddcutil complain
|
||||||
|
deb-systemd-helper complain
|
||||||
|
deb-systemd-invoke complain
|
||||||
dino attach_disconnected,complain
|
dino attach_disconnected,complain
|
||||||
discord complain
|
discord complain
|
||||||
discord-chrome-sandbox complain
|
discord-chrome-sandbox complain
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue