Comment 15 for bug 147551

Revision history for this message
NoOp (glgxg) wrote : Re: cups-pdf fails to generate file

Added apparmor back in, installed all of todays Gutsy updates (Accepted cups-pdf 2.4.6-3ubuntu9 (source)) etc., and print to cups-pdf to /PDF worked. I then changed /etc/cups/cups-pdf.conf to print to an alternate directory /PDFPrinter (Out ${HOME}/PDFPrinter), and printing failed. Var log for cups-pdf shows:

Fri Oct 5 11:56:02 2007 [ERROR] failed to create directory (/root/PDFPrinter)
Fri Oct 5 11:56:02 2007 [ERROR] failed to create user output directory (/root/PDFPrinter)

Removing apparmor allowed the cups-pdf print job to go to the existing /PDFPrinter directory.

Changing cups-pdf.conf again to Out ${HOME}/PDFPrint (without creating a /PDFPrint directory first), then printing: 1) created the directory, and 2) printed the PDF in the newly created /PDFPrint directory. Is this the security issue that apparmor is to protect against? If so, is there a way to sync the apparmor profile with cups-pdf.conf?

As an added note: I notice that the printer icon now stays in the panel following any first print job. Previously it disappeared after the print job was finished. Is this something new/expected, or is it a bug?