mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-18 00:48:10 +01:00
Add aa-enabled profile.
This commit is contained in:
parent
940ffa0d39
commit
10fd4ed8dd
1 changed files with 20 additions and 0 deletions
20
apparmor.d/profiles-a-f/aa-enabled
Normal file
20
apparmor.d/profiles-a-f/aa-enabled
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
# 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/,}bin/aa-enabled
|
||||||
|
profile aa-enabled @{exec_path} {
|
||||||
|
include <abstractions/base>
|
||||||
|
|
||||||
|
@{exec_path} mr,
|
||||||
|
|
||||||
|
@{sys}/module/apparmor/parameters/enabled r,
|
||||||
|
|
||||||
|
owner @{PROC}/@{pid}/mounts r,
|
||||||
|
|
||||||
|
include if exists <local/aa-enabled>
|
||||||
|
}
|
Loading…
Reference in a new issue