mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-16 00:13:48 +01:00
68 lines
2.0 KiB
Plaintext
68 lines
2.0 KiB
Plaintext
# apparmor.d - Full set of apparmor profiles
|
|
# Copyright (C) 2022 Alexandre Pujol <alexandre@pujol.io>
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
abi <abi/3.0>,
|
|
|
|
include <tunables/global>
|
|
|
|
@{exec_path} = /{usr/,}{s,}bin/needrestart
|
|
profile needrestart @{exec_path} flags=(attach_disconnected) {
|
|
include <abstractions/base>
|
|
include <abstractions/consoles>
|
|
include <abstractions/nameservice-strict>
|
|
include <abstractions/perl>
|
|
include <abstractions/python>
|
|
include <abstractions/wutmp>
|
|
|
|
capability checkpoint_restore,
|
|
capability dac_read_search,
|
|
capability sys_ptrace,
|
|
|
|
ptrace (read),
|
|
|
|
@{exec_path} mrix,
|
|
|
|
/{usr/,}bin/{,ba,da}sh rix,
|
|
/{usr/,}bin/dpkg-query rpx,
|
|
/{usr/,}bin/fail2ban-server rPx,
|
|
/{usr/,}bin/locale rix,
|
|
/{usr/,}bin/python3.[0-9]* rix,
|
|
/{usr/,}bin/sed rix,
|
|
/{usr/,}bin/stty rix,
|
|
/{usr/,}bin/systemctl rPx,
|
|
/{usr/,}bin/systemd-detect-virt rPx,
|
|
/{usr/,}bin/udevadm rPx,
|
|
/{usr/,}bin/whiptail rPx,
|
|
/{usr/,}bin/who rix,
|
|
/{usr/,}lib/needrestart/iucode-scan-versions rPx,
|
|
/usr/share/debconf/frontend rix,
|
|
|
|
/{usr/,}bin/networkd-dispatcher r,
|
|
/{usr/,}bin/gettext.sh r,
|
|
/usr/share/needrestart/{,**} r,
|
|
/usr/share/unattended-upgrades/unattended-upgrade-shutdown r,
|
|
|
|
/etc/debconf.conf r,
|
|
/etc/needrestart/{,**} r,
|
|
/etc/needrestart/*.d/* rix,
|
|
/etc/shadow r,
|
|
|
|
/boot/ r,
|
|
/boot/vmlinuz* r,
|
|
|
|
owner /var/cache/debconf/{config,passwords,templates}.dat{,-new,-old} rwk,
|
|
|
|
@{PROC}/ r,
|
|
@{PROC}/@{pids}/cgroup r,
|
|
@{PROC}/@{pids}/cmdline r,
|
|
@{PROC}/@{pids}/environ r,
|
|
@{PROC}/@{pids}/maps r,
|
|
@{PROC}/@{pids}/stat r,
|
|
owner @{PROC}/@{pid}/fd/ r,
|
|
|
|
/dev/ r,
|
|
/dev/**/ r,
|
|
|
|
include if exists <local/needrestart>
|
|
} |