feat(systemd): add systemd-cat & systemd-inhibit
This commit is contained in:
parent
e93e80ee20
commit
b16d172e22
2 changed files with 40 additions and 0 deletions
20
apparmor.d/groups/systemd/systemd-cat
Normal file
20
apparmor.d/groups/systemd/systemd-cat
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
# apparmor.d - Full set of apparmor profiles
|
||||||
|
# Copyright (C) 2021 Alexandre Pujol <alexandre@pujol.io>
|
||||||
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
|
||||||
|
abi <abi/3.0>,
|
||||||
|
|
||||||
|
include <tunables/global>
|
||||||
|
|
||||||
|
@{exec_path} = /{usr/,}bin/systemd-cat
|
||||||
|
profile systemd-cat @{exec_path} {
|
||||||
|
include <abstractions/base>
|
||||||
|
|
||||||
|
capability net_admin,
|
||||||
|
|
||||||
|
@{exec_path} mr,
|
||||||
|
|
||||||
|
/{usr/,}bin/cat rix,
|
||||||
|
|
||||||
|
include if exists <local/systemd-cat>
|
||||||
|
}
|
||||||
20
apparmor.d/groups/systemd/systemd-inhibit
Normal file
20
apparmor.d/groups/systemd/systemd-inhibit
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
# apparmor.d - Full set of apparmor profiles
|
||||||
|
# Copyright (C) 2021 Alexandre Pujol <alexandre@pujol.io>
|
||||||
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
|
||||||
|
abi <abi/3.0>,
|
||||||
|
|
||||||
|
include <tunables/global>
|
||||||
|
|
||||||
|
@{exec_path} = /{usr/,}bin/systemd-inhibit
|
||||||
|
profile systemd-inhibit @{exec_path} flags=(attach_disconnected) {
|
||||||
|
include <abstractions/base>
|
||||||
|
|
||||||
|
capability net_admin,
|
||||||
|
|
||||||
|
@{exec_path} mr,
|
||||||
|
|
||||||
|
/{usr/,}bin/cat rix,
|
||||||
|
|
||||||
|
include if exists <local/systemd-inhibit>
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue