feat(profile): update gvfs profiles.

This commit is contained in:
Alexandre Pujol 2025-08-04 23:33:47 +02:00
parent d57b867696
commit a2f735ebb5
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
3 changed files with 32 additions and 0 deletions

View file

@ -37,6 +37,7 @@ profile gvfsd @{exec_path} {
@{sh_path} rix, @{sh_path} rix,
@{lib}/{,gvfs/}gvfsd-* rpx, @{lib}/{,gvfs/}gvfsd-* rpx,
@{bin}/pkexec rCx -> pkexec,
/usr/share/gvfs/{,**} r, /usr/share/gvfs/{,**} r,
@ -45,6 +46,17 @@ profile gvfsd @{exec_path} {
owner @{PROC}/@{pid}/fd/ r, owner @{PROC}/@{pid}/fd/ r,
profile pkexec {
include <abstractions/base>
include <abstractions/app/pkexec>
ptrace read peer=gvfsd,
@{lib}/{,gvfs/}gvfsd-admin rPx,
include if exists <local/gvfsd_pkexec>
}
include if exists <local/gvfsd> include if exists <local/gvfsd>
} }

View file

@ -10,9 +10,27 @@ include <tunables/global>
@{exec_path} = @{lib}/{,gvfs/}gvfsd-admin @{exec_path} = @{lib}/{,gvfs/}gvfsd-admin
profile gvfsd-admin @{exec_path} { profile gvfsd-admin @{exec_path} {
include <abstractions/base> include <abstractions/base>
include <abstractions/nameservice-strict>
capability chown,
capability dac_override,
capability dac_read_search,
capability fowner,
capability setuid,
@{exec_path} mr, @{exec_path} mr,
/usr/share/mime/mime.cache r,
@{MOUNTS}/{,**} rw,
@{run}/mount/utab r,
@{run}/user/@{uid}/gvfsd/socket-@{rand8} rw,
@{PROC}/@{pid}/fdinfo/@{int} r,
@{PROC}/@{pid}/mountinfo r,
@{PROC}/@{pid}/stat r,
include if exists <local/gvfsd-admin> include if exists <local/gvfsd-admin>
} }

View file

@ -23,6 +23,8 @@ profile gvfsd-http @{exec_path} {
network inet6 dgram, network inet6 dgram,
network netlink raw, network netlink raw,
unix type=stream peer=(label=gnome-shell),
#aa:dbus own bus=session name=org.gtk.vfs.mountpoint_http #aa:dbus own bus=session name=org.gtk.vfs.mountpoint_http
dbus receive bus=session dbus receive bus=session
interface=org.freedesktop.DBus.Introspectable interface=org.freedesktop.DBus.Introspectable