Skip to content

Commit

Permalink
feat(profiles): add aa-complain.
Browse files Browse the repository at this point in the history
  • Loading branch information
roddhjav committed Aug 27, 2023
1 parent a30d3dd commit 993d490
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions apparmor.d/profiles-a-f/aa-enforce
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2023 Alexandre Pujol <[email protected]>
# 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>
}

0 comments on commit 993d490

Please sign in to comment.