2021-04-01 17:17:47 +02:00
|
|
|
# apparmor.d - Full set of apparmor profiles
|
|
|
|
# Copyright (C) 2018-2021 Mikhail Morfikov
|
|
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
2020-09-12 17:19:23 +02:00
|
|
|
|
2020-12-10 22:33:39 +01:00
|
|
|
abi <abi/3.0>,
|
2020-09-12 17:19:23 +02:00
|
|
|
|
2020-12-10 22:33:39 +01:00
|
|
|
include <tunables/global>
|
2020-09-12 17:19:23 +02:00
|
|
|
|
|
|
|
@{exec_path} = /{usr/,}lib/@{multiarch}/xfce[0-9]/exo-[0-9]/exo-helper-[0-9]
|
|
|
|
profile exo-helper @{exec_path} {
|
2020-12-10 22:33:39 +01:00
|
|
|
include <abstractions/base>
|
|
|
|
include <abstractions/consoles>
|
|
|
|
include <abstractions/app-launcher-user>
|
2020-09-12 17:19:23 +02:00
|
|
|
|
|
|
|
# These are needed when there's no default application set in the ~/.config/xfce4/helpers.rc
|
2020-12-10 22:33:39 +01:00
|
|
|
include <abstractions/gtk>
|
|
|
|
include <abstractions/fonts>
|
|
|
|
include <abstractions/fontconfig-cache-read>
|
|
|
|
include <abstractions/freedesktop.org>
|
2020-09-12 17:19:23 +02:00
|
|
|
|
|
|
|
@{exec_path} mr,
|
|
|
|
|
|
|
|
/usr/share/ r,
|
|
|
|
/usr/share/xfce4/ r,
|
|
|
|
/usr/share/xfce4/helpers/ r,
|
|
|
|
/usr/share/xfce4/helpers/*.desktop r,
|
|
|
|
/usr/local/share/ r,
|
2021-04-01 18:23:34 +02:00
|
|
|
owner @{user_share_dirs}/ r,
|
|
|
|
owner @{user_share_dirs}/xfce4/ r,
|
|
|
|
owner @{user_share_dirs}/xfce4/helpers/ r,
|
2020-09-12 17:19:23 +02:00
|
|
|
|
|
|
|
/etc/xdg/{,xdg-*/}xfce4/helpers.rc r,
|
|
|
|
|
2021-04-01 18:21:33 +02:00
|
|
|
owner @{user_config_dirs}/xfce4/helpers.rc rw,
|
|
|
|
owner @{user_config_dirs}/xfce4/helpers.rc.@{pid}.tmp rw,
|
2021-04-01 18:23:34 +02:00
|
|
|
owner @{user_share_dirs}/xfce4/helpers/*.desktop rw,
|
|
|
|
owner @{user_share_dirs}/xfce4/helpers/*.desktop.@{pid}.tmp rw,
|
2020-09-12 17:19:23 +02:00
|
|
|
|
2021-04-01 18:21:33 +02:00
|
|
|
owner @{user_config_dirs}/mimeapps.list{,.*} rw,
|
2020-09-12 17:19:23 +02:00
|
|
|
|
|
|
|
# Some missing icons
|
|
|
|
/usr/share/**.png r,
|
|
|
|
|
|
|
|
owner @{PROC}/@{pid}/fd/ r,
|
|
|
|
owner @{PROC}/@{pid}/mountinfo r,
|
|
|
|
owner @{PROC}/@{pid}/mounts r,
|
|
|
|
|
|
|
|
/etc/fstab r,
|
|
|
|
|
|
|
|
# file_inherit
|
|
|
|
owner /dev/tty[0-9]* rw,
|
|
|
|
|
2020-12-10 22:33:39 +01:00
|
|
|
include if exists <local/exo-helper>
|
2020-09-12 17:19:23 +02:00
|
|
|
}
|