feat(profiles): add audit related profiles.

This commit is contained in:
Alexandre Pujol 2022-06-13 22:15:13 +01:00
parent 939363a9a7
commit 2c6843f5fe
Failed to generate hash of commit
2 changed files with 45 additions and 0 deletions

View 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/auditctl
profile auditctl @{exec_path} {
include <abstractions/base>
capability audit_control,
network netlink raw,
@{exec_path} mr,
include if exists <local/auditctl>
}

View file

@ -0,0 +1,25 @@
# 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/augenrules
profile augenrules @{exec_path} {
include <abstractions/base>
include <abstractions/nameservice-strict>
@{exec_path} mr,
/{usr/,}bin/mktemp rix,
/{usr/,}bin/rm rix,
/{usr/,}bin/auditctl rPx,
owner /tmp/aurules.* rw,
/dev/tty rw,
include if exists <local/augenrules>
}