Kwin wayland, kwin wayland wrapper and sddm (#198)

* Update kwin_wayland

Please check the udev rules and change them if needed - I'm not familiar with them.

* Update kwin_wayland_wrapper

* Update sddm

* Update kwin_wayland_wrapper

Reverting change for @{run}/user/@{uid}

* Update kwin_wayland: Correct udev rule

* Update kwin_wayland: adding the wayland abs

* Update sddm: reverting owner /tmo rules

* Update sddm: reverting /usr/share/X11/xkb rule

* Update sddm: adding the mesa abs

* Update kwin_wayland: order udev rules
This commit is contained in:
curiosityseeker 2023-08-27 13:19:13 +02:00 committed by GitHub
parent 393f7001dc
commit 7f4cef2fff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 36 additions and 2 deletions

View File

@ -17,6 +17,7 @@ profile kwin_wayland @{exec_path} flags=(attach_disconnected mediate_deleted) {
include <abstractions/nameservice-strict> include <abstractions/nameservice-strict>
include <abstractions/freedesktop.org> include <abstractions/freedesktop.org>
include <abstractions/vulkan> include <abstractions/vulkan>
include <abstractions/wayland>
capability sys_nice, capability sys_nice,
@ -40,14 +41,30 @@ profile kwin_wayland @{exec_path} flags=(attach_disconnected mediate_deleted) {
/usr/share/kwin/{,**} r, /usr/share/kwin/{,**} r,
/usr/share/libinput/{,**} r, /usr/share/libinput/{,**} r,
/usr/share/mime/ r, /usr/share/mime/ r,
/usr/share/plasma/desktoptheme/default/{metadata.json,plasmarc} r,
/usr/share/qt/translations/*.qm r, /usr/share/qt/translations/*.qm r,
/usr/share/X11/xkb/{,**} r, /usr/share/X11/xkb/{,**} r,
/etc/machine-id r, /etc/machine-id r,
/etc/xdg/menus/ r, /etc/xdg/menus/ r,
/etc/pipewire/client.conf.d/ r,
/usr/share/pipewire/client.conf r,
owner /var/lib/sddm/.cache/mesa_shader_cache/** r,
owner /var/lib/sddm/.cache/mesa_shader_cache/index rw,
owner /var/lib/sddm/.cache/ksycoca5_* r,
owner /var/lib/sddm/.config/kdeglobals r,
owner /var/lib/sddm/.config/kglobalshortcutsrc r,
owner /var/lib/sddm/.config/kglobalshortcutsrc.lock rw,
owner /var/lib/sddm/.config/kwinrc r,
owner /var/lib/sddm/.config/kwinrc.lock rw,
owner /var/lib/sddm/.config/kwinrc.@{rand6} rwl -> /var/lib/sddm/.config/#@{int},
owner @{user_cache_dirs}/icon-cache.kcache rw, owner @{user_cache_dirs}/icon-cache.kcache rw,
owner @{user_share_dirs}/kscreen/* r,
owner @{user_cache_dirs}/ksycoca5_* r, owner @{user_cache_dirs}/ksycoca5_* r,
owner @{user_cache_dirs}/plasma_theme_default_v*.kcache rw,
owner @{user_config_dirs}/#@{int} rwl, owner @{user_config_dirs}/#@{int} rwl,
owner @{user_config_dirs}/kcminputrc r, owner @{user_config_dirs}/kcminputrc r,
@ -61,6 +78,7 @@ profile kwin_wayland @{exec_path} flags=(attach_disconnected mediate_deleted) {
owner @{user_config_dirs}/kwinrc.lock rwk, owner @{user_config_dirs}/kwinrc.lock rwk,
owner @{user_config_dirs}/kwinrulesrc r, owner @{user_config_dirs}/kwinrulesrc r,
owner @{user_config_dirs}/kxkbrc r, owner @{user_config_dirs}/kxkbrc r,
owner @{user_config_dirs}/menus/{,applications-merged/} r,
@{run}/systemd/inhibit/*.ref rw, @{run}/systemd/inhibit/*.ref rw,
@ -78,10 +96,16 @@ profile kwin_wayland @{exec_path} flags=(attach_disconnected mediate_deleted) {
@{run}/udev/data/c13:@{int} r, # for /dev/input/* @{run}/udev/data/c13:@{int} r, # for /dev/input/*
@{run}/udev/data/c226:@{int} r, # for /dev/dri/card* @{run}/udev/data/c226:@{int} r, # for /dev/dri/card*
@{run}/udev/data/+pci:* r,
@{run}/udev/data/+sound:card@{int} r,
@{run}/udev/data/+usb:* r,
@{run}/udev/data/c189:@{int} r, # for /dev/bus/usb/**
@{PROC}/sys/kernel/random/boot_id r, @{PROC}/sys/kernel/random/boot_id r,
/dev/input/event@{int} rw, /dev/input/event@{int} rw,
/dev/tty r, /dev/tty r,
/dev/tty@{int} rw,
include if exists <local/kwin_wayland> include if exists <local/kwin_wayland>
} }

View File

@ -19,6 +19,7 @@ profile kwin_wayland_wrapper @{exec_path} {
@{bin}/kwin_wayland rPx, @{bin}/kwin_wayland rPx,
owner @{run}/user/@{uid}/#@{int} rw, owner @{run}/user/@{uid}/#@{int} rw,
owner @{run}/user/@{uid}/xauth_@{rand6} w,
owner @{run}/user/@{uid}/wayland-*.lock rk, owner @{run}/user/@{uid}/wayland-*.lock rk,
owner /tmp/.X1-lock rw, owner /tmp/.X1-lock rw,

View File

@ -16,6 +16,7 @@ profile sddm @{exec_path} flags=(attach_disconnected,mediate_deleted) {
include <abstractions/fontconfig-cache-read> include <abstractions/fontconfig-cache-read>
include <abstractions/fonts> include <abstractions/fonts>
include <abstractions/freedesktop.org> include <abstractions/freedesktop.org>
include <abstractions/mesa>
include <abstractions/nameservice-strict> include <abstractions/nameservice-strict>
include <abstractions/qt5> include <abstractions/qt5>
include <abstractions/wutmp> include <abstractions/wutmp>
@ -40,6 +41,8 @@ profile sddm @{exec_path} flags=(attach_disconnected,mediate_deleted) {
ptrace (read) peer=kwalletd5, ptrace (read) peer=kwalletd5,
signal (send) set=(kill, term) peer=startplasma, signal (send) set=(kill, term) peer=startplasma,
signal (send) set=term peer=startplasma-wayland,
signal (send) set=term peer=sddm-greeter,
signal (send) set=(kill, term) peer=xorg, signal (send) set=(kill, term) peer=xorg,
@{exec_path} mr, @{exec_path} mr,
@ -48,6 +51,8 @@ profile sddm @{exec_path} flags=(attach_disconnected,mediate_deleted) {
@{lib}/plasma-dbus-run-session-if-needed rix, @{lib}/plasma-dbus-run-session-if-needed rix,
@{lib}/sddm/sddm-helper rix, @{lib}/sddm/sddm-helper rix,
@{lib}/sddm/sddm-helper-start-wayland rix, @{lib}/sddm/sddm-helper-start-wayland rix,
@{lib}/sddm/sddm-helper-start-x11user rix,
@{bin}/{,ba,da}sh rix, @{bin}/{,ba,da}sh rix,
@{bin}/cat rix, @{bin}/cat rix,
@ -121,6 +126,10 @@ profile sddm @{exec_path} flags=(attach_disconnected,mediate_deleted) {
owner @{HOME}/.local/ w, owner @{HOME}/.local/ w,
owner @{HOME}/.Xauthority rw, owner @{HOME}/.Xauthority rw,
owner @{user_config_dirs}/kdeglobals r,
owner @{user_config_dirs}/kdedefaults/kdeglobals r,
owner @{user_config_dirs}/startkderc r,
owner @{user_share_dirs}/ w, owner @{user_share_dirs}/ w,
owner @{user_share_dirs}/kwalletd/ rw, owner @{user_share_dirs}/kwalletd/ rw,
owner @{user_share_dirs}/kwalletd/kdewallet.salt rw, owner @{user_share_dirs}/kwalletd/kdewallet.salt rw,