Thread View: linux.debian.bugs.dist
2 messages
2 total messages
Started by desrc
Mon, 26 Oct 2026 22:20
Bug#1152229: /etc/apparmor.d/usr.bin.thunderbird was removed but leftover /disable/ doens't get deleted
Author: desrc
Date: Mon, 26 Oct 2026 22:20
Date: Mon, 26 Oct 2026 22:20
14 lines
2031 bytes
2031 bytes
Package: thunderbird Version: 1:153.5.1esr-1~deb13u1 Severity: normal In this recent update, you removed "/etc/apparmor.d/usr.bin.thunderbird" but didn't remove "/etc/apparmor.d/disable/usr.bin.thunderbird" correctly. You could remove symlinked "/etc/apparmor.d/disable/usr.bin.thunderbird" first, then remove "/etc/apparmor.d/usr.bin.thunderbird", then try to remove ""/etc/apparmor.d/disable/". I removed that broken symlink manually.
Bug#1152229: /etc/apparmor.d/usr.bin.thunderbird was removed but leftover /disable/ doens't get deleted
Author: intrigeri
Date: Tue, 27 Oct 2026 10:20
Date: Tue, 27 Oct 2026 10:20
96 lines
4561 bytes
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
--=-=-=--
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