apparmor.d/profiles/qt5ct
2021-04-01 16:17:47 +01:00

55 lines
1.4 KiB
Plaintext

# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2019-2021 Mikhail Morfikov
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = /{usr/,}bin/qt5ct
profile qt5ct @{exec_path} {
include <abstractions/base>
include <abstractions/base>
include <abstractions/gtk>
include <abstractions/fonts>
include <abstractions/fontconfig-cache-read>
include <abstractions/freedesktop.org>
include <abstractions/dri-common>
include <abstractions/dri-enumerate>
include <abstractions/mesa>
include <abstractions/qt5-compose-cache-write>
include <abstractions/nameservice-strict>
@{exec_path} mr,
owner @{HOME}/.config/qt5ct/ rw,
owner @{HOME}/.config/qt5ct/** rwkl -> @{HOME}/.config/qt5ct/#[0-9]*[0-9],
owner @{HOME}/.config/fontconfig/ rw,
owner @{HOME}/.config/fontconfig/** rw,
owner @{HOME}/.config/fontconfig/fonts.conf.back rwl -> @{HOME}/.config/fontconfig/#[0-9]*[0-9],
owner @{HOME}/.config/kdeglobals r,
owner @{HOME}/.cache/ rw,
owner @{HOME}/.cache/icon-cache.kcache rw,
/usr/share/qt5ct/** r,
/usr/share/xsessions/{,*.desktop} r,
owner @{PROC}/@{pid}/cmdline r,
@{PROC}//sys/kernel/random/boot_id r,
/etc/X11/cursors/*.theme r,
/etc/machine-id r,
/var/lib/dbus/machine-id r,
/usr/share/hwdata/pnp.ids r,
/dev/shm/#[0-9]*[0-9] rw,
include if exists <local/qt5ct>
}