feat(profiles): improve some profiles related to kde (with xorg).

This commit is contained in:
Alexandre Pujol 2023-04-30 21:41:23 +01:00
parent c9ef8f55c4
commit b45987ee8c
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
12 changed files with 24 additions and 9 deletions

View file

@ -32,6 +32,7 @@ profile polkit-kde-authentication-agent @{exec_path} {
/{usr/,}lib/polkit-[0-9]/polkit-agent-helper-[0-9] rPx,
/usr/share/hwdata/pnp.ids r,
/usr/share/icu/[0-9]*.[0-9]*/*.dat r,
/usr/share/qt5ct/** r,
/etc/machine-id r,

View file

@ -166,6 +166,7 @@ profile xdg-desktop-portal-gtk @{exec_path} {
owner /tmp/runtime-*/xauth_?????? r,
@{run}/mount/utab r,
@{run}/user/@{uid}/xauth_* rl,
owner @{run}/user/@{uid}/.mutter-Xwaylandauth.[0-9A-Z]* rw,
owner @{run}/user/@{uid}/gdm/Xauthority r,
owner @{run}/user/@{uid}/wayland-[0-9]* rw,

View file

@ -10,17 +10,25 @@ include <tunables/global>
profile xdg-desktop-portal-kde @{exec_path} {
include <abstractions/base>
include <abstractions/dri-common>
include <abstractions/dri-enumerate>
include <abstractions/freedesktop.org>
include <abstractions/mesa>
include <abstractions/nameservice-strict>
include <abstractions/qt5>
include <abstractions/vulkan>
network inet dgram,
network inet6 dgram,
network inet stream,
network inet6 stream,
network netlink raw,
@{exec_path} mr,
/usr/share/hwdata/pnp.ids r,
/usr/share/icu/[0-9]*.[0-9]*/*.dat r,
/usr/share/mime/{,**} r,
/usr/share/qt5/qtlogging.ini r,
/etc/xdg/kdeglobals r,
/etc/xdg/kwinrc r,
@ -30,13 +38,14 @@ profile xdg-desktop-portal-kde @{exec_path} {
owner @{user_cache_dirs}/icon-cache.kcache rw,
owner @{user_config_dirs}/autostart/org.kde.*.desktop r,
owner @{user_config_dirs}/kdedefaults/kdeglobals r,
owner @{user_config_dirs}/kdedefaults/kwinrc r,
owner @{user_config_dirs}/kdeglobals r,
owner @{user_config_dirs}/kwinrc r,
owner @{user_config_dirs}/xdg-desktop-portal-kderc r,
@{sys}/devices/pci[0-9]*/**/{device,subsystem_device,subsystem_vendor,uevent,vendor} r,
@{run}/user/@{uid}/xauth_* rl,
@{PROC}/sys/kernel/core_pattern r,

View file

@ -21,6 +21,7 @@ profile xkbcomp @{exec_path} flags=(attach_disconnected) {
/usr/share/X11/xkb/** r,
/var/lib/xkb/server-[0-9]*.xkm w,
/var/lib/xkb/compiled/server-[0-9]*.xkm rw,
owner @{HOME}/.Xauthority r,
owner @{HOME}/*.{xkb,xkm} rw,

View file

@ -21,6 +21,7 @@ profile xrdb @{exec_path} {
/{usr/,}lib/llvm-[0-9]*/bin/clang rix,
/usr/include/stdc-predef.h r,
/usr/etc/X11/xdm/Xresources r,
@{etc_ro}/Xresources/x11-common r,
@{etc_ro}/X11/Xresources r,

View file

@ -24,6 +24,7 @@ profile xsetroot @{exec_path} {
owner @{user_share_dirs}/sddm/xorg-session.log w,
@{run}/sddm/\{@{uuid}\} r,
@{run}/user/@{uid}/xauth_* rl,
include if exists <local/xsetroot>
}