mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-29 22:35:15 +01:00
Add dpkg-status.
This commit is contained in:
parent
162670237c
commit
6bd8e64c78
1 changed files with 22 additions and 0 deletions
22
apparmor.d/groups/apt/dpkg-status
Normal file
22
apparmor.d/groups/apt/dpkg-status
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
# 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 dpkg-status @{exec_path} {
|
||||||
|
include <abstractions/base>
|
||||||
|
|
||||||
|
@{exec_path} mr,
|
||||||
|
|
||||||
|
/{usr/,}bin/{,ba,da}sh rix,
|
||||||
|
/{usr/,}bin/mkdir rix,
|
||||||
|
/{usr/,}bin/touch rix,
|
||||||
|
|
||||||
|
@{run}/needrestart/{,**} rw,
|
||||||
|
|
||||||
|
include if exists <local/dpkg-status>
|
||||||
|
}
|
Loading…
Reference in a new issue