mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-18 08:58:15 +01:00
feat(profiles): add aa-complain.
This commit is contained in:
parent
a30d3dd415
commit
993d490a62
1 changed files with 35 additions and 0 deletions
35
apparmor.d/profiles-a-f/aa-enforce
Normal file
35
apparmor.d/profiles-a-f/aa-enforce
Normal 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>
|
||||||
|
}
|
Loading…
Reference in a new issue