apparmor.d/apparmor.d/profiles-a-f/aa-notify
2023-01-15 17:15:26 +00:00

42 lines
862 B
Plaintext

# 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} {
include <abstractions/base>
include <abstractions/dbus-session-strict>
include <abstractions/nameservice-strict>
include <abstractions/python>
capability sys_ptrace,
ptrace (read),
@{exec_path} mr,
/{usr/,}bin/ r,
/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 @{HOME}/.terminfo/[0-9]*/dumb r,
owner /tmp/[a-z0-9]* rw,
owner /tmp/apparmor-bugreport-*.txt rw,
@{PROC}/ r,
@{PROC}/@{pid}/stat r,
@{PROC}/@{pid}/cmdline r,
include if exists <local/aa-notify>
}