I spent a while testing transmission-gtk and was able to resolve most of
the AppArmor denials with some additional rules:
/usr/lib/@{multiarch}/gstreamer1.0/gstreamer-1.0/gst-plugin-scanner mrix,
owner @{HOME}/.cache/gstreamer-1.0/{,*} rw,
# gst-plugin-scanner tries to probe various things including display devices
# etc so allow those that are harmless but deny the rest
file /dev/{,urandom,null} r,
file /sys/ r,
file /sys/{bus,class}/ r,
file /sys/class/drm/ r,
deny file /dev/dri/{,**} r,
# dbus access
# register on DBus
dbus (send)
bus=session
path=/org/freedesktop/DBus
interface=org.freedesktop.DBus
member="ListActivatableNames"
peer=(name=org.freedesktop.DBus, label=unconfined),
# claim the com.transmissionbt.transmission name
dbus bus=session
name="com.transmissionbt.transmission",
# Allow access to Desktop portal
dbus (send)
bus=session
path=/org/freedesktop/portal/desktop
interface=org.freedesktop.DBus.Properties
member=Get
peer=(name=org.freedesktop.portal.Desktop),
dbus (send)
bus=session
interface=org.freedesktop.portal.Settings
member=ReadAll,
dbus (send)
bus=session
interface=org.freedesktop.portal.Inhibit
member=CreateMonitor,
dbus (send)
bus=session
interface=org.a11y.Bus
member=GetAddress
peer=(name=org.a11y.Bus),
You can add these yourself by creating a file named
/etc/apparmor.d/local/transmission with this contents and then reloading
the transmission profile
sudo apparmor_parser -r /etc/apparmor.d/transmission
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2137395
Title:
Transmission-gtk refuses to open Due to AppArmor policy
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apparmor/+bug/2137395/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs