feat(profile): update kde profiles.

This commit is contained in:
Alexandre Pujol 2023-11-26 23:05:01 +00:00
parent 8250e202a0
commit c2bc6f26ae
No known key found for this signature in database
GPG Key ID: C5469996F0DF68EC
4 changed files with 38 additions and 7 deletions

View File

@ -32,6 +32,7 @@ profile kioslave5 @{exec_path} {
signal (receive) set=term peer=dolphin, signal (receive) set=term peer=dolphin,
signal (receive) set=term peer=firefox-kmozillahelper, signal (receive) set=term peer=firefox-kmozillahelper,
signal (receive) set=term peer=plasma-discover,
signal (receive) set=term peer=plasmashell, signal (receive) set=term peer=plasmashell,
@{exec_path} mr, @{exec_path} mr,
@ -46,6 +47,7 @@ profile kioslave5 @{exec_path} {
/usr/share/kservices5/{,**} r, /usr/share/kservices5/{,**} r,
/usr/share/kservicetypes5/*.desktop r, /usr/share/kservicetypes5/*.desktop r,
/usr/share/mime/ r, /usr/share/mime/ r,
/usr/share/remoteview/* r,
/etc/fstab r, /etc/fstab r,
/etc/xdg/kdeglobals r, /etc/xdg/kdeglobals r,

View File

@ -34,15 +34,21 @@ profile plasma-discover @{exec_path} {
@{bin}/{,ba,da}sh rix, @{bin}/{,ba,da}sh rix,
@{bin}/kreadconfig5 rPx, @{bin}/kreadconfig5 rPx,
@{bin}/gpg rCx -> gpg,
@{bin}/gpgconf rCx -> gpg,
@{bin}/gpgsm rCx -> gpg,
@{lib}/kf5/kioslave5 rPx, @{lib}/kf5/kioslave5 rPx,
@{lib}/kf5/kio_http_cache_cleaner rPx, @{lib}/kf5/kio_http_cache_cleaner rPx,
/usr/share/kservices5/{,*} r, /usr/share/knotifications5/plasma_workspace.notifyrc r,
/usr/share/knsrcfiles/{,*} r, /usr/share/knsrcfiles/{,*} r,
/usr/share/kservices5/{,*} r,
/usr/share/libdiscover/** r,
/usr/share/qt/translations/*.qm r, /usr/share/qt/translations/*.qm r,
/etc/appstream.conf r, /etc/appstream.conf r,
/etc/flatpak/remotes.d/{,**} r, /etc/flatpak/remotes.d/{,**} r,
/etc/gnutls/config r,
/etc/machine-id r, /etc/machine-id r,
/etc/xdg/ r, /etc/xdg/ r,
/etc/xdg/accept-languages.codes r, /etc/xdg/accept-languages.codes r,
@ -56,9 +62,10 @@ profile plasma-discover @{exec_path} {
/var/lib/flatpak/repo/{,**} r, /var/lib/flatpak/repo/{,**} r,
/var/lib/flatpak/appstream/{,**} r, /var/lib/flatpak/appstream/{,**} r,
owner @{user_cache_dirs}/discover/{,**} rwl,
owner @{user_cache_dirs}/appstream/*.xb r,
owner @{user_cache_dirs}/appstream/ r, owner @{user_cache_dirs}/appstream/ r,
owner @{user_cache_dirs}/appstream/*.xb rw,
owner @{user_cache_dirs}/discover/{,**} rwl,
owner @{user_cache_dirs}/flatpak/system-cache/{,**} rw,
owner @{user_cache_dirs}/icon-cache.kcache rw, owner @{user_cache_dirs}/icon-cache.kcache rw,
owner @{user_cache_dirs}/kio_http/ w, owner @{user_cache_dirs}/kio_http/ w,
@ -80,6 +87,13 @@ profile plasma-discover @{exec_path} {
owner @{user_share_dirs}/knewstuff3/ r, owner @{user_share_dirs}/knewstuff3/ r,
owner @{user_share_dirs}/knewstuff3/ w, owner @{user_share_dirs}/knewstuff3/ w,
owner /tmp/ostree-gpg-*/ rw,
owner /tmp/ostree-gpg-*/** rwkl -> /tmp/ostree-gpg-*/**,
owner /tmp/#@{int} rw,
owner @{run}/user/@{uid}/.flatpak-cache rw,
owner @{run}/user/@{uid}/.flatpak/{,**} rw,
owner @{run}/user/@{uid}/.flatpak/**/*.ref rwk,
owner @{run}/user/@{uid}/#@{int} rw, owner @{run}/user/@{uid}/#@{int} rw,
owner @{run}/user/@{uid}/discover@{rand6}.* rwl -> @{run}/user/@{uid}/#@{int}, owner @{run}/user/@{uid}/discover@{rand6}.* rwl -> @{run}/user/@{uid}/#@{int},
@ -89,5 +103,20 @@ profile plasma-discover @{exec_path} {
/dev/tty r, /dev/tty r,
profile gpg {
include <abstractions/base>
@{bin}/gpg{,2} mr,
@{bin}/gpgconf mr,
@{bin}/gpgsm mr,
@{HOME}/@{XDG_GPG_DIR}/*.conf r,
owner /tmp/ostree-gpg-*/ r,
owner /tmp/ostree-gpg-*/** rwkl -> /tmp/ostree-gpg-*/**,
include if exists <local/plasma-discover_gpg>
}
include if exists <local/plasma-discover> include if exists <local/plasma-discover>
} }

View File

@ -77,7 +77,7 @@ profile sddm @{exec_path} flags=(attach_disconnected,mediate_deleted) {
@{bin}/dbus-update-activation-environment rCx -> dbus, @{bin}/dbus-update-activation-environment rCx -> dbus,
@{bin}/gnome-keyring-daemon rPx, @{bin}/gnome-keyring-daemon rPx,
@{bin}/kwalletd5 rPx, @{bin}/kwalletd5 rPx,
@{bin}/startplasma-wayland rPUx, @{bin}/startplasma-wayland rPx,
@{bin}/startplasma-x11 rPx, @{bin}/startplasma-x11 rPx,
@{bin}/systemctl rPx -> child-systemctl, @{bin}/systemctl rPx -> child-systemctl,
@{bin}/xrdb rPx, @{bin}/xrdb rPx,

View File

@ -6,7 +6,7 @@ abi <abi/3.0>,
include <tunables/global> include <tunables/global>
@{exec_path} = @{bin}/startplasma-{wayland,x11} @{exec_path} = @{bin}/startplasma-wayland @{bin}/startplasma-x11
profile startplasma @{exec_path} { profile startplasma @{exec_path} {
include <abstractions/base> include <abstractions/base>
include <abstractions/freedesktop.org> include <abstractions/freedesktop.org>