Comment 28 for bug 147551

Revision history for this message
Eric Belhaire (ebelhaire) wrote : Re: cups-pdf fails to generate file

I have the same with a cups-pdf fails to generate any file, on an updated Gutsy system (everything was perfect with Feisty).

In /var/log/cups/cups-pdf_log:
Mon Dec 3 07:11:26 2007 [ERROR] failed to set file mode for PDF file (non fatal) (/home/eric/ubuntu/PDF/foo_bs3_bulpaie.pdf)

In /var/log/kern.log:
Dec 3 08:11:25 monbillou kernel: [ 1098.324000] audit(1196665885.930:4): type=1503 operation="capable" name="dac_override" pid=8883 profile="/usr/lib/cups/backend/cups-pdf"
Dec 3 08:11:25 monbillou kernel: [ 1098.324000] audit(1196665885.930:5): type=1503 operation="capable" name="dac_read_search" pid=8883 profile="/usr/lib/cups/backend/cups-pdf"
Dec 3 08:11:26 monbillou kernel: [ 1098.412000] audit(1196665885.930:6): type=1503 operation="inode_create" requested_mask="w" denied_mask="w" name="/home/eric/ubuntu/PDF/foo_bs3_bulpaie.pdf" pid=8886 profile="/usr/lib/cups/backend/cups-pdf"

In /etc/cups/cups-pdf.conf:
Out ${HOME}/PDF
(HOME is /home/eric/ubuntu)

In /etc/apparmor.d/usr.sbin.cupsd
  @{HOME}/PDF/ w,
  @{HOME}/PDF/* w,

It seems that the new system does not accept my configuration, but why ? Is it because home is non standard as it is /home/eric/ubuntu ?

Any idea ?

ericbe