2020-09-12 17:19:23 +02:00
|
|
|
# vim:syntax=apparmor
|
|
|
|
# ------------------------------------------------------------------
|
|
|
|
#
|
|
|
|
# Copyright (C) 2018-2020 Mikhail Morfikov
|
|
|
|
#
|
|
|
|
# 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/,}bin/sddm-greeter
|
|
|
|
profile sddm-greeter @{exec_path} {
|
2020-12-10 22:33:39 +01:00
|
|
|
include <abstractions/base>
|
|
|
|
include <abstractions/opencl-intel>
|
|
|
|
include <abstractions/freedesktop.org>
|
|
|
|
include <abstractions/fonts>
|
|
|
|
include <abstractions/fontconfig-cache-read>
|
|
|
|
include <abstractions/mesa>
|
|
|
|
include <abstractions/nameservice-strict>
|
2020-09-12 17:19:23 +02:00
|
|
|
|
|
|
|
@{exec_path} mr,
|
|
|
|
|
|
|
|
owner /var/lib/sddm/** rw,
|
|
|
|
owner /var/lib/sddm/#[0-9]*[0-9] mrw,
|
|
|
|
owner /var/lib/sddm/.cache/** mrwkl -> /var/lib/sddm/.cache/**,
|
|
|
|
/var/lib/sddm/state.conf r,
|
|
|
|
|
|
|
|
/usr/share/sddm/{,**} r,
|
|
|
|
|
|
|
|
/etc/sddm.conf.d/{,*} r,
|
|
|
|
/etc/sddm.conf r,
|
|
|
|
|
|
|
|
# QT
|
|
|
|
/{usr/,}lib/@{multiarch}/qt5/plugins/kf5/org.kde.kwindowsystem.platforms/*.so mr,
|
|
|
|
/{usr/,}lib/@{multiarch}/qt5/plugins/plasma/dataengine/*.so mr,
|
|
|
|
/{usr/,}lib/@{multiarch}/qt5/qml/QtQuick/Controls/**.qmlc mr,
|
|
|
|
/{usr/,}lib/@{multiarch}/qt5/qml/QtQuick/Controls/Private/*.jsc mr,
|
|
|
|
/{usr/,}lib/@{multiarch}/qt5/qml/QtGraphicalEffects/private/DropShadowBase.qmlc mr,
|
|
|
|
|
|
|
|
# List of graphical sessions
|
|
|
|
/usr/share/xsessions/{,*.desktop} r,
|
|
|
|
/usr/share/wayland-sessions/{,*.desktop} r,
|
|
|
|
|
|
|
|
# Themes
|
|
|
|
/usr/share/plasma/desktoptheme/** r,
|
|
|
|
/usr/share/desktop-base/softwaves-theme/login/*.svg r,
|
|
|
|
|
|
|
|
# User avatars
|
|
|
|
/var/lib/AccountsService/icons/*.icon r,
|
|
|
|
|
|
|
|
# All the following is for the test mode
|
|
|
|
#------------------------------------------------------------------
|
|
|
|
owner @{HOME}/.cache/ rw,
|
|
|
|
owner @{HOME}/.cache/sddm-greeter/ rw,
|
|
|
|
owner @{HOME}/.cache/sddm-greeter/qmlcache/ rw,
|
|
|
|
owner @{HOME}/.cache/sddm-greeter/qmlcache/#[0-9]*[0-9] rw,
|
|
|
|
owner @{HOME}/.cache/sddm-greeter/qmlcache/[a-f0-9]*.jsc* rwl -> @{HOME}/.cache/sddm-greeter/qmlcache/#[0-9]*[0-9],
|
|
|
|
owner @{HOME}/.cache/sddm-greeter/qmlcache/[a-f0-9]*.qmlc* rwl -> @{HOME}/.cache/sddm-greeter/qmlcache/#[0-9]*[0-9],
|
|
|
|
|
|
|
|
owner @{HOME}/.cache/qtshadercache/ rw,
|
|
|
|
owner @{HOME}/.cache/qtshadercache/#[0-9]*[0-9] rw,
|
|
|
|
owner @{HOME}/.cache/qtshadercache/[0-9a-f]* rwl -> @{HOME}/.cache/qtshadercache/#[0-9]*[0-9],
|
|
|
|
owner @{HOME}/.cache/qtshadercache-*-little_endian-*/#[0-9]*[0-9] rw,
|
|
|
|
owner @{HOME}/.cache/qtshadercache-*-little_endian-*/[0-9a-f]* rwl -> @{HOME}/.cache/qtshadercache-*-little_endian-*/#[0-9]*[0-9],
|
|
|
|
|
|
|
|
owner @{HOME}/.config/qt5ct/{,**} r,
|
|
|
|
/usr/share/qt5ct/** r,
|
|
|
|
|
|
|
|
# If one is blocked, the others are probed.
|
|
|
|
deny owner @{HOME}/#[0-9]*[0-9] mrw,
|
|
|
|
owner @{HOME}/.glvnd* mrw,
|
|
|
|
# owner /tmp/#[0-9]*[0-9] mrw,
|
|
|
|
# owner /tmp/.glvnd* mrw,
|
|
|
|
|
|
|
|
owner @{HOME}/.config/kdeglobals r,
|
|
|
|
owner @{HOME}/.config/plasmarc r,
|
|
|
|
owner @{HOME}/.cache/icon-cache.kcache rw,
|
|
|
|
owner @{HOME}/.cache/plasma_theme_*.kcache rw,
|
|
|
|
owner @{HOME}/.cache/plasma-svgelements-* rw,
|
|
|
|
|
2020-12-10 22:33:39 +01:00
|
|
|
include <abstractions/qt5-compose-cache-write>
|
2020-09-12 17:19:23 +02:00
|
|
|
|
|
|
|
owner @{PROC}/@{pid}/cmdline r,
|
|
|
|
#------------------------------------------------------------------
|
|
|
|
|
|
|
|
/etc/fstab r,
|
|
|
|
|
|
|
|
/usr/share/hwdata/pnp.ids r,
|
|
|
|
|
2020-10-25 10:23:34 +01:00
|
|
|
owner @{run}/sddm/{,*} rw,
|
2020-09-12 17:19:23 +02:00
|
|
|
|
|
|
|
/{usr/,}lib/@{multiarch}/ld-*.so mr,
|
|
|
|
|
|
|
|
owner @{PROC}/@{pid}/mounts r,
|
|
|
|
@{PROC}/sys/kernel/core_pattern r,
|
|
|
|
|
|
|
|
/var/lib/dbus/machine-id r,
|
|
|
|
/etc/machine-id r,
|
|
|
|
|
|
|
|
# file_inherit
|
|
|
|
#/dev/tty[0-9]* rw,
|
|
|
|
|
2020-12-10 22:33:39 +01:00
|
|
|
include if exists <local/sddm-greeter>
|
2020-09-12 17:19:23 +02:00
|
|
|
}
|