apparmor prevents access to saved Remmina sessions
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apparmor (Ubuntu) |
In Progress
|
Undecided
|
Unassigned | ||
remmina (Ubuntu) |
Triaged
|
Undecided
|
Unassigned |
Bug Description
After upgrading to 25.04 (beta), my saved connections / target computers in Remmina were gone. Where previously I had several saved connection entries, there were none.
I modified /etc/apparmor.
Subsequently running aa-logprof suggested the following additions:
include <abstractions/bash>
include <abstractions/
/etc/debian_version r,
/etc/lsb-release r,
/usr/bin/dash ix,
/usr/bin/
/usr/bin/python3.13 mrix,
@{etc_ro}/fstab r,
owner @{HOME}/.remmina/ r,
owner @{HOME}/.remmina/* r,
(I replaced /home/*/ with ${HOME}.)
It seems likely it's possible to avoid the dbus-session include (I see dbus-session-strict was already present), but there were many manual rules it was requesting without that, and I don't know enough about remmina, apparmor, or dbus to offer useful input there.
It seems quite possible that only the @{HOME}
Please give us some details about the systems you are using:
* Client (OS name and version): Ubuntu 25.04 Plucky Puffin (development branch), amd64
* Remmina version (remmina --version): org.remmina.Remmina - 1.4.39 (git n/a) (dpkg: 1.4.39+dfsg-1)
* Desktop environment (GNOME, Unity, KDE, ..): Gnome
Additionally, this directive breaks use of ssh keys / keyring: private- files-strict>
include <abstractions/
I replaced it with: private- files> user/@{ uid}/keyring/ ssh rw,
include <abstractions/
owner @{run}/
And updated the ${HOME}/.ssh line: /.ssh/{ config, known_hosts, id_*} r,
owner @{HOME}
A full patch is attached that seems to get things working for me. A few apparmor failures remain that I didn't include (and possibly more that would be hit if these were allowed): lsb_release, /usr/bin/ python3. 13, /usr/bin/bash dbus-session> ): /org/gtk/Settings (org.freedeskto p.DBus. Properties) , /StatusNotifier Watcher (org.freedeskto p.DBus. Introspectable) , /org/a11y/bus (org.a11y.Bus)
execute: /usr/bin/
dbus send (all would be covered by include <abstractions/
file: /etc/timezone, /etc/lsb-release, /etc/debian_version