feat(profile): add initial xfce group.

This commit is contained in:
Alexandre Pujol 2024-04-03 21:18:08 +01:00
parent 6810fe679e
commit c623e6921c
No known key found for this signature in database
GPG Key ID: C5469996F0DF68EC
4 changed files with 43 additions and 39 deletions

View File

@ -0,0 +1,19 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2023-2024 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
include <abstractions/fonts>
include <abstractions/freedesktop.org>
include <abstractions/gtk>
include <abstractions/wayland>
include <abstractions/X-strict>
owner @{user_config_dirs}/xfce4/help.rc rw,
owner @{user_config_dirs}/xfce4/help.rc.@{int}.tmp rw,
owner @{HOME}/.local/ rw,
owner @{user_cache_dirs}/ rw,
owner @{user_config_dirs}/ rw,
owner @{user_share_dirs}/ rw,
include if exists <abstractions/xfce.d>

View File

@ -0,0 +1,21 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2018-2021 Mikhail Morfikov
# Copyright (C) 2021-2024 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = @{lib}/@{multiarch}/xfce4/notifyd/xfce4-notifyd
profile xfce-notifyd @{exec_path} {
include <abstractions/base>
include <abstractions/fontconfig-cache-read>
include <abstractions/graphics>
include <abstractions/nameservice-strict>
include <abstractions/xfce>
@{exec_path} mr,
include if exists <local/xfce-notifyd>
}

View File

@ -7,18 +7,17 @@ abi <abi/3.0>,
include <tunables/global> include <tunables/global>
@{exec_path} = @{lib}/xfce[0-9]/xfconf/xfconfd @{exec_path} = @{lib}/xfce4/xfconf/xfconfd
@{exec_path} += @{lib}/@{multiarch}/xfce[0-9]/xfconf/xfconfd @{exec_path} += @{lib}/@{multiarch}/xfce4/xfconf/xfconfd
profile xfconfd @{exec_path} { profile xfconfd @{exec_path} {
include <abstractions/base> include <abstractions/base>
include <abstractions/xdg-desktop> include <abstractions/xfce>
@{exec_path} mr, @{exec_path} mr,
/etc/xdg/xfce4/xfconf/*/*.xml r, /etc/xdg/xfce4/xfconf/*/*.xml r,
owner @{HOME}/ r, owner @{HOME}/ r,
owner @{HOME}/.xsession-errors w,
owner @{user_config_dirs}/xfce4/ r, owner @{user_config_dirs}/xfce4/ r,
owner @{user_config_dirs}/xfce4/xfconf/*/*.xml{,.new} rw, owner @{user_config_dirs}/xfce4/xfconf/*/*.xml{,.new} rw,

View File

@ -1,35 +0,0 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2018-2021 Mikhail Morfikov
# Copyright (C) 2021-2024 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = @{lib}/@{multiarch}/xfce4/notifyd/xfce4-notifyd
profile xfce4-notifyd @{exec_path} {
include <abstractions/base>
include <abstractions/X>
include <abstractions/fonts>
include <abstractions/fontconfig-cache-read>
include <abstractions/freedesktop.org>
include <abstractions/gtk>
include <abstractions/mesa>
include <abstractions/dri-enumerate>
include <abstractions/nameservice-strict>
@{exec_path} mr,
/usr/share/**.png r,
owner /tmp/.org.chromium.Chromium.* rw,
# For calibre notifications
owner @{user_config_dirs}/calibre/resources/images/*.png r,
# file_inherit
owner /dev/tty@{int} rw,
include if exists <local/xfce4-notifyd>
}