Description of problem: Occurred while printing. Additional info: libreport version: 2.0.14 kernel: 3.6.1-1.fc18.x86_64 description: :SELinux is preventing /usr/lib/cups/filter/hpcups from 'search' accesses on the directory /var/log/hp. : :***** Plugin catchall (100. confidence) suggests *************************** : :If you believe that hpcups should be allowed search access on the hp directory by default. :Then you should report this as a bug. :You can generate a local policy module to allow this access. :Do :allow this access for now by executing: :# grep hpcups /var/log/audit/audit.log | audit2allow -M mypol :# semodule -i mypol.pp : :Additional Information: :Source Context system_u:system_r:cupsd_t:s0-s0:c0.c1023 :Target Context system_u:object_r:hplip_var_log_t:s0 :Target Objects /var/log/hp [ dir ] :Source hpcups :Source Path /usr/lib/cups/filter/hpcups :Port <Unknown> :Host (removed) :Source RPM Packages hpijs-3.12.10-1.fc18.x86_64 :Target RPM Packages hplip-3.12.10-1.fc18.x86_64 :Policy RPM selinux-policy-3.11.1-32.fc18.noarch :Selinux Enabled True :Policy Type targeted :Enforcing Mode Enforcing :Host Name (removed) :Platform Linux (removed) 3.6.1-1.fc18.x86_64 #1 SMP Mon Oct : 8 17:19:09 UTC 2012 x86_64 x86_64 :Alert Count 1 :First Seen 2012-10-11 22:12:04 BST :Last Seen 2012-10-11 22:12:04 BST :Local ID 73a35854-cfec-4923-bb64-adedcefce1ff : :Raw Audit Messages :type=AVC msg=audit(1349989924.647:460): avc: denied { search } for pid=5403 comm="hpcups" name="hp" dev="sda8" ino=523424 scontext=system_u:system_r:cupsd_t:s0-s0:c0.c1023 tcontext=system_u:object_r:hplip_var_log_t:s0 tclass=dir : : :type=SYSCALL msg=audit(1349989924.647:460): arch=x86_64 syscall=unlink success=no exit=EACCES a0=7fff90f56880 a1=0 a2=3510fb1fb8 a3=7fff90f565e0 items=0 ppid=655 pid=5403 auid=4294967295 uid=4 gid=7 euid=4 suid=4 fsuid=4 egid=7 sgid=7 fsgid=7 tty=(none) ses=4294967295 comm=hpcups exe=/usr/lib/cups/filter/hpcups subj=system_u:system_r:cupsd_t:s0-s0:c0.c1023 key=(null) : :Hash: hpcups,cupsd_t,hplip_var_log_t,dir,search : :audit2allow : :#============= cupsd_t ============== :allow cupsd_t hplip_var_log_t:dir search; : :audit2allow -R : :#============= cupsd_t ============== :allow cupsd_t hplip_var_log_t:dir search; :
Created attachment 625699 [details] File: type
Created attachment 625700 [details] File: hashmarkername
hpijs-3.12.10-1.fc18.x86_64 I wonder why HPLIP has to have its own log directory?
Tim should it be labelled cups_var_log_t? And allow hplip_t to be able to write and or append to it? I am not sure why there is a hplip_t policy at all, should we just drop this and run everything as cupsd_t?
Same for F17.
This happens when I do the printer cleaning process from hplip-gui. Package: (null) OS Release: Fedora release 17 (Beefy Miracle)
The latest update created this problem. Before it worked fine. Package: (null) OS Release: Fedora release 17 (Beefy Miracle)
I sent a doc. to my printer from Gourmet Recipe Manager. The SELInux error icon then appeared. Package: (null) OS Release: Fedora release 17 (Beefy Miracle)
New hplip and new selinux-policy came in on Oct 13th. I got the AVC error when trying to print a page. Package: (null) OS Release: Fedora release 17 (Beefy Miracle)
IMHO hplip should be changed so that it uses $TMPDIR (/var/spool/cups/tmp) instead. This is the area for temporary files that should be used by CUPS filters and backends.
Occurs when printing Package: (null) OS Release: Fedora release 17 (Beefy Miracle)
1)Starting HP Device Manager. 2)Printing to Google Chrome Package: (null) OS Release: Fedora release 17 (Beefy Miracle)
Alert occurs every time I'm printing something Package: (null) OS Release: Fedora release 17 (Beefy Miracle)
hplip-3.12.10-3.a.fc18 has been submitted as an update for Fedora 18. https://admin.fedoraproject.org/updates/FEDORA-2012-15918/hplip-3.12.10-3.a.fc18
hplip-3.12.10-3.a.fc17 has been submitted as an update for Fedora 17. https://admin.fedoraproject.org/updates/hplip-3.12.10-3.a.fc17
hplip-3.12.10-3.a.fc16 has been submitted as an update for Fedora 16. https://admin.fedoraproject.org/updates/hplip-3.12.10-3.a.fc16
Occured while printing a document to an HP D7400 over wifi. Package: (null) OS Release: Fedora release 17 (Beefy Miracle)
Package hplip-3.12.10-3.a.fc17: * should fix your issue, * was pushed to the Fedora 17 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing hplip-3.12.10-3.a.fc17' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2012-16236/hplip-3.12.10-3.a.fc17 then log in and leave karma (feedback).
Link is wrong or actually version of file. Should be hplip-3.12.10-4.a.fc17. Once I did the above with the corrected file name I was able to print a 12 page PDF file without any SELinux Alert. Seems to be fixed at this time for me anyway.
Thanks. Correct instructions, for anyone else who would like to test: Package hplip-3.12.10-4.a.fc17: * should fix your issue, * was pushed to the Fedora 17 testing repository, * should be available at your local mirror. Update it with: # su -c 'yum update --enablerepo=updates-testing hplip-3.12.10-4.a.fc17' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2012-16236/hplip-3.12.10-4.a.fc17 then log in and leave karma (feedback).
Work for me.
Works for me, too.
Printed a page of an e-mail. Package: (null) OS Release: Fedora release 17 (Beefy Miracle)
This appears any time I print to one of my network based HP printers: HP Laserjet P2055dn in this case. The job does print, but this SELinux denial appears each time now. Package: (null) OS Release: Fedora release 17 (Beefy Miracle)
Printed a web page. Package: (null) OS Release: Fedora release 17 (Beefy Miracle)
hplip-3.12.10-4.a.fc18 has been pushed to the Fedora 18 stable repository. If problems still persist, please make note of it in this bug report.
Attempt to print on an HP printer. Package: (null) OS Release: Fedora release 17 (Beefy Miracle)
I turned on my HP printer after starting and logging into the computer. It seems this should be acceptable, though of course cups may be trying to do something it does not need to do, rather than selinux failing to allow something that should be done. Package: (null) OS Release: Fedora release 17 (Beefy Miracle)
hplip-3.12.10-4.a.fc16 has been pushed to the Fedora 16 stable repository. If problems still persist, please make note of it in this bug report.
*** Bug 881032 has been marked as a duplicate of this bug. ***