mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-18 08:58:15 +01:00
Add aa-notify
This commit is contained in:
parent
29253d0888
commit
4d883c82d6
1 changed files with 34 additions and 0 deletions
34
apparmor.d/profiles-a-l/aa-notify
Normal file
34
apparmor.d/profiles-a-l/aa-notify
Normal file
|
@ -0,0 +1,34 @@
|
|||
# apparmor.d - Full set of apparmor profiles
|
||||
# Copyright (C) 2021 Alexandre Pujol <alexandre@pujol.io>
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
abi <abi/3.0>,
|
||||
|
||||
include <tunables/global>
|
||||
|
||||
@{exec_path} = /{usr/,}bin/aa-notify
|
||||
profile aa-notify @{exec_path} flags=(complain) {
|
||||
include <abstractions/base>
|
||||
include <abstractions/python>
|
||||
include <abstractions/nameservice-strict>
|
||||
|
||||
ptrace (read),
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
/etc/apparmor/*.conf r,
|
||||
/etc/inputrc r,
|
||||
|
||||
/usr/share/terminfo/x/xterm-256color r,
|
||||
/usr/share/terminfo/d/dumb r,
|
||||
/var/log/audit/audit.log r,
|
||||
|
||||
owner /tmp/[a-z0-9]* r,
|
||||
owner /tmp/apparmor-bugreport-[a-z0-9]*.txt rw,
|
||||
|
||||
@{PROC}/ r,
|
||||
@{PROC}/@{pid}/stat r,
|
||||
@{PROC}/@{pid}/cmdline r,
|
||||
|
||||
include if exists <local/aa-notify>
|
||||
}
|
Loading…
Reference in a new issue