feat(profiles): improve integration with xfce and small fixes.

See: #137
This commit is contained in:
Alexandre Pujol 2023-04-24 15:15:40 +01:00
parent 7a70252e26
commit 538d708ec0
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
4 changed files with 17 additions and 7 deletions

View file

@ -1,12 +1,14 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2018-2021 Mikhail Morfikov
# 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/,}lib/@{multiarch}/xfce[0-9]/xfconf/xfconfd
@{exec_path} = @{libexec}/xfce[0-9]/xfconf/xfconfd
@{exec_path} += /{usr/,}lib/@{multiarch}/xfce[0-9]/xfconf/xfconfd
profile xfconfd @{exec_path} {
include <abstractions/base>
@ -14,7 +16,13 @@ profile xfconfd @{exec_path} {
/etc/xdg/xfce4/xfconf/*/*.xml r,
owner @{HOME}/.config/xfce4/xfconf/*/*.xml{,.new} rw,
owner @{HOME}/ r,
owner @{user_cache_dirs}/ r,
owner @{user_config_dirs}/ r,
owner @{user_config_dirs}/xfce4/ r,
owner @{user_config_dirs}/xfce4/xfconf/*/*.xml{,.new} rw,
owner @{user_share_dirs}/ r,
# file_inherit
owner /dev/tty[0-9]* rw,