Complete gvfsd-dav & gvfsd-recent.

This commit is contained in:
Alexandre Pujol 2021-04-02 10:29:12 +01:00
parent 4dc8d53c0e
commit 0682ff0789
No known key found for this signature in database
GPG Key ID: C5469996F0DF68EC
2 changed files with 37 additions and 1 deletions

View File

@ -1,5 +1,6 @@
# 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>,
@ -10,8 +11,28 @@ include <tunables/global>
@{exec_path} += /usr/{lib,libexec}/gvfsd-dav
profile gvfsd-dav @{exec_path} {
include <abstractions/base>
include <abstractions/nameservice-strict>
include <abstractions/ssl_certs>
include <abstractions/p11-kit>
include <abstractions/user-read>
include <abstractions/user-download-strict>
network inet stream,
network inet6 stream,
network inet dgram,
network inet6 dgram,
network netlink raw,
@{exec_path} mr,
/usr/share/glib-2.0/schemas/gschemas.compiled r,
/usr/share/mime/mime.cache r,
include <abstractions/dconf>
owner @{run}/user/[0-9]*/dconf/ rw,
owner @{run}/user/[0-9]*/dconf/user rw,
owner @{run}/user/[0-9]*/gvfsd/ rw,
owner @{run}/user/[0-9]*/gvfsd/socket-[a-zA-z0-9]* rw,
include if exists <local/gvfsd-dav>
}

View File

@ -1,5 +1,6 @@
# 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>,
@ -10,10 +11,24 @@ include <tunables/global>
@{exec_path} += /usr/{lib,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,
owner @{user_share_dirs}/recently-used.xbel r,
owner @{HOME}/.zshenv r,
owner @{user_config_dirs}/user-dirs.dirs r,
owner @{HOME}/.local/share/recently-used.xbel r,
owner @{run}/user/[0-9]*/gvfsd/ rw,
owner @{run}/user/[0-9]*/gvfsd/socket-[a-zA-z0-9]* rw,
owner @{PROC}/81380/mountinfo r,
@{PROC}/sys/kernel/random/boot_id r,
@{run}/systemd/userdb/ r,
@{run}/mount/utab r,
include if exists <local/gvfsd-recent>
}