update apparmor profiles

This commit is contained in:
Mikhail Morfikov 2021-03-13 09:47:36 +01:00
parent 0f64093e46
commit 5b12c89dba
No known key found for this signature in database
GPG key ID: 32D9CB634796CCA1
48 changed files with 755 additions and 67 deletions

30
apparmor.d/gvfsd-metadata Normal file
View file

@ -0,0 +1,30 @@
# vim:syntax=apparmor
# ------------------------------------------------------------------
#
# Copyright (C) 2021 Mikhail Morfikov
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of version 2 of the GNU General Public
# License published by the Free Software Foundation.
#
# ------------------------------------------------------------------
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = /{usr/,}lib/gvfs/gvfsd-metadata
@{exec_path} += /usr/libexec/gvfsd-metadata
profile gvfsd-metadata @{exec_path} {
include <abstractions/base>
include <abstractions/disks-read>
network netlink raw,
@{exec_path} mr,
owner @{HOME}/.local/share/gvfs-metadata/ rw,
owner @{HOME}/.local/share/gvfs-metadata/** rw,
include if exists <local/gvfsd-metadata>
}