feat(profile): update kde integration.

See #310
This commit is contained in:
Alexandre Pujol 2024-04-08 19:17:01 +01:00
parent edf32f923c
commit f96e5a9713
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
28 changed files with 114 additions and 41 deletions

View file

@ -18,7 +18,11 @@ profile plymouth-set-default-theme @{exec_path} flags=(attach_disconnected) {
@{bin}/grep rix,
@{bin}/plymouth rPx,
/usr/share/plymouth/{,**} r,
/etc/plymouth/{,*} r,
/dev/tty rw,
include if exists <local/plymouth-set-default-theme>
}

View file

@ -35,6 +35,7 @@ profile polkit-kde-authentication-agent @{exec_path} flags=(attach_disconnected)
/etc/machine-id r,
/var/lib/dbus/machine-id r,
owner @{user_config_dirs}/breezerc r,
owner @{user_config_dirs}/qt5ct/{,**} r,
owner @{user_cache_dirs}/icon-cache.kcache rw,

View file

@ -10,8 +10,8 @@ include <tunables/global>
@{exec_path} += @{lib}/@{multiarch}/{,libexec/}xdg-desktop-portal-kde
profile xdg-desktop-portal-kde @{exec_path} {
include <abstractions/base>
include <abstractions/kde-strict>
include <abstractions/graphics>
include <abstractions/kde-strict>
include <abstractions/nameservice-strict>
network inet dgram,
@ -22,12 +22,21 @@ profile xdg-desktop-portal-kde @{exec_path} {
@{exec_path} mr,
#aa:exec kioworker
owner @{desktop_config_dirs}/user-dirs.dirs r,
owner @{user_cache_dirs}/*.kcache r,
owner @{user_cache_dirs}/icon-cache.kcache rw,
owner @{user_config_dirs}/#@{int} rw,
owner @{user_config_dirs}/autostart/org.kde.*.desktop r,
owner @{user_config_dirs}/xdg-desktop-portal-kderc r,
owner @{user_config_dirs}/breezerc r,
owner @{user_config_dirs}/kdeglobals{,.*} rwlk,
owner @{user_config_dirs}/xdg-desktop-portal-kderc{,.*} rwlk,
owner @{run}/user/@{uid}/xdg-desktop-portal-kde@{rand6}.*.socket rw,
@{PROC}/sys/kernel/core_pattern r,

View file

@ -11,6 +11,7 @@ profile xdg-document-portal @{exec_path} flags=(attach_disconnected) {
include <abstractions/base>
include <abstractions/bus-session>
include <abstractions/bus/org.freedesktop.impl.portal.PermissionStore>
include <abstractions/deny-sensitive-home>
capability sys_admin,
capability sys_nice,
@ -40,6 +41,8 @@ profile xdg-document-portal @{exec_path} flags=(attach_disconnected) {
/ r,
owner /.flatpak-info r,
owner @{HOME}/*/{,**} r,
owner @{user_share_dirs}/flatpak/db/documents r,
owner @{user_share_dirs}/Trash/files/** r,

View file

@ -38,6 +38,7 @@ profile xrdb @{exec_path} {
owner @{user_share_dirs}/sddm/wayland-session.log w,
owner /tmp/kcminit.* r,
owner /tmp/kded{5,6}.@{rand6} r,
owner /tmp/plasma-apply-lookandfeel.* r,
owner /tmp/runtime-*/xauth_@{rand6} r,
owner /tmp/startplasma-x11.@{rand6} r,