update apparmor profiles
This commit is contained in:
parent
0f64093e46
commit
5b12c89dba
48 changed files with 755 additions and 67 deletions
72
apparmor.d/gvfsd
Normal file
72
apparmor.d/gvfsd
Normal file
|
|
@ -0,0 +1,72 @@
|
|||
# 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
|
||||
@{exec_path} += /usr/libexec/gvfsd
|
||||
profile gvfsd @{exec_path} {
|
||||
include <abstractions/base>
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
/{usr/,}bin/{,ba,da}sh rix,
|
||||
|
||||
# Don't strip env here.
|
||||
/{usr/,}lib/gvfs/gvfsd-* rcx -> backends,
|
||||
/usr/libexec/gvfsd-* rcx -> backends,
|
||||
|
||||
/usr/share/gvfs/{,**} r,
|
||||
|
||||
owner @{run}/user/[0-9]*/gvfs/ rw,
|
||||
|
||||
owner @{PROC}/@{pid}/fd/ r,
|
||||
|
||||
|
||||
profile backends {
|
||||
include <abstractions/base>
|
||||
include <abstractions/consoles>
|
||||
include <abstractions/nameservice>
|
||||
include <abstractions/freedesktop.org>
|
||||
include <abstractions/trash>
|
||||
include <abstractions/disks-read>
|
||||
include <abstractions/user-download-strict>
|
||||
|
||||
mount fstype={fuse,fuse.*} -> @{run}/user/[0-9]*/gvfs/,
|
||||
|
||||
/{usr/,}lib/gvfs/gvfsd-* mr,
|
||||
/usr/libexec/gvfsd-* mr,
|
||||
|
||||
/{usr/,}bin/ssh rPx,
|
||||
/usr/bin/fusermount{,3} rPx,
|
||||
|
||||
/dev/ptmx rw,
|
||||
/dev/fuse rw,
|
||||
|
||||
owner @{PROC}/@{pid}/fd/ r,
|
||||
owner @{PROC}/@{pid}/mountinfo r,
|
||||
owner @{PROC}/@{pid}/mounts r,
|
||||
|
||||
owner @{run}/samba/ rw,
|
||||
@{run}/mount/utab r,
|
||||
|
||||
/usr/share/glib-2.0/schemas/gschemas.compiled r,
|
||||
|
||||
include <abstractions/dconf>
|
||||
owner @{run}/user/[0-9]*/dconf/ rw,
|
||||
owner @{run}/user/[0-9]*/dconf/user rw,
|
||||
|
||||
}
|
||||
|
||||
include if exists <local/gvfsd>
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue