Add systemd-delta & systemd-path.

This commit is contained in:
Alexandre Pujol 2021-07-08 12:54:52 +01:00
parent 178459f406
commit a0d703a3ee
No known key found for this signature in database
GPG Key ID: C5469996F0DF68EC
2 changed files with 51 additions and 0 deletions

View File

@ -0,0 +1,33 @@
# 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-delta
profile systemd-delta @{exec_path} {
include <abstractions/base>
signal (send) peer=child-pager,
@{exec_path} mr,
/{usr/,}bin/less rPx -> child-pager,
/etc/binfmt.d/{,**} r,
/etc/modprobe.d/{,**} r,
/etc/modules-load.d/{,**} r,
/etc/sysctl.d/{,**} r,
/etc/systemd/system/{,**} r,
/etc/systemd/user/{,**} r,
/etc/tmpfiles.d/{,**} r,
/etc/udev/rules.d/{,**} r,
@{run}/systemd/system/{,**} r,
@{run}/tmpfiles.d/{,**} r,
@{PROC}/@{pids}/cgroup r,
include if exists <local/systemd-delta>
}

View File

@ -0,0 +1,18 @@
# 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-path
profile systemd-path @{exec_path} {
include <abstractions/base>
@{exec_path} mr,
owner @{user_config_dirs}/user-dirs.dirs r,
include if exists <local/systemd-path>
}