diff --git a/apparmor.d/groups/apt/dpkg-status b/apparmor.d/groups/apt/dpkg-status new file mode 100644 index 000000000..ed5f92181 --- /dev/null +++ b/apparmor.d/groups/apt/dpkg-status @@ -0,0 +1,22 @@ +# apparmor.d - Full set of apparmor profiles +# Copyright (C) 2021 Alexandre Pujol +# SPDX-License-Identifier: GPL-2.0-only + +abi , + +include + +@{exec_path} = /{usr/,}lib/needrestart/dpkg-status +profile dpkg-status @{exec_path} { + include + + @{exec_path} mr, + + /{usr/,}bin/{,ba,da}sh rix, + /{usr/,}bin/mkdir rix, + /{usr/,}bin/touch rix, + + @{run}/needrestart/{,**} rw, + + include if exists +} \ No newline at end of file