2020-09-12 17:19:23 +02:00
|
|
|
# vim:syntax=apparmor
|
|
|
|
# ------------------------------------------------------------------
|
|
|
|
#
|
2021-01-10 16:35:07 +01:00
|
|
|
# Copyright (C) 2018-2021 Mikhail Morfikov
|
2020-09-12 17:19:23 +02:00
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of version 2 of the GNU General Public
|
|
|
|
# License published by the Free Software Foundation.
|
|
|
|
#
|
|
|
|
# ------------------------------------------------------------------
|
|
|
|
|
2020-12-10 22:33:39 +01:00
|
|
|
abi <abi/3.0>,
|
2020-09-12 17:19:23 +02:00
|
|
|
|
2020-12-10 22:33:39 +01:00
|
|
|
include <tunables/global>
|
2020-09-12 17:19:23 +02:00
|
|
|
|
|
|
|
@{exec_path} = /{usr/,}lib/@{multiarch}/libexec/polkit-kde-authentication-agent-[0-9]
|
|
|
|
profile polkit-kde-authentication-agent @{exec_path} {
|
2020-12-10 22:33:39 +01:00
|
|
|
include <abstractions/base>
|
|
|
|
include <abstractions/consoles>
|
|
|
|
include <abstractions/X>
|
|
|
|
include <abstractions/gtk>
|
|
|
|
include <abstractions/fonts>
|
|
|
|
include <abstractions/fontconfig-cache-read>
|
|
|
|
include <abstractions/freedesktop.org>
|
|
|
|
include <abstractions/qt5-compose-cache-write>
|
|
|
|
include <abstractions/wayland>
|
|
|
|
include <abstractions/dri-enumerate>
|
|
|
|
include <abstractions/nameservice-strict>
|
|
|
|
include <abstractions/mesa>
|
|
|
|
include <abstractions/deny-root-dir-access>
|
2020-09-12 17:19:23 +02:00
|
|
|
|
|
|
|
signal (send) set=(term, kill) peer=polkit-agent-helper,
|
|
|
|
|
|
|
|
@{exec_path} mr,
|
|
|
|
|
|
|
|
/{usr/,}lib/polkit-[0-9]/polkit-agent-helper-[0-9] rPx,
|
|
|
|
|
|
|
|
/{usr/,}lib/@{multiarch}/qt5/plugins/kf5/org.kde.kwindowsystem.platforms/KF5WindowSystemX11Plugin.so mr,
|
|
|
|
|
|
|
|
@{PROC}/@{pid}/cmdline r,
|
|
|
|
@{PROC}/@{pid}/cgroup r,
|
|
|
|
@{PROC}/@{pid}/fd/ r,
|
|
|
|
@{PROC}/sys/kernel/core_pattern r,
|
|
|
|
|
|
|
|
/var/lib/dbus/machine-id r,
|
|
|
|
/etc/machine-id r,
|
|
|
|
|
|
|
|
owner @{HOME}/.config/qt5ct/{,**} r,
|
|
|
|
/usr/share/qt5ct/** r,
|
|
|
|
|
|
|
|
/usr/share/hwdata/pnp.ids r,
|
|
|
|
|
|
|
|
owner @{HOME}/.config/kdeglobals r,
|
|
|
|
owner @{HOME}/.cache/icon-cache.kcache rw,
|
|
|
|
|
|
|
|
/dev/shm/#[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],
|
|
|
|
|
2020-12-10 22:33:39 +01:00
|
|
|
include if exists <local/polkit-kde-authentication-agent>
|
2020-09-12 17:19:23 +02:00
|
|
|
}
|