🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.debian.bugs.dist
13 messages
13 total messages Started by Matthew Horan Fri, 06 Nov 2026 01:40
Bug#1153139: transmission: Latest transmission AppArmor policy missing policy for lock file
#3392
Author: Matthew Horan
Date: Fri, 06 Nov 2026 01:40
45 lines
3425 bytes
Package: transmission
Version: 4.1.4+dfsg-1~bpo13+1
Severity: normal
X-Debbugs-Cc: matt@matthoran.com

Dear Maintainer,

After updating to 4.1.4, transmission-daemon failed to start with 
AppArmor in enforce mode due to:

Nov 05 20:20:33 challenger kernel: audit: type=1400 audit(1793928033.400:210): apparmor="DENIED" operation="file_lock" class="file" profile="transmission-daemon" name="/var/lib/transmission-daemon/.config/transmission-daemon/lock" pid=1196139 comm="transmission-da" requested_mask="k" denied_mask="k" fsuid=118 ouid=118

The k mask is missing from the AppArmor profile, with only rw being 
given to /var/lib/transmission-daemon/.config/**. This lockfile seems to 
have been introduced in 4.1.4 (though I didn't notice anything in 
upstream release notes.)

Adding the appropriate policy to 
/etc/apparmor.d/local/transmission-daemon resolves the issue:

owner /var/lib/transmission-daemon/.config/transmission-daemon/lock rwk,

-- System Information:
Debian Release: 13.7
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.12.113+deb13-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.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 transmission depends on:
ii  transmission-cli     4.1.4+dfsg-1~bpo13+1
ii  transmission-common  4.1.4+dfsg-1~bpo13+1

transmission recommends no packages.

transmission suggests no packages.

-- no debconf information
Bug#1153139: transmission: Latest transmission AppArmor policy missing policy for lock file
#3487
Author: Alexandre Rossi
Date: Fri, 06 Nov 2026 13:50
66 lines
4580 bytes
Control: reassign -1 src:apparmor
Control: affects -1 src:transmission

Hi,

> After updating to 4.1.4, transmission-daemon failed to start with 
> AppArmor in enforce mode due to:
>
> Nov 05 20:20:33 challenger kernel: audit: type=1400 audit(1793928033.400:210): apparmor="DENIED" operation="file_lock" class="file" profile="transmission-daemon" name="/var/lib/transmission-daemon/.config/transmission-daemon/lock" pid=1196139 comm="transmission-da" requested_mask="k" denied_mask="k" fsuid=118 ouid=118
>
> The k mask is missing from the AppArmor profile, with only rw being 
> given to /var/lib/transmission-daemon/.config/**. This lockfile seems to 
> have been introduced in 4.1.4 (though I didn't notice anything in 
> upstream release notes.)

This is:

    Unified launch and delegation between the Qt and GTK clients: If
    either is already running and then you or a browser's mime-type handler
    tries to start the otherto add a new torrent, that
    new torrent will get handed off to the pre-existing session. 
    https://github.com/transmission/transmission/pull/9032

> Adding the appropriate policy to 
> /etc/apparmor.d/local/transmission-daemon resolves the issue:
>
> owner /var/lib/transmission-daemon/.config/transmission-daemon/lock rwk,

This is in src:apparmor

I would suggest the following but did not test (not a apparmor user, yet?):

--- i/profiles/apparmor.d/abstractions/transmission-common
+++ w/profiles/apparmor.d/abstractions/transmission-common
@@ -167,6 +167,7 @@ abi <abi/5.0>,
   owner @{HOME}/.cache/transmission/**  rw,
   owner @{HOME}/.config/transmission/   w,
   owner @{HOME}/.config/transmission/** rw,
+  owner @{HOME}/.config/transmission/lock rwk,

   owner @{HOME}/.config/lxqt/lxqt.conf  r,

diff --git i/profiles/apparmor.d/transmission w/profiles/apparmor.d/transmission
index 1f6d20e..6a1634c 100644
--- i/profiles/apparmor.d/transmission
+++ w/profiles/apparmor.d/transmission
@@ -36,6 +36,7 @@ profile transmission-daemon /usr/bin/transmission-daemon flags=(attach_disconnec
   owner /var/lib/transmission{-daemon,}/.config/ rw,
   owner /var/lib/transmission{-daemon,}/.config/transmission-daemon/ rw,
   owner /var/lib/transmission{-daemon,}/.config/transmission-daemon/** rw,
+  owner /var/lib/transmission{-daemon,}/.config/transmission-daemon/lock rwk,
   owner /var/lib/transmission{-daemon,}/downloads/** rw,
   owner /var/lib/transmission{-daemon,}/info/**      rw,


Thanks, 

Alex
Bug#1153139: transmission: Latest transmission AppArmor policy missing policy for lock file
#3493
Author: Matt Horan
Date: Fri, 06 Nov 2026 14:10
13 lines
2576 bytes
On Fri, Nov 06, 2026 at 02:41:24PM +0100, Alexandre Rossi wrote:
>> Adding the appropriate policy to
>> /etc/apparmor.d/local/transmission-daemon resolves the issue:
>>
>> owner /var/lib/transmission-daemon/.config/transmission-daemon/lock rwk,
>
>This is in src:apparmor

I suppose this presents another issue, then. I am using transmission 
from backports, as the trixie version is a beta version, which is 
blocked from many trackers (see https://bugs.debian.org/1111040).

I do not see apparmor in trixie-backports.
Bug#1153139: [pkg-apparmor] Bug#1153139: transmission: Latest transmission AppArmor policy missing policy for lock file
#3508
Author: Christian Boltz
Date: Fri, 06 Nov 2026 17:40
83 lines
5837 bytes
--nextPartrU8DlyInRYuWNbAHFxF0jA
Content-Transfer-Encoding: 7Bit
Content-Type: text/plain; charset="utf-8"; protected-headers="v1"
From: Christian Boltz <debian-bugs@cboltz.de>
Cc: Alexandre Rossi <niol@zincube.net>
Date: Fri, 06 Nov 2026 18:25:53 +0100
Message-ID: <WUTlKmEuSzGh-E1IWg3LMw@cboltz.de>
In-Reply-To: <DMO6662UF1QE.3OI3847VUUJLQ@zincube.net>
MIME-Version: 1.0

Hello,

Am Freitag, 6. November 2026, 14:41 schrieb Alexandre Rossi:
> > audit(1793928033.400:210): apparmor="DENIED" operation="file_lock"
> > class="file" profile="transmission-daemon"
> > name="/var/lib/transmission-daemon/.config/transmission-daemon/lock
> > " pid=1196139 comm="transmission-da" requested_mask="k"
> > denied_mask="k" fsuid=118 ouid=118

> I would suggest the following but did not test (not a apparmor user,
> yet?):
> 
> --- i/profiles/apparmor.d/abstractions/transmission-common
> +++ w/profiles/apparmor.d/abstractions/transmission-common
> @@ -167,6 +167,7 @@ abi <abi/5.0>,
>    owner @{HOME}/.cache/transmission/**  rw,
>    owner @{HOME}/.config/transmission/   w,
>    owner @{HOME}/.config/transmission/** rw,
> +  owner @{HOME}/.config/transmission/lock rwk,

Just wondering - is this really needed for ~/.config/? So far, the reports 
I've seen across various distributions (Ubuntu, openSUSE and Debian) 
only had denials for the following:

> diff --git i/profiles/apparmor.d/transmission w/profiles/apparmor.d/transmission 
> index 1f6d20e..6a1634c 100644
> --- i/profiles/apparmor.d/transmission
> +++ w/profiles/apparmor.d/transmission
> @@ -36,6 +36,7 @@ profile transmission-daemon
>   /usr/bin/transmission-daemon flags=(attach_disconnec owner
>   /var/lib/transmission{-daemon,}/.config/ rw,
>    owner /var/lib/transmission{-daemon,}/.config/transmission-daemon/rw, owner
>   /var/lib/transmission{-daemon,}/.config/transmission-daemon/** rw, 
> + owner /var/lib/transmission{-daemon,}/.config/transmission-daemon/lock rwk,
>   owner /var/lib/transmission{-daemon,}/downloads/** rw,
>    owner /var/lib/transmission{-daemon,}/info/**      rw,

The addition for /var/lib/.../lock is already pending upstream:
https://gitlab.com/apparmor/apparmor-profiles/-/merge_requests/80

The upstream MR also contains links to the Ubuntu and openSUSE bugreports.


Regards,

Christian Boltz
-- 
Linux: und wo bitte ist mein blauer Bildschirm?

--nextPartrU8DlyInRYuWNbAHFxF0jA
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part.
Content-Transfer-Encoding: 7Bit

-----BEGIN PGP SIGNATURE-----

iQJPBAABCAA5FiEEcMqgYN4EKq6xsVGWxqaC6mPILxwFAmruDaEbFIAAAAAABAAO
bWFudTIsMi41KzEuMTIsMiwyAAoJEMamgupjyC8cT/4P/jJ9qshdV79pA2ieziF3
nUzSLLI7WfRohl+E8TDw04f0VzvUzolRri8Rqah2c62wOQek14p5UdN8jgFUI5Gj
hSt1YoG8/M0WErevbL4Vy8hyjL1YafYbAGEFzy4YsYKv8gsTL37dhKaTjTbXSVnO
9DG+FDxo8CiKRa3TFNkLY+4rueVChW3qIQwPn1SHbDft3xu7D50e1FqYrrjnTvJV
1i2YBc9ZtBm3nzZpJqyUTfPZi9+wMnBK/2IAQhdznW9bERKWeV6UZY873D51qO15
9Dk7D0dtxC+cszOQ868oL5PTvgQ1wsUgx4HQ+GcQdJd81M0v7l4aCvOxzs/boOSp
vN1zgpDwCH1zr0ex5+W+BcR82sT7pPrpRWBQf6YCbDLA2ljOcjzLJN1X4dvty3s4
KFhD0eoZJMSShKhdzBVQGYdTg+7f+UjlLSyWr3PPT6oW76hghKIRVQfgkiX++5Gg
ta5C12E0gi5qMyscZJsRYnkmOaUDcSwD/2dYmYBMf72VB1QAE96CwUc1qfOxN/dj
Xafk31n5h8roDgq5A/fwQ00kxxATqbNkRoiuREPwv48Qw5U4VQ+khp9FavoaNvgJ
I2jf3VnPaP/pR5jPVhpfWaw0mHu5rGKMQ4NoqzRH5U4Yy75lQg+mhkFKhepCyBQl
IuNJJYOaIqOQLVV8iJ8rRtbh
=dJw9
-----END PGP SIGNATURE-----

--nextPartrU8DlyInRYuWNbAHFxF0jA--
Bug#1153139: [pkg-apparmor] Bug#1153139: transmission: Latest transmission AppArmor policy missing policy for lock file
#3673
Author: Alexandre Rossi
Date: Sat, 07 Nov 2026 15:40
12 lines
2751 bytes
Hi,

> Just wondering - is this really needed for ~/.config/? So far, the reports 
> I've seen across various distributions (Ubuntu, openSUSE and Debian) 
> only had denials for the following:

$ ls -la .config/transmission/
[...]
-rw------- 1 niol niol    0  7 nov.  16:35 lock

Alex
Bug#1153139: transmission: Latest transmission AppArmor policy missing policy for lock file
#4242
Author: Alexandre Rossi
Date: Thu, 12 Nov 2026 10:00
23 lines
2864 bytes
Hi,

>>> Adding the appropriate policy to
>>> /etc/apparmor.d/local/transmission-daemon resolves the issue:
>>>
>>> owner /var/lib/transmission-daemon/.config/transmission-daemon/lock rwk,
>>
>>This is in src:apparmor
>
> I suppose this presents another issue, then. I am using transmission 
> from backports, as the trixie version is a beta version, which is 
> blocked from many trackers (see https://bugs.debian.org/1111040).
>
> I do not see apparmor in trixie-backports.

I wonder if it would be acceptable to ship /etc/apparmor.d/local/transmission
within the transmission backport binary package.

I see 2 packages doing that.

Alex
Bug#1153139: transmission: Latest transmission AppArmor policy missing policy for lock file
#4863
Author: intrigeri
Date: Tue, 17 Nov 2026 16:40
16 lines
2603 bytes
Hi,

Alexandre Rossi (2026-11-12):
> I wonder if it would be acceptable to ship /etc/apparmor.d/local/transmission
> within the transmission backport binary package.

It would not: /etc/apparmor.d/local/transmission is for users'
local tweaks.

> I see 2 packages doing that.

I'd love to take a closer look. Which ones are they?

Cheers,
-- 
intrigeri
Bug#1153139: transmission: Latest transmission AppArmor policy missing policy for lock file
#4864
Author: intrigeri
Date: Tue, 17 Nov 2026 16:40
17 lines
2156 bytes
Control: tag -1 + moreinfo

Hi Matthew,

The apparmor package ships /etc/apparmor.d/transmission in
complain mode. Can you please share the output of:

    grep complain /etc/apparmor.d/transmission

?

This will help confirm this only impacts users who have manually
enforced this profile, which will in turn help me prioritize this bug.

Cheers,
-- 
intrigeri
Bug#1153139: [pkg-apparmor] Bug#1153139: transmission: Latest transmission AppArmor policy missing policy for lock file
#4865
Author: intrigeri
Date: Tue, 17 Nov 2026 16:40
17 lines
2900 bytes
Hi,

Alexandre Rossi (2026-11-07):
>> Just wondering - is this really needed for ~/.config/? So far, the reports 
>> I've seen across various distributions (Ubuntu, openSUSE and Debian) 
>> only had denials for the following:
>
> $ ls -la .config/transmission/
> [...]
> -rw------- 1 niol niol    0  7 nov.  16:35 lock

Thank you, I've relayed this info upstream:
https://gitlab.com/apparmor/apparmor-profiles/-/merge_requests/80#note_4256755115

Cheers,
-- 
intrigeri
Bug#1153139: transmission: Latest transmission AppArmor policy missing policy for lock file
#4868
Author: Matt Horan
Date: Tue, 17 Nov 2026 16:50
21 lines
2736 bytes
On Tue, Nov 17, 2026 at 05:30:14PM +0100, intrigeri wrote:
>The apparmor package ships /etc/apparmor.d/transmission in
>complain mode. Can you please share the output of:
>
>    grep complain /etc/apparmor.d/transmission
>
>?
>
>This will help confirm this only impacts users who have manually
>enforced this profile, which will in turn help me prioritize this bug.

profile transmission-cli /usr/bin/transmission-cli flags=(complain) {
profile transmission-gtk /usr/bin/transmission-gtk 
flags=(complain,attach_disconnected) {
profile transmission-qt /usr/bin/transmission-qt flags=(complain) {

transmission-daemon is set to enforce, which I believe was set manually 
(I do want the transmission profile enforced).

I do not use the other transmission binaries, so they are left in 
complain.
Bug#1153139: [pkg-apparmor] Bug#1153139: transmission: Latest transmission AppArmor policy missing policy for lock file
#4869
Author: intrigeri
Date: Tue, 17 Nov 2026 17:10
13 lines
2307 bytes
Control: severity -1 minor

Hi,

Matt Horan (2026-11-17):
> transmission-daemon is set to enforce, which I believe was set manually 
> (I do want the transmission profile enforced).

Thank you! I'm adjusting the severity accordingly.

Cheers,
-- 
intrigeri
Bug#1153139: transmission: Latest transmission AppArmor policy missing policy for lock file
#4874
Author: Alexandre Rossi
Date: Tue, 17 Nov 2026 17:40
25 lines
3219 bytes
Hi,

>> I wonder if it would be acceptable to ship /etc/apparmor.d/local/transmission
>> within the transmission backport binary package.
>
> It would not: /etc/apparmor.d/local/transmission is for users'
> local tweaks.
>
>> I see 2 packages doing that.
>
> I'd love to take a closer look. Which ones are they?

$ apt-file search /etc/apparmor.d/local
apparmor: /etc/apparmor.d/local/README
apparmor: /etc/apparmor.d/locale
openqa-server: /etc/apparmor.d/local/usr.share.openqa.script.openqa
openqa-worker: /etc/apparmor.d/local/usr.share.openqa.script.worker
waydroid: /etc/apparmor.d/local/adbd
waydroid: /etc/apparmor.d/local/android_app
waydroid: /etc/apparmor.d/local/lxc-waydroid

Cheers,

Alex
Bug#1153139: transmission: Latest transmission AppArmor policy missing policy for lock file
#4916
Author: intrigeri
Date: Wed, 18 Nov 2026 09:10
34 lines
3478 bytes
Hi,

Alexandre Rossi (2026-11-17):
>>> I wonder if it would be acceptable to ship /etc/apparmor.d/local/transmission
>>> within the transmission backport binary package.
>>
>> It would not: /etc/apparmor.d/local/transmission is for users'
>> local tweaks.
>>
>>> I see 2 packages doing that.
>>
>> I'd love to take a closer look. Which ones are they?
>
> $ apt-file search /etc/apparmor.d/local
> apparmor: /etc/apparmor.d/local/README
> apparmor: /etc/apparmor.d/locale
> openqa-server: /etc/apparmor.d/local/usr.share.openqa.script.openqa
> openqa-worker: /etc/apparmor.d/local/usr.share.openqa.script.worker
> waydroid: /etc/apparmor.d/local/adbd
> waydroid: /etc/apparmor.d/local/android_app
> waydroid: /etc/apparmor.d/local/lxc-waydroid

None of these files include AppArmor policy. They are either empty or
include only documentation. It's not great (it would be better to not
ship them at all) but it's that bad.

So none of these files override policy shipped by another package, via
user overrides file, which is the main thing I would be
strongly opposing.

Cheers,
-- 
intrigeri
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads