feat(systemd): add systemd-cat & systemd-inhibit

This commit is contained in:
Alexandre Pujol 2023-02-04 23:56:10 +00:00
parent e93e80ee20
commit b16d172e22
No known key found for this signature in database
GPG Key ID: C5469996F0DF68EC
2 changed files with 40 additions and 0 deletions

View 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>
}

View 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>
}