From 74f7e9c2953a56f0d89ee0a0d25f6a022e00972d Mon Sep 17 00:00:00 2001 From: Paulo Flabiano Smorigo Date: Wed, 6 Nov 2024 12:40:07 -0300 Subject: [PATCH] remmina: add dconf abstraction and use {etc_ro} for /etc path Signed-off-by: Paulo Flabiano Smorigo --- profiles/apparmor.d/remmina | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/profiles/apparmor.d/remmina b/profiles/apparmor.d/remmina index 7e37db8ab..943ebc2fa 100644 --- a/profiles/apparmor.d/remmina +++ b/profiles/apparmor.d/remmina @@ -24,6 +24,7 @@ profile remmina /usr/bin/remmina { include include include + include dbus (bind) bus=session name="org.remmina.Remmina", dbus (send) bus=session path="/org/gtk/vfs/mounttracker" interface="org.gtk.vfs.MountTracker" member={ListMountableInfo,LookupMount} peer=(label=unconfined), @@ -32,8 +33,7 @@ profile remmina /usr/bin/remmina { dbus (send) bus=session path="/org/freedesktop/secrets/collection/login" interface="org.freedesktop.DBus.Properties" member=GetAll peer=(label=unconfined), dbus (send) bus=system path="/org/freedesktop/NetworkManager" interface="org.freedesktop.DBus.Properties" member=GetAll peer=(label=unconfined), - /etc/dconf/** r, - /etc/fstab r, + @{etc_ro}/fstab r, /usr/bin/remmina mr, /usr/share/remmina/{,**} r, /var/lib/snapd/desktop/icons/{,**} r, @@ -42,7 +42,6 @@ profile remmina /usr/bin/remmina { owner @{HOME}/.cache/remmina/{,**} rw, owner @{HOME}/.cache/thumbnails/{,**} r, owner @{HOME}/.config/autostart/remmina-applet.desktop r, - owner @{HOME}/.config/dconf/user r, owner @{HOME}/.config/freerdp/known_hosts2 rwk, owner @{HOME}/.config/glib-2.0/settings/keyfile rw, owner @{HOME}/.config/remmina/{,**} rw, @@ -53,10 +52,12 @@ profile remmina /usr/bin/remmina { owner @{HOME}/{,[^.]**} rw, owner @{run}/user/@{uid}/gvfsd/socket-* rw, - owner @{run}/user/@{uid}/dconf/{,user} rw, owner @{PROC}/@{pid}/task/@{tid}/comm rw, owner @{PROC}/@{pid}/mountinfo rw, + ## dconf abstraction is read-only, adding write access + owner @{run}/user/@{uid}/dconf/{,user} rw, + owner @{run}/user/@{uid}/at-spi/ rw, owner @{run}/user/@{uid}/at-spi/bus{,_[0-9]*} rw,