apparmor.d/apparmor.d/profiles-a-f/file-roller
2025-06-01 16:02:20 +02:00

43 lines
1 KiB
Text

# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2022-2024 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/4.0>,
include <tunables/global>
@{exec_path} = @{bin}/file-roller
profile file-roller @{exec_path} {
include <abstractions/base>
include <abstractions/bus/org.freedesktop.portal.Desktop>
include <abstractions/bus/org.gtk.vfs.MountTracker>
include <abstractions/common/gnome>
include <abstractions/deny-sensitive-home>
include <abstractions/nameservice-strict>
#aa:dbus own bus=session name=org.gnome.ArchiveManager1
#aa:dbus own bus=session name=org.gnome.FileRoller
@{exec_path} mr,
@{open_path} rPx -> child-open-help,
@{bin}/mv rix,
@{bin}/rm rix,
# Archivers
@{archive_path} rix,
# Full access to user's data
@{MOUNTS}/** rw,
owner @{HOME}/** rw,
owner @{tmp}/** rw,
@{run}/mount/utab r,
owner @{PROC}/@{pid}/mountinfo r,
include if exists <local/file-roller>
}
# vim:syntax=apparmor