Bug 1628842

Summary: Cups daemon mustn't have private temp folder
Product: Red Hat Enterprise Linux 7 Reporter: Zdenek Dohnal <zdohnal>
Component: cupsAssignee: Zdenek Dohnal <zdohnal>
Status: CLOSED WONTFIX QA Contact: qe-baseos-daemons
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.7Keywords: FastFix, Patch
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-11-22 11:18:59 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1709724    

Description Zdenek Dohnal 2018-09-14 07:31:37 UTC
When I create file device printer on RHEL 7, then the output file isn't in expected location. It is caused by 'PrivateTmp' directive in cups.service, which makes systemd create a private temp folder for cups. 
This behavior is unwanted, because it worked differently in RHEL 6 and Fedora (file was at the exact location as you define in lpadmin command) and it causes a confusion to users and upstream.

Steps to reproduce:
1) install cups
2) enable file devices for cups (put FileDevice Yes into /etc/cups/cups-files.conf and restart cups service)
3) $ sudo lpadmin -p test -v file:/tmp/printout -m drv:///sample.drv/generic.ppd -E
4) $ lp -d test /etc/fstab
5) $ ls /tmp/printout
ls: cannot access /tmp/printout: No such file or directory

Expected results:
$ ls /tmp/printout
/tmp/printout

How to solve:
- remove PrivateTmp from cups.service unit file