mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-15 07:54:17 +01:00
feat(systemd): add systemd-cat & systemd-inhibit
This commit is contained in:
parent
e93e80ee20
commit
b16d172e22
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…
Reference in New Issue
Block a user