feat(profile): add initial profile for systemd-initctl.
This commit is contained in:
parent
6c6e1c3456
commit
d76bc0b3be
2 changed files with 28 additions and 0 deletions
27
apparmor.d/groups/systemd/systemd-initctl
Normal file
27
apparmor.d/groups/systemd/systemd-initctl
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
# 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} = @{lib}/systemd/systemd-initctl
|
||||
profile systemd-initctl @{exec_path} flags=(attach_disconnected) {
|
||||
include <abstractions/base>
|
||||
include <abstractions/bus-system>
|
||||
include <abstractions/common/systemd>
|
||||
|
||||
capability net_admin,
|
||||
|
||||
unix type=stream addr=@@{udbus}/bus/systemd-initctl/,
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
@{run}/initctl rw,
|
||||
@{run}/systemd/notify rw,
|
||||
|
||||
include if exists <local/systemd-initctl>
|
||||
}
|
||||
|
||||
# vim:syntax=apparmor
|
||||
|
|
@ -353,6 +353,7 @@ systemd-generator-veritysetup attach_disconnected,complain
|
|||
systemd-homed attach_disconnected,complain
|
||||
systemd-homework complain
|
||||
systemd-inhibit attach_disconnected,complain
|
||||
systemd-initctl attach_disconnected,complain
|
||||
systemd-journald attach_disconnected,mediate_deleted
|
||||
systemd-mount complain
|
||||
systemd-network-generator attach_disconnected,complain
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue