Add apparmor.systemd.

This commit is contained in:
Alexandre Pujol 2021-09-28 21:57:25 +01:00
parent e0434f22a4
commit c4f1e00fba
Failed to generate hash of commit

View file

@ -0,0 +1,29 @@
# 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/,}lib/apparmor/apparmor.systemd
profile apparmor.systemd @{exec_path} {
include <abstractions/base>
@{exec_path} mr,
/{usr/,}bin/{,ba,da}sh rix,
/{usr/,}{s,}bin/aa-status rPx,
/{usr/,}sbin/apparmor_parser rPx,
/{usr/,}lib/apparmor/rc.apparmor.functions r,
@{sys}/fs/cgroup/systemd/ r,
@{sys}/kernel/security/apparmor/{,**} r,
@{sys}/module/apparmor/ r,
@{PROC}/filesystems r,
@{PROC}/mounts r,
include if exists <local/apparmor.systemd>
}