38 lines
1.1 KiB
Text
38 lines
1.1 KiB
Text
# apparmor.d - Full set of apparmor profiles
|
|
# Copyright (C) 2021 Mikhail Morfikov
|
|
# Copyright (C) 2023-2024 Alexandre Pujol <alexandre@pujol.io>
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
abi <abi/4.0>,
|
|
|
|
include <tunables/global>
|
|
|
|
@{exec_path} = @{lib}/{,gvfs/}gvfsd-archive
|
|
profile gvfsd-archive @{exec_path} {
|
|
include <abstractions/base>
|
|
include <abstractions/bus-session>
|
|
include <abstractions/bus/session/org.gtk.vfs.Daemon>
|
|
include <abstractions/bus/session/org.gtk.vfs.Mountable>
|
|
include <abstractions/bus/session/org.gtk.vfs.Spawner>
|
|
include <abstractions/freedesktop.org>
|
|
include <abstractions/nameservice-strict>
|
|
|
|
#aa:dbus talk bus=session name=org.gtk.vfs.MountTracker path=/org/gtk/vfs/mounttracker label=gvfsd
|
|
|
|
dbus receive bus=session
|
|
interface=org.freedesktop.DBus.Introspectable
|
|
member=Introspect
|
|
peer=(name=@{busname}, label=gnome-shell),
|
|
|
|
@{exec_path} mr,
|
|
|
|
owner @{HOME}/**.{tar,tar.gz,zip} r,
|
|
owner @{MOUNTS}/**.{TAR,TAR.GZ,ZIP} r,
|
|
owner @{HOME}/**.{tar,tar.gz,zip} r,
|
|
|
|
owner @{user_img_dirs}/{,**} r,
|
|
|
|
include if exists <local/gvfsd-archive>
|
|
}
|
|
|
|
# vim:syntax=apparmor
|