45 lines
1.2 KiB
Text
45 lines
1.2 KiB
Text
# apparmor.d - Full set of apparmor profiles
|
|
# Copyright (C) 2021 Alexandre Pujol <alexandre@pujol.io>
|
|
# Copyright (C) 2022 Jeroen Rijken
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
abi <abi/3.0>,
|
|
|
|
include <tunables/global>
|
|
|
|
@{exec_path} = /{usr/,}bin/pkttyagent
|
|
profile pkttyagent @{exec_path} {
|
|
include <abstractions/base>
|
|
include <abstractions/dbus-strict>
|
|
include <abstractions/nameservice-strict>
|
|
|
|
capability sys_nice,
|
|
capability audit_write,
|
|
|
|
ptrace (read),
|
|
signal (send,receive),
|
|
|
|
dbus send bus=system path=/org/freedesktop/PolicyKit[0-9]/Authority
|
|
interface=org.freedesktop.DBus.Properties
|
|
member=GetAll,
|
|
|
|
dbus send bus=system path=/org/freedesktop/PolicyKit[0-9]/Authority
|
|
interface=org.freedesktop.PolicyKit[0-9].Authority
|
|
member=RegisterAuthenticationAgentWithOptions,
|
|
|
|
dbus receive bus=system path=/org/freedesktop/PolicyKit[0-9]/AuthenticationAgent
|
|
interface=org.freedesktop.PolicyKit1.AuthenticationAgent
|
|
member=BeginAuthentication,
|
|
|
|
dbus receive bus=system path=/org/freedesktop/PolicyKit[0-9]/Authority
|
|
interface=org.freedesktop.PolicyKit[0-9].Authority
|
|
member=Changed,
|
|
|
|
@{exec_path} mr,
|
|
|
|
owner @{PROC}/@{pids}/stat r,
|
|
|
|
/dev/tty rw,
|
|
|
|
include if exists <local/pkttyagent>
|
|
}
|