mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-29 22:35:15 +01:00
fix: fix polkit integration.
This commit is contained in:
parent
0a7860694f
commit
84dc85b82d
1 changed files with 11 additions and 14 deletions
|
@ -1,6 +1,6 @@
|
||||||
# apparmor.d - Full set of apparmor profiles
|
# apparmor.d - Full set of apparmor profiles
|
||||||
# Copyright (C) 2018-2021 Mikhail Morfikov
|
# Copyright (C) 2018-2022 Mikhail Morfikov
|
||||||
# 2021 Alexandre Pujol <alexandre@pujol.io>
|
# Copyright (C) 2021-2022 Alexandre Pujol <alexandre@pujol.io>
|
||||||
# SPDX-License-Identifier: GPL-2.0-only
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
|
||||||
abi <abi/3.0>,
|
abi <abi/3.0>,
|
||||||
|
@ -14,22 +14,19 @@ profile polkit-agent-helper @{exec_path} {
|
||||||
include <abstractions/nameservice-strict>
|
include <abstractions/nameservice-strict>
|
||||||
include <abstractions/consoles>
|
include <abstractions/consoles>
|
||||||
|
|
||||||
|
capability audit_write,
|
||||||
|
capability dac_override,
|
||||||
|
capability net_admin,
|
||||||
|
capability setgid,
|
||||||
|
capability setuid,
|
||||||
|
capability sys_nice,
|
||||||
|
|
||||||
|
network netlink raw,
|
||||||
|
|
||||||
signal (receive) set=(term, kill) peer=polkit-*-authentication-agent,
|
signal (receive) set=(term, kill) peer=polkit-*-authentication-agent,
|
||||||
signal (receive) set=(term, kill) peer=gnome-shell,
|
signal (receive) set=(term, kill) peer=gnome-shell,
|
||||||
signal (receive) set=(term, kill) peer=pkexec,
|
signal (receive) set=(term, kill) peer=pkexec,
|
||||||
|
|
||||||
capability setgid,
|
|
||||||
capability setuid,
|
|
||||||
|
|
||||||
capability audit_write,
|
|
||||||
|
|
||||||
# Needed?
|
|
||||||
deny capability sys_nice,
|
|
||||||
capability dac_override,
|
|
||||||
capability net_admin,
|
|
||||||
|
|
||||||
network netlink raw,
|
|
||||||
|
|
||||||
@{exec_path} mr,
|
@{exec_path} mr,
|
||||||
|
|
||||||
# file_inherit
|
# file_inherit
|
||||||
|
|
Loading…
Reference in a new issue