apparmor.d/apparmor.d/groups/gvfs/gvfsd-mtp
2024-08-20 20:56:58 +01:00

32 lines
818 B
Text

# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2021-2022 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}/{,gvfs/}gvfsd-mtp
profile gvfsd-mtp @{exec_path} {
include <abstractions/base>
include <abstractions/dconf-write>
include <abstractions/deny-sensitive-home>
include <abstractions/devices-usb>
include <abstractions/freedesktop.org>
include <abstractions/private-files-strict>
include <abstractions/user-download-strict>
network netlink raw,
@{exec_path} mr,
owner @{HOME}/{,**} rw, # FIXME: ?
owner @{MOUNTS}/{,**} rw,
owner @{run}/user/@{uid}/gvfsd/socket-@{rand8} rw,
include if exists <local/gvfsd-mtp>
}
# vim:syntax=apparmor