apparmor.d/apparmor.d/profiles-m-r/needrestart-dpkg-status
2022-05-21 16:38:16 +01:00

23 lines
No EOL
549 B
Text

# 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/needrestart/dpkg-status
profile needrestart-dpkg-status @{exec_path} {
include <abstractions/base>
include <abstractions/consoles>
@{exec_path} mr,
/{usr/,}bin/{,ba,da}sh rix,
/{usr/,}bin/mkdir rix,
/{usr/,}bin/touch rix,
@{run}/needrestart/{,**} rw,
include if exists <local/needrestart-dpkg-status>
}