37 lines
No EOL
771 B
Text
37 lines
No EOL
771 B
Text
# 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} {
|
|
include <abstractions/base>
|
|
include <abstractions/consoles>
|
|
include <abstractions/perl>
|
|
include <abstractions/wutmp>
|
|
|
|
capability sys_ptrace,
|
|
|
|
ptrace (read),
|
|
|
|
@{exec_path} mr,
|
|
|
|
/{usr/,}bin/systemd-detect-virt rPx,
|
|
/{usr/,}bin/who rix,
|
|
/usr/share/debconf/frontend rix,
|
|
|
|
/etc/needrestart/{,**} r,
|
|
|
|
@{PROC}/ r,
|
|
@{PROC}/@{pids}/cmdline r,
|
|
@{PROC}/@{pids}/environ r,
|
|
@{PROC}/@{pids}/stat r,
|
|
|
|
/dev/ r,
|
|
/dev/**/ r,
|
|
|
|
include if exists <local/needrestart>
|
|
} |