mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-15 07:54:17 +01:00
3f69b9fec4
It is only used with the owner statement.
37 lines
822 B
Plaintext
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>
|
|
}
|