apparmor.d/apparmor.d/profiles-a-f/augenrules
Alexandre Pujol 3f69b9fec4
feat(profile): use the new @{tmp} variable.
It is only used with the owner statement.
2024-05-02 22:12:02 +01:00

37 lines
822 B
Plaintext

# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2022-2024 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = @{bin}/augenrules
profile augenrules @{exec_path} flags=(attach_disconnected) {
include <abstractions/base>
include <abstractions/nameservice-strict>
@{exec_path} mr,
@{sh_path} rix,
@{bin}/{,e,f}grep rix,
@{bin}/{,g,m}awk rix,
@{bin}/auditctl rPx,
@{bin}/cat rix,
@{bin}/chmod rix,
@{bin}/cmp rix,
@{bin}/cp rix,
@{bin}/ls rix,
@{bin}/mktemp rix,
@{bin}/rm rix,
/etc/audit/audit.rules rw,
/etc/audit/rules.d/{,*} r,
owner @{tmp}/aurules.@{rand8} rw,
/dev/tty rw,
include if exists <local/augenrules>
}