Package: apparmor
Followup-For: Bug #1154683
X-Debbugs-Cc: [email protected]
Dear Maintainer,
I can confirm that this issue is still present with AppArmor 5.0.2-6 on Debian
Testing
When launching transmission-gtk, the application fails to start with the
following errors:
MESA-EGL: warning: DRI3 error: Could not get DRI3 device
MESA-EGL: warning: Ensure your X server supports DRI3 to get accelerated
rendering
MESA-EGL: warning: DRI3: Failed to initialize
The profile includes the following abstraction:
include <abstractions/transmission-common>
The following rule in /etc/apparmor.d/abstractions/transmission-common appears
to cause this denial:
deny /dev/dri/{,**} r,
Using strace, I identified the following permission error:
openat(AT_FDCWD, "/dev/dri",
O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY)
= -1 EACCES (Permission denied)
Confirmed workaround :
Commenting out the deny rule :
# deny /dev/dri/{,**} r,
and reloading the AppArmor profile :
sudo apparmor_parser -r /etc/apparmor.d/transmission
After this modification, Transmission GTK starts normally and is able to
download torrents.
Restoring the deny rule reproduces the problem.
The same issue has already been reported upstream in AppArmor:
https://gitlab.com/apparmor/apparmor/-/work_items/666
Could you please review this rule and suggest a solution for transmission-gtk?
System Configuration :
Debian Testing, AppArmor 5.0.2-6, Transmission GTK 4.1.4+dfsg-1, Mesa 26.2.7-1,
XFCE / X11 / LightDM, AMD Radeon RX 5700 XT (amdgpu)
Best regards
-- System Information:
Debian Release: forky/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 7.3.6+deb14-amd64 (SMP w/12 CPU threads; PREEMPT)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages apparmor depends on:
ii debconf [debconf-2.0] 1.5.92
ii libapparmor1 5.0.2-6
ii libc6 2.43-7
ii libgcc-s1 16.2.0-5
ii libstdc++6 16.2.0-5
ii libzstd1 1.5.7+dfsg-4
apparmor recommends no packages.
Versions of packages apparmor suggests:
pn apparmor-utils <none>
-- debconf information excluded