apparmor.d/apparmor.d/groups/kde/ksplashqml
2024-02-07 00:16:21 +01:00

35 lines
1.1 KiB
Text

# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2023-2024 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = @{bin}/ksplashqml
profile ksplashqml @{exec_path} {
include <abstractions/base>
include <abstractions/graphics>
include <abstractions/kde-strict>
include <abstractions/nameservice-strict>
include <abstractions/qt5-shader-cache>
@{exec_path} mr,
/usr/share/plasma/** r,
/usr/share/qt/translations/*.qm r,
owner @{user_cache_dirs}/icon-cache.kcache rw,
owner @{user_cache_dirs}/ksplash/ rw,
owner @{user_cache_dirs}/ksplash/qmlcache/ rw,
owner @{user_cache_dirs}/ksplash/qmlcache/*.qmlc rwl -> @{user_cache_dirs}/ksplash/qmlcache/#@{int},
owner @{user_cache_dirs}/ksplash/qmlcache/*.qmlc.@{rand6} rwl -> @{user_cache_dirs}/ksplash/qmlcache/#@{int},
owner @{user_cache_dirs}/ksplash/qmlcache/#@{int} rw,
owner @{user_config_dirs}/kdedefaults/ksplashrc r,
owner @{user_config_dirs}/kdedefaults/plasmarc r,
@{PROC}/sys/kernel/core_pattern r,
include if exists <local/ksplashqml>
}