apparmor.d/apparmor.d/groups/gvfs/gvfsd-recent
2021-06-06 15:02:40 +01:00

39 lines
1 KiB
Text

# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2021 Mikhail Morfikov
# 2021 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = /{usr/,}lib/gvfs/gvfsd-recent
@{exec_path} += @{libexec}/gvfsd-recent
profile gvfsd-recent @{exec_path} {
include <abstractions/base>
include <abstractions/nameservice-strict>
include <abstractions/thumbnails-cache-read>
@{exec_path} mr,
/usr/share/mime/mime.cache r,
# Full access to user's data
owner @{HOME}/{,**} rw,
owner @{MOUNTS}/*/{,**} rw,
owner @{HOME}/.zshenv r,
owner @{user_config_dirs}/user-dirs.dirs r,
owner @{user_share_dirs}/gvfs-metadata/{,*} r,
owner @{user_share_dirs}/recently-used.xbel r,
owner @{run}/user/@{uid}/gvfsd/ rw,
owner @{run}/user/@{uid}/gvfsd/socket-[a-zA-z0-9]* rw,
owner @{PROC}/@{pid}/mountinfo r,
@{PROC}/sys/kernel/random/boot_id r,
@{run}/systemd/userdb/ r,
@{run}/mount/utab r,
include if exists <local/gvfsd-recent>
}