Article View: linux.debian.bugs.dist
Article #3207Bug#1152997: cups-daemon: AppArmor profile blocks systemd-homed user resolution
From: Rein Ketelaars
Date: Wed, 04 Nov 2026 09:20
Date: Wed, 04 Nov 2026 09:20
55 lines
6917 bytes
6917 bytes
Package: cups-daemon Version: 2.4.18-1 Severity: normal Tags: newcomer apparmor Description: The CUPS AppArmor profile prevents CUPS from resolving local users managed by systemd-homed. This causes repeated authentication prompts in KDE System Settings → Printers, even when the user enters valid credentials. Symptoms: CUPS repeatedly logs: User "rein" does not exist. pam_authenticate() returned 7 (Authentication failure) The account resolves correctly outside the CUPS AppArmor profile: $ getent passwd rein rein:x:1000:1000:Rein Ketelaars:/home/rein:/bin/bash However, the same lookup fails inside the CUPS profile: $ sudo aa-exec -p /usr/sbin/cupsd -- getent passwd rein $ echo $? 2 The kernel audit log shows the cause: apparmor="DENIED" operation="open" profile="/usr/sbin/cupsd" name="/etc/machine-id" requested_mask="r" denied_mask="r" Proposed fix: Add read access to /etc/machine-id in /etc/apparmor.d/usr.sbin.cupsd: /etc/machine-id r, Verification: Adding the following rule to /etc/apparmor.d/local/usr.sbin.cupsd: /etc/machine-id r, ... resolves the issue. Thank you! Rein Ketelaars -- System Information: Debian Release: forky/sid APT prefers testing APT policy: (500, 'testing') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 7.2.12+deb14-amd64 (SMP w/20 CPU threads; PREEMPT) 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 cups-daemon depends on: ii bc 1.07.1-4 ii libavahi-client3 0.8-18 ii libavahi-common3 0.8-18 ii libc6 2.43-7 ii libcups2t64 2.4.18-1 ii libdbus-1-3 1.16.2-8 ii libgssapi-krb5-2 1.22.1-3 ii libpam0g 1.7.0-8 ii libpaper2 2.3.0-0.3 ii libsystemd0 262-1 ii procps 2:4.0.7-1 ii ssl-cert 1.2.0 ii systemd [systemd-sysusers] 262-1 ii sysvinit-utils [lsb-base] 3.18-1 Versions of packages cups-daemon recommends: ii avahi-daemon 0.8-18 ii colord 1.4.8-3 ii cups-browsed 1.28.17-7+b3 ii ipp-usb 0.9.31-2 Versions of packages cups-daemon suggests: ii cups 2.4.18-1 ii cups-bsd 2.4.18-1 ii cups-client 2.4.18-1 ii cups-common 2.4.18-1 ii cups-filters 1.28.17-7+b3 pn cups-pdf <none> ii cups-ppdc 2.4.18-1 ii cups-server-common 2.4.18-1 pn foomatic-db-compressed-ppds | foomatic-db <none> ii ghostscript 10.08.0~dfsg-2 ii poppler-utils 26.07.0-3 ii smbclient 2:4.25.1+dfsg-1 ii udev 262-1 -- no debconf information
Technical Details
Message-ID:
<NVFjX-9LXG-1@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.corradoroberto.it!bofh.it!news.nic.it!robomodShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.corradoroberto.it!bofh.it!news.nic.it!robomod
From: Rein Ketelaars <rein@ktlrs.nl>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1152997: cups-daemon: AppArmor profile blocks systemd-homed user resolution
Date: Wed, 04 Nov 2026 10:20:01 +0100
Message-ID: <NVFjX-9LXG-1@gated-at.bofh.it>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Wed Nov 4 09:19:08 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.45
Reply-To: Rein Ketelaars <rein@ktlrs.nl>, 1152997@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: debian-printing@lists.debian.org
X-Debian-Pr-Message: report 1152997
X-Debian-Pr-Package: cups-daemon
X-Debian-Pr-Keywords: newcomer
X-Debian-Pr-Source: cups
X-Gm-Message-State: APuU4Z8rQAkJ2AjZr+bzUD6L0hDeESe5Lwd690+AL1ZJ/vk9S8fCTTjO
+Uy1NnYXaeVhdJKq+yEOn93PaP4KBFwLfKwCZfwtENcbO0LXbiExwydOKu+9UdIW/eNKNWI0+4N
nFDpTLA==
X-Gm-Gg: AYBFou0D9fF+hsGojYviQCX6stOteP/obGCSy92i83cTcxRTQJFMCV7n2vCw5ap8m5K
pXVsNAbDgQkbsmDUv/Gz/w4wW0BQSyXEGmvNsp6OES92f8ayFEbG6/Xk038ZrCkrok5YeiebDaS
T/Gzd/T35lFjb8uW/k9Ea59aPv6u6mth8T/n4M0JbchSPEduSYdwYO3hZlYEyCipX+4HupIntAT
DjvLJ+MSgZ3nr8X0gEV3SgdwnK95uLfwJrFFQKexTP/Wg7biXP1iZh2NVEXZQFgFGjmzspFseV2
mGfOBdJuMq3aLOjYjZ7cTycsAml82MDeZk8zAxMS5o7CJMN2lpTFxAI6ha5yxErmGV9Jd3Y5WVq
ShkGoun1+gecAksUAeYIFXAHtWA/YjBvE2ceQpqtUMwkaM5AlYRMvEsHyLhAzeJuiUAnx9Ffe56
geR0KDrve2XVX5EFyO5dj/ukx9RyJ/+AbTU0wXKWuHPb101kNZKwMMI+P2P34mtUV8Fd4mJ6ySn
FEjb7bW2YlPnmXFPcDN3mYa0sGlhkMb41WS4y3Zja1zY8tUFihXDcSKmv3yoPODM7vop16geTMJ
7MRfpdr21+0b2Eod8cMeW9CxScP3lHKZUr8MvMYZr/DM9v6Xt5v2LMsp+ehX51vg+FH0grVhWHh
ikq94odLKD6034Erbb36F44TYTmft14KORvXrCOq/LWtf
X-Received: by 2002:a17:907:d489:b0:c2d:bae5:27d9 with SMTP id a640c23a62f3a-c4ca7aed5d8mr1259294266b.46.1793783808843;
Wed, 04 Nov 2026 01:16:48 -0800 (PST)
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
X-Mailer: reportbug 13.2.0+nmu1
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2000572
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: Wed, 04 Nov 2026 10:16:25 +0100
X-Original-Message-ID: <179378378524.104639.7593596320620778968.reportbug@Lat5540.reinketelaars.net>