feat(kde): add new kde profiles.

This commit is contained in:
Alexandre Pujol 2023-03-31 17:02:49 +01:00
parent 5cc4279e36
commit 19d1a59bd3
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
6 changed files with 265 additions and 0 deletions

View file

@ -0,0 +1,52 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2023 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = /{usr/,}bin/ksmserver
profile ksmserver @{exec_path} flags=(attach_disconnected) {
include <abstractions/base>
include <abstractions/dri-common>
include <abstractions/nameservice-strict>
include <abstractions/mesa>
@{exec_path} mr,
/{usr/,}bin/rm rix,
/{usr/,}lib/kscreenlocker_greet rPx,
/usr/share/color-schemes/{,**} r,
/usr/share/hwdata/pnp.ids r,
/usr/share/icons/{,**} r,
/usr/share/mime/{,**} r,
/usr/share/qt/translations/*.qm r,
/usr/share/knotifications5/*.notifyrc r,
owner @{HOME}/?????? rw,
owner @{HOME}/.Xauthority rw,
owner @{user_cache_dirs}/icon-cache.kcache rw,
owner @{user_config_dirs}/kdedefaults/* r,
owner @{user_config_dirs}/kdeglobals r,
owner @{user_config_dirs}/kscreenlockerrc r,
owner @{user_config_dirs}/ksmserverrc r,
owner @{user_config_dirs}/kwinrc r,
owner @{user_config_dirs}/session/*_[0-9]*_[0-9]*_[0-9]* rw,
owner /tmp/?????? rw,
owner /tmp/.ICE-unix/* rw,
@{run}/systemd/inhibit/[0-9]*.ref rw,
owner @{run}/user/@{uid}/KSMserver__[0-9] rw,
@{PROC}/sys/kernel/core_pattern r,
/dev/tty r,
include if exists <local/ksmserver>
}