익명 21:21

Apparmor interferes with CUPS PDF print

Apparmor interferes with CUPS PDF print

Could the issue be something other than apparmor? A 24.04 system on the same network gives the same DENIED type messages but, the print to PDF happens. On 26.04, I see no output file at all when the print is coming from another system on the LAN

Using 26.04. CUPS print to PDF is working when the originator of the file is on the 26.04 system. The CUPS PDF print is shared with other systems in my local area network. At attempt print to PDF from an XP system in my local area network is failing. The system log contains a few lines such as this

2026-07-16T21:23:36.032922-05:00 localhost kernel: audit: type=1400 audit(1784255016.031:150402): apparmor="DENIED" operation="connect" class="file" profile="/usr/lib/cups/backend/cups-pdf" name="/run/samba/winbindd/pipe" pid=1158626 comm="cups-pdf" requested_mask="wr" denied_mask="wr" fsuid=0 ouid=0

Due to the presence of an XP system in my local area network, winbind is installed.

I've got rid of the above message from syslog by disabling apparmor with regard to cupsd (I think) but messages about dbus-daemon persist, an example is:

2026-07-17T10:06:37.333138-05:00 localhost kernel: audit: type=1107 audit(1784300797.331:152868): pid=1310 uid=995 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_signal" bus="system" path="/com/redhat/PrinterSpooler" interface="com.redhat.PrinterSpooler" member="JobQueuedLocal" name=":1.8991" mask="receive" pid=349875 label="unconfined" peer_pid=1168372 peer_label="/usr/sbin/cupsd" peer_info="No such file or directory"

What do I need to change so that this works?



Top Answer/Comment:

The syslog entries about apparmor causing no output file to be created turned out to be a "red herring". By chaging permission bits of the directory where cups-pdf would place the output, an output file is now being created. There are other issues yet to be resolved with the file content however that is another question.

When this question was written, permissions were 775. After permissions for the directory were changed to 777 this specific problem disappeared.

상단 광고의 [X] 버튼을 누르면 내용이 보입니다