🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Bug#1152229: /etc/apparmor.d/usr.bin.thunderbird was removed but leftover /disable/ doens't get deleted

#2346
From: intrigeri
Date: Tue, 27 Oct 2026 10:20
96 lines
4561 bytes
--=-=-=
Content-Type: text/plain

Control: tag -1 + patch

Hi,

Carsten Schoenert (2026-10-27):
> would you mind to have a look at this please and create a patch or MR?
> You are still much deeper in the details.

Here's an untested patch.

I can imagine a very unlikely scenario in which the user has installed
a third-party profile and created this symlink to disable it, in which
case it could be a problem to unconditionally delete it on every
upgrade. But I don't think it's worth bothering about this too much.
If you think it's worth it, you might want to add version checking
guard code to ensure the removal only happens once (so the user can
revert it).

Bonus: 2nd patch to make the code less confusing.

Cheers,
-- 
intrigeri


--=-=-=
Content-Type: text/x-diff
Content-Disposition: inline;
 filename=0001-Delete-obsolete-etc-apparmor.d-disable-usr.bin.thund.patch

From 0d18bbd7d43ad158548e67276518b9aec97fa40d Mon Sep 17 00:00:00 2001
From: intrigeri <intrigeri@riseup.net>
Date: Tue, 27 Oct 2026 08:56:58 +0000
Subject: [PATCH 1/2] Delete obsolete
 /etc/apparmor.d/disable/usr.bin.thunderbird (Closes: #1152229)

---
 debian/thunderbird.postinst | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/debian/thunderbird.postinst b/debian/thunderbird.postinst
index 0392a4a9409..72b5d05aae3 100644
--- a/debian/thunderbird.postinst
+++ b/debian/thunderbird.postinst
@@ -69,6 +69,9 @@ case "$1" in
                 fi
             fi
         fi
+
+        # Remove obsolete symlink
+        rm -f /etc/apparmor.d/disable/usr.bin.thunderbird
     ;;
 
     configure|abort-upgrade)
-- 
2.55.0


--=-=-=
Content-Type: text/x-diff
Content-Disposition: inline;
 filename=0002-Remove-pattern-than-never-matches.patch

From 9a76cad274151c2a9be496fcecb49bfa0fc55bed Mon Sep 17 00:00:00 2001
From: intrigeri <intrigeri@riseup.net>
Date: Tue, 27 Oct 2026 08:57:41 +0000
Subject: [PATCH 2/2] Remove pattern than never matches

The "configure" pattern line 26 overrides this one.

Spotted by ShellCheck (SC2221).
---
 debian/thunderbird.postinst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/thunderbird.postinst b/debian/thunderbird.postinst
index 72b5d05aae3..ca288557fec 100644
--- a/debian/thunderbird.postinst
+++ b/debian/thunderbird.postinst
@@ -74,7 +74,7 @@ case "$1" in
         rm -f /etc/apparmor.d/disable/usr.bin.thunderbird
     ;;
 
-    configure|abort-upgrade)
+    abort-upgrade)
         touch ${THUNDERBIRD_LIBDIR}/.autoreg
     ;;
 
-- 
2.55.0


--=-=-=--
Technical Details
Message-ID: <NSMrD-8dAu-7@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.hispagatos.org!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
References: <NSBcR-85uN-1@gated-at.bofh.it> <NSMrD-8dAu-9@gated-at.bofh.it> <NSBcR-85uN-1@gated-at.bofh.it> <NSMrD-8dAu-9@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.hispagatos.org!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: intrigeri <intrigeri@debian.org>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1152229: /etc/apparmor.d/usr.bin.thunderbird was removed but leftover /disable/ doens't get deleted
Date: Tue, 27 Oct 2026 11:20:01 +0100
Message-ID: <NSMrD-8dAu-7@gated-at.bofh.it>
References: <NSBcR-85uN-1@gated-at.bofh.it> <NSMrD-8dAu-9@gated-at.bofh.it> <NSBcR-85uN-1@gated-at.bofh.it> <NSMrD-8dAu-9@gated-at.bofh.it>
X-Original-To: Carsten Schoenert <c.schoenert@t-online.de>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Tue Oct 27 10:13:06 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.7
Reply-To: intrigeri <intrigeri@debian.org>, 1152229@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: c.schoenert@t-online.de
X-Debian-Pr-Message: followup 1152229
X-Debian-Pr-Package: thunderbird
X-Debian-Pr-Source: icedove, thunderbird
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-Debian-User: intrigeri
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/1999159
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 96
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Cc: 1152229@bugs.debian.org
X-Original-Date: Tue, 27 Oct 2026 11:10:52 +0100
X-Original-Message-ID: <87h5i7zc5v.fsf@manticora>
X-Original-References: <50a36b494df236dbd5cc038d1ff6a510@riseup.net> <29bf7bc6-4f94-452e-bd27-62a431d89b76@t-online.de> <50a36b494df236dbd5cc038d1ff6a510@riseup.net> <29bf7bc6-4f94-452e-bd27-62a431d89b76@t-online.de>