🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #7380

Bug#1154683: transmission in x11 session fails to start with DRI error

#7380
From: valentin
Date: Thu, 03 Dec 2026 21:20
72 lines
4096 bytes
Package: apparmor
Followup-For: Bug #1154683
X-Debbugs-Cc: valdromede@ikmail.com

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
Technical Details
Message-ID: <O6mnD-fOhy-13@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!feed-us-txt.newsdeef.eu!feed-us-mo.newsdeef.eu!srv.newsdeef.eu!weretis.net!feeder8.news.weretis.net!fu-berlin.de!bofh.it!news.nic.it!robomod
References: <O1TtT-dhiH-5@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!feed-us-txt.newsdeef.eu!feed-us-mo.newsdeef.eu!srv.newsdeef.eu!weretis.net!feeder8.news.weretis.net!fu-berlin.de!bofh.it!news.nic.it!robomod
From: valentin <valdromede@ikmail.com>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1154683: transmission in x11 session fails to start with DRI error
Date: Thu, 03 Dec 2026 22:20:01 +0100
Message-ID: <O6mnD-fOhy-13@gated-at.bofh.it>
References: <O1TtT-dhiH-5@gated-at.bofh.it>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Thu Dec  3 21:19:07 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.651
Reply-To: valentin <valdromede@ikmail.com>, 1154683@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: valdromede@ikmail.com, pkg-apparmor-team@lists.alioth.debian.org
X-Debian-Pr-Message: followup 1154683
X-Debian-Pr-Package: src:apparmor
X-Debian-Pr-Keywords: upstream
X-Debian-Pr-Source: apparmor
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Mailer: reportbug 13.2.0+nmu1
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2006826
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 72
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Thu, 03 Dec 2026 22:16:43 +0100
X-Original-Message-ID: <179633260329.155075.11679837855688400105.reportbug@MSI-Z490>
X-Original-References: <179526797215.177893.5887973402307229042.reportbug@oled.lan>