feat(profiles): add aa-complain.

This commit is contained in:
Alexandre Pujol 2023-08-27 15:47:49 +01:00
parent a30d3dd415
commit 993d490a62
Failed to generate hash of commit

View file

@ -0,0 +1,35 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2023 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = @{bin}/aa-enforce @{bin}/aa-complain
profile aa-enforce @{exec_path} {
include <abstractions/base>
include <abstractions/consoles>
include <abstractions/python>
capability dac_read_search,
@{exec_path} mr,
@{bin}/ r,
@{bin}/apparmor_parser rPx,
/usr/share/terminfo/x/xterm-256color r,
/etc/apparmor/logprof.conf r,
/etc/apparmor.d/{,**} rw,
/etc/inputrc r,
owner /snap/core[0-9]*/@{int}/etc/apparmor.d/{,**} rw,
owner /var/lib/snapd/apparmor/{,**} rw,
owner @{PROC}/@{pid}/fd r,
include if exists <local/aa-enforce>
}