mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-15 16:03:51 +01:00
feat(profile): add initial xfce group.
This commit is contained in:
parent
6810fe679e
commit
c623e6921c
19
apparmor.d/abstractions/xfce
Normal file
19
apparmor.d/abstractions/xfce
Normal 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>
|
21
apparmor.d/groups/xfce/xfce-notifyd
Normal file
21
apparmor.d/groups/xfce/xfce-notifyd
Normal 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>
|
||||
}
|
@ -7,18 +7,17 @@ abi <abi/3.0>,
|
||||
|
||||
include <tunables/global>
|
||||
|
||||
@{exec_path} = @{lib}/xfce[0-9]/xfconf/xfconfd
|
||||
@{exec_path} += @{lib}/@{multiarch}/xfce[0-9]/xfconf/xfconfd
|
||||
@{exec_path} = @{lib}/xfce4/xfconf/xfconfd
|
||||
@{exec_path} += @{lib}/@{multiarch}/xfce4/xfconf/xfconfd
|
||||
profile xfconfd @{exec_path} {
|
||||
include <abstractions/base>
|
||||
include <abstractions/xdg-desktop>
|
||||
include <abstractions/xfce>
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
/etc/xdg/xfce4/xfconf/*/*.xml r,
|
||||
|
||||
owner @{HOME}/ r,
|
||||
owner @{HOME}/.xsession-errors w,
|
||||
|
||||
owner @{user_config_dirs}/xfce4/ r,
|
||||
owner @{user_config_dirs}/xfce4/xfconf/*/*.xml{,.new} rw,
|
@ -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>
|
||||
}
|
Loading…
Reference in New Issue
Block a user