Allow dbus messages and user database reading.
This commit is contained in:
parent
28a3584c14
commit
5af6cda328
2 changed files with 23 additions and 3 deletions
|
|
@ -40,7 +40,6 @@ profile k3s @{exec_path} flags=(complain) {
|
||||||
/{usr/,}bin/mount rPx,
|
/{usr/,}bin/mount rPx,
|
||||||
/{usr/,}bin/systemd-run rix,
|
/{usr/,}bin/systemd-run rix,
|
||||||
|
|
||||||
# Does not seem to work.
|
|
||||||
# These are all symbolic links to xtables-nft-multi on Ubuntu 22.04
|
# These are all symbolic links to xtables-nft-multi on Ubuntu 22.04
|
||||||
/{usr/,}{s,}bin/iptables rPx -> xtables-nft-multi,
|
/{usr/,}{s,}bin/iptables rPx -> xtables-nft-multi,
|
||||||
/etc/alternatives/iptables rPx -> xtables-nft-multi,
|
/etc/alternatives/iptables rPx -> xtables-nft-multi,
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
# apparmor.d - Full set of apparmor profiles
|
# apparmor.d - Full set of apparmor profiles
|
||||||
# Copyright (C) 2021 Alexandre Pujol <alexandre@pujol.io>
|
# Copyright (C) 2021 Alexandre Pujol <alexandre@pujol.io>
|
||||||
|
# Copyright (C) 2022 Jeroen Rijken
|
||||||
# SPDX-License-Identifier: GPL-2.0-only
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
|
||||||
abi <abi/3.0>,
|
abi <abi/3.0>,
|
||||||
|
|
@ -12,12 +13,32 @@ profile pkttyagent @{exec_path} {
|
||||||
include <abstractions/dbus-strict>
|
include <abstractions/dbus-strict>
|
||||||
|
|
||||||
capability sys_nice,
|
capability sys_nice,
|
||||||
|
capability audit_write,
|
||||||
|
|
||||||
ptrace (read),
|
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,
|
@{exec_path} mr,
|
||||||
|
|
||||||
|
/etc/nsswitch.conf r,
|
||||||
|
/etc/passwd r,
|
||||||
|
|
||||||
owner @{PROC}/@{pids}/stat r,
|
owner @{PROC}/@{pids}/stat r,
|
||||||
|
|
||||||
/dev/tty rw,
|
/dev/tty rw,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue