feat: profile update.

This commit is contained in:
Alexandre Pujol 2022-04-17 23:13:53 +01:00
parent 1ad60d3b1c
commit 0a7860694f
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
9 changed files with 40 additions and 24 deletions

View file

@ -1,6 +1,6 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2021 Mikhail Morfikov
# 2021 Alexandre Pujol <alexandre@pujol.io>
# Copyright (C) 2021-2022 Mikhail Morfikov
# Copyright (C) 2021-2022 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
@ -11,6 +11,7 @@ include <tunables/global>
@{exec_path} += @{libexec}/gvfsd-mtp
profile gvfsd-mtp @{exec_path} {
include <abstractions/base>
include <abstractions/dconf>
include <abstractions/devices-usb>
include <abstractions/freedesktop.org>
include <abstractions/private-files-strict>
@ -20,16 +21,14 @@ profile gvfsd-mtp @{exec_path} {
@{exec_path} mr,
/usr/share/glib-2.0/schemas/gschemas.compiled r,
owner @{HOME}/{,**} rw,
owner @{MOUNTS}/*/{,**} rw,
owner @{run}/user/@{uid}/gvfsd/socket-* rw,
include <abstractions/dconf>
owner @{run}/user/@{uid}/dconf/ rw,
owner @{run}/user/@{uid}/dconf/user rw,
/usr/share/glib-2.0/schemas/gschemas.compiled r,
owner @{run}/user/@{uid}/gvfsd/socket-* rw,
include if exists <local/gvfsd-mtp>
}