mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-18 08:58:15 +01:00
feat(kde): rewrite polkit-kde-authentication-agent.
This commit is contained in:
parent
19d1a59bd3
commit
0efc3e0703
2 changed files with 26 additions and 19 deletions
|
@ -1,54 +1,60 @@
|
||||||
# apparmor.d - Full set of apparmor profiles
|
# apparmor.d - Full set of apparmor profiles
|
||||||
# Copyright (C) 2018-2021 Mikhail Morfikov
|
# Copyright (C) 2018-2021 Mikhail Morfikov
|
||||||
|
# Copyright (C) 2023 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>,
|
||||||
|
|
||||||
include <tunables/global>
|
include <tunables/global>
|
||||||
|
|
||||||
@{exec_path} = /{usr/,}lib/@{multiarch}/libexec/polkit-kde-authentication-agent-[0-9]
|
@{exec_path} = /{usr/,}lib{,exec}/@{multiarch}/polkit-kde-authentication-agent-[0-9]
|
||||||
|
@{exec_path} += /{usr/,}lib{,exec}/polkit-kde-authentication-agent-[0-9]
|
||||||
profile polkit-kde-authentication-agent @{exec_path} {
|
profile polkit-kde-authentication-agent @{exec_path} {
|
||||||
include <abstractions/base>
|
include <abstractions/base>
|
||||||
include <abstractions/consoles>
|
include <abstractions/consoles>
|
||||||
include <abstractions/X>
|
include <abstractions/dri-enumerate>
|
||||||
include <abstractions/gtk>
|
|
||||||
include <abstractions/fonts>
|
|
||||||
include <abstractions/fontconfig-cache-read>
|
include <abstractions/fontconfig-cache-read>
|
||||||
|
include <abstractions/fonts>
|
||||||
include <abstractions/freedesktop.org>
|
include <abstractions/freedesktop.org>
|
||||||
|
include <abstractions/gtk>
|
||||||
|
include <abstractions/mesa>
|
||||||
|
include <abstractions/nameservice-strict>
|
||||||
include <abstractions/qt5-compose-cache-write>
|
include <abstractions/qt5-compose-cache-write>
|
||||||
include <abstractions/wayland>
|
include <abstractions/wayland>
|
||||||
include <abstractions/dri-enumerate>
|
include <abstractions/X>
|
||||||
include <abstractions/nameservice-strict>
|
|
||||||
include <abstractions/mesa>
|
|
||||||
|
|
||||||
signal (send) set=(term, kill) peer=polkit-agent-helper,
|
signal (send) set=(term, kill) peer=polkit-agent-helper,
|
||||||
|
|
||||||
@{exec_path} mr,
|
@{exec_path} mr,
|
||||||
|
|
||||||
/{usr/,}lib/polkit-[0-9]/polkit-agent-helper-[0-9] rPx,
|
/{usr/,}lib/polkit-[0-9]/polkit-agent-helper-[0-9] rPx,
|
||||||
|
|
||||||
/{usr/,}lib/@{multiarch}/qt5/plugins/kf5/org.kde.kwindowsystem.platforms/KF5WindowSystemX11Plugin.so mr,
|
/{usr/,}lib/@{multiarch}/qt5/plugins/kf5/org.kde.kwindowsystem.platforms/KF5WindowSystemX11Plugin.so mr,
|
||||||
|
|
||||||
@{PROC}/@{pid}/cmdline r,
|
/usr/share/hwdata/pnp.ids r,
|
||||||
@{PROC}/@{pid}/cgroup r,
|
/usr/share/qt/translations/*.qm r,
|
||||||
@{PROC}/@{pid}/fd/ r,
|
/usr/share/qt5ct/** r,
|
||||||
@{PROC}/sys/kernel/core_pattern r,
|
|
||||||
|
|
||||||
/var/lib/dbus/machine-id r,
|
/var/lib/dbus/machine-id r,
|
||||||
/etc/machine-id r,
|
/etc/machine-id r,
|
||||||
|
|
||||||
owner @{user_config_dirs}/qt5ct/{,**} r,
|
|
||||||
/usr/share/qt5ct/** r,
|
|
||||||
|
|
||||||
/usr/share/hwdata/pnp.ids r,
|
|
||||||
|
|
||||||
owner @{user_config_dirs}/kdeglobals r,
|
|
||||||
owner @{user_cache_dirs}/icon-cache.kcache rw,
|
owner @{user_cache_dirs}/icon-cache.kcache rw,
|
||||||
|
|
||||||
/dev/shm/#[0-9]*[0-9] rw,
|
owner @{user_config_dirs}/kdedefaults/* r,
|
||||||
|
owner @{user_config_dirs}/kdeglobals r,
|
||||||
|
owner @{user_config_dirs}/kwinrc r,
|
||||||
|
owner @{user_config_dirs}/qt5ct/{,**} r,
|
||||||
|
|
||||||
owner /tmp/#[0-9]*[0-9] rw,
|
owner /tmp/#[0-9]*[0-9] rw,
|
||||||
owner /tmp/polkit-kde-authentication-agent-[0-9].* rwl -> /tmp/#[0-9]*[0-9],
|
owner /tmp/polkit-kde-authentication-agent-[0-9].* rwl -> /tmp/#[0-9]*[0-9],
|
||||||
|
|
||||||
|
@{run}/systemd/users/@{uid} r,
|
||||||
|
|
||||||
|
@{PROC}/@{pid}/cgroup r,
|
||||||
|
@{PROC}/@{pid}/cmdline r,
|
||||||
|
@{PROC}/@{pid}/fd/ r,
|
||||||
|
@{PROC}/sys/kernel/core_pattern r,
|
||||||
|
|
||||||
|
/dev/shm/#[0-9]*[0-9] rw,
|
||||||
|
|
||||||
include if exists <local/polkit-kde-authentication-agent>
|
include if exists <local/polkit-kde-authentication-agent>
|
||||||
}
|
}
|
||||||
|
|
|
@ -174,6 +174,7 @@ pkttyagent complain
|
||||||
plymouth complain
|
plymouth complain
|
||||||
plymouth-set-default-theme attach_disconnected,complain
|
plymouth-set-default-theme attach_disconnected,complain
|
||||||
plymouthd complain
|
plymouthd complain
|
||||||
|
polkit-kde-authentication-agent complain
|
||||||
power-profiles-daemon attach_disconnected,complain
|
power-profiles-daemon attach_disconnected,complain
|
||||||
qemu-ga complain
|
qemu-ga complain
|
||||||
remmina complain
|
remmina complain
|
||||||
|
|
Loading…
Reference in a new issue