Article View: linux.debian.bugs.dist
Article #3875Bug#1152846: ntpsec: Please stop shipping /etc/apparmor.d/tunables/ntpd
From: Adrian Bunk
Date: Mon, 09 Nov 2026 09:00
Date: Mon, 09 Nov 2026 09:00
55 lines
3771 bytes
3771 bytes
On Mon, Nov 02, 2026 at 09:50:33AM +0100, intrigeri wrote:
> Package: ntpsec
> Version: 1.2.5+dfsg-1
> Severity: serious
> Tags: patch
> Justification: package uninstallable in most common configurations
>
> Hi,
>
> apparmor 5.0 ships /etc/apparmor.d/tunables/ntpd with a compatible
> configuration format (same variable name).
>
> This triggered a conffile conflict (#1152663) which makes ntpsec and apparmor
> not co-installable at the moment. Sorry I did not spot that before uploading!
> (I'm going to add ntpsec to the "test-installed" autopkgtest in src:apparmor so this gets spotted next time.)
>
> It seems to me the best way forward is that ntpsec stops shipping that conffile:
> there's nothing specific to ntpsec in there, and the filename clearly belongs to
> a namespace that is broader than just ntpsec, so it makes sense it's shipped in
> a more central package, and can be shared by AppArmor profiles for various
> NTP implementations.
>
> So I propose we do this:
>
> 1. ntpsec stops shipping /etc/apparmor.d/tunables/ntpd, presumably in 1.2.5+dfsg-2
>
> I don't think you need to add a dependency (stronger than the existing
> Suggests:) on apparmor: the apparmor package ships the parser, so without the
> tunable, there's no parser, and then no change your policy depends on
> a missing tunable.
>
> The attached untested patch should do most, if not all, that's needed.
>
> 2. apparmor takes over the conffile:
>
> Breaks: ntpsec (<< 1.2.5+dfsg-2~)
> Replaces: ntpsec (<< 1.2.5+dfsg-2~)
>
> I'll do that once (1) has happened.
>
> What do you think?
Without going into the moving discussion, ntpsec also does:
install -D -m 0644 debian/apparmor-profile \
debian/ntpsec/etc/apparmor.d/usr.sbin.ntpd
apparmor also ships a (different!) version of this file as
profiles/apparmor.d/usr.sbin.ntpd in its sources. It wouldn't
make much sense if the tunables file and the file being tuned
were now in different packages, either both or none should move.
cu
Adrian
Technical Details
Message-ID:
<NXtol-aMCM-1@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!fu-berlin.de!bofh.it!news.nic.it!robomodReferences:
<NUW3v-9ngp-1@gated-at.bofh.it> <NUW3v-9ngp-1@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!fu-berlin.de!bofh.it!news.nic.it!robomod From: Adrian Bunk <bunk@debian.org> Newsgroups: linux.debian.bugs.dist Subject: Bug#1152846: ntpsec: Please stop shipping /etc/apparmor.d/tunables/ntpd Date: Mon, 09 Nov 2026 10:00:01 +0100 Message-ID: <NXtol-aMCM-1@gated-at.bofh.it> References: <NUW3v-9ngp-1@gated-at.bofh.it> <NUW3v-9ngp-1@gated-at.bofh.it> X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Mon Nov 9 08:53:07 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.7 Reply-To: Adrian Bunk <bunk@debian.org>, 1152846@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: rlaager@debian.org X-Debian-Pr-Message: followup 1152846 X-Debian-Pr-Package: ntpsec X-Debian-Pr-Keywords: patch X-Debian-Pr-Source: ntpsec MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline X-Debian-User: bunk X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2001615 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 55 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Mon, 9 Nov 2026 10:50:05 +0200 X-Original-Message-ID: <avGJPZJoQ8R4qenr@localhost> X-Original-References: <179360943324.202282.5229572709226268042.reportbug@manticora> <179360943324.202282.5229572709226268042.reportbug@manticora>