67 lines
1.6 KiB
Text
67 lines
1.6 KiB
Text
# apparmor.d - Full set of apparmor profiles
|
|
# Copyright (C) 2020-2021 Mikhail Morfikov
|
|
# 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-analyze
|
|
profile systemd-analyze @{exec_path} {
|
|
include <abstractions/base>
|
|
include <abstractions/systemd-common>
|
|
|
|
capability sys_resource,
|
|
capability net_admin,
|
|
|
|
signal (send) peer=child-pager,
|
|
|
|
network inet dgram,
|
|
network netlink raw,
|
|
|
|
@{exec_path} mr,
|
|
/{usr/,}lib/systemd/system-environment-generators/* rix,
|
|
|
|
/{usr/,}bin/pager rPx -> child-pager,
|
|
/{usr/,}bin/less rPx -> child-pager,
|
|
/{usr/,}bin/more rPx -> child-pager,
|
|
/{usr/,}bin/man rPx,
|
|
|
|
owner @{PROC}/@{pid}/cgroup r,
|
|
owner @{PROC}/@{pid}/mountinfo r,
|
|
owner @{PROC}/@{pid}/comm r,
|
|
@{PROC}/swaps r,
|
|
|
|
# For systemd-analyze cat-config
|
|
/etc/systemd/** r,
|
|
/{usr/,}lib/systemd/** r,
|
|
|
|
@{sys}/fs/cgroup/{,**} r,
|
|
@{sys}/fs/cgroup/{systemd,unified}/**/cgroup.procs rw,
|
|
@{sys}/fs/cgroup/unified/**/init.scope/ rw,
|
|
@{sys}/firmware/acpi/tables/FPDT r,
|
|
|
|
@{sys}/module/**/uevent r,
|
|
@{sys}/devices/**/uevent r,
|
|
@{run}/udev/data/* r,
|
|
|
|
@{run}/udev/tags/systemd/ r,
|
|
@{run}/systemd/system/ r,
|
|
@{run}/systemd/userdb/io.systemd.DynamicUser w,
|
|
|
|
owner /tmp/systemd-temporary-*/ rw,
|
|
|
|
/usr/ r,
|
|
|
|
/etc/default/locale r,
|
|
/etc/locale.conf r,
|
|
|
|
@{sys}/firmware/efi/efivars/LoaderTimeInitUSec-@{uuid} r,
|
|
@{sys}/firmware/efi/efivars/LoaderTimeExecUSec-@{uuid} r,
|
|
|
|
/dev/tty rw,
|
|
/dev/pts/1 rw,
|
|
|
|
include if exists <local/systemd-analyze>
|
|
}
|