mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-15 07:54:17 +01:00
Allow dbus messages and user database reading.
This commit is contained in:
parent
28a3584c14
commit
5af6cda328
@ -40,7 +40,6 @@ profile k3s @{exec_path} flags=(complain) {
|
||||
/{usr/,}bin/mount rPx,
|
||||
/{usr/,}bin/systemd-run rix,
|
||||
|
||||
# Does not seem to work.
|
||||
# These are all symbolic links to xtables-nft-multi on Ubuntu 22.04
|
||||
/{usr/,}{s,}bin/iptables rPx -> xtables-nft-multi,
|
||||
/etc/alternatives/iptables rPx -> xtables-nft-multi,
|
||||
|
@ -1,5 +1,6 @@
|
||||
# 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>,
|
||||
@ -12,15 +13,35 @@ profile pkttyagent @{exec_path} {
|
||||
include <abstractions/dbus-strict>
|
||||
|
||||
capability sys_nice,
|
||||
capability audit_write,
|
||||
|
||||
ptrace (read),
|
||||
signal (receive),
|
||||
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,
|
||||
|
||||
/etc/nsswitch.conf r,
|
||||
/etc/passwd r,
|
||||
|
||||
owner @{PROC}/@{pids}/stat r,
|
||||
|
||||
/dev/tty rw,
|
||||
|
||||
include if exists <local/pkttyagent>
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user