Fedora Linux Support Community & Resources Center
  #1  
Old 1st August 2008, 03:29 AM
keith82 Offline
Registered User
 
Join Date: Aug 2008
Posts: 4
Printing Setup troubleshoot

Hi i Have encountered some problems using my HP 845c.

I have successfully install the drivers but each time i want to print it would give me this message.

Can anyone help me on this error??


Summary:

SELinux is preventing python (hplip_t) "write" to ./prnt (usr_t).

Detailed Description:

SELinux denied access requested by python. It is not expected that this access
is required by python and this access may signal an intrusion attempt. It is
also possible that the specific version or configuration of the application is
causing it to require additional access.

Allowing Access:

Sometimes labeling problems can cause SELinux denials. You could try to restore
the default system file context for ./prnt,

restorecon -v './prnt'

If this does not work, there is currently no automatic way to allow this access.
Instead, you can generate a local policy module to allow this access - see FAQ
(http://fedora.redhat.com/docs/selinu...fc5/#id2961385) Or you can disable
SELinux protection altogether. Disabling SELinux protection is not recommended.
Please file a bug report (http://bugzilla.redhat.com/bugzilla/enter_bug.cgi)
against this package.

Additional Information:

Source Context system_u:system_r:hplip_t:s0
Target Context system_u:object_r:usr_t:s0
Target Objects ./prnt [ dir ]
Source python
Source Path /usr/bin/python
Port <Unknown>
Host localhost.localdomain
Source RPM Packages python-2.5.1-15.fc8
Target RPM Packages
Policy RPM selinux-policy-3.0.8-44.fc8
Selinux Enabled True
Policy Type targeted
MLS Enabled True
Enforcing Mode Enforcing
Plugin Name catchall_file
Host Name localhost.localdomain
Platform Linux localhost.localdomain 2.6.25.11-60.fc8 #1
SMP Mon Jul 21 02:06:29 EDT 2008 i686 i686
Alert Count 12
First Seen Fri 01 Aug 2008 08:38:39 AM EDT
Last Seen Fri 01 Aug 2008 08:38:44 AM EDT
Local ID 9e9979b2-6507-4275-bcec-8244f8b59c04
Line Numbers

Raw Audit Messages

host=localhost.localdomain type=AVC msg=audit(1217594324.740:63): avc: denied { write } for pid=2634 comm="python" name="prnt" dev=dm-0 ino=1147775 scontext=system_u:system_r:hplip_t:s0 tcontext=system_u:object_r:usr_t:s0 tclass=dir

host=localhost.localdomain type=SYSCALL msg=audit(1217594324.740:63): arch=40000003 syscall=10 success=no exit=-13 a0=bff792d7 a1=1 a2=5b77794 a3=93216a8 items=0 ppid=2633 pid=2634 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="python" exe="/usr/bin/python" subj=system_u:system_r:hplip_t:s0 key=(null)
Reply With Quote
  #2  
Old 2nd August 2008, 09:51 AM
marcrblevins's Avatar
marcrblevins Offline
Registered User
 
Join Date: Jun 2006
Location: Texas
Age: 42
Posts: 4,168
hplip is the correct one to use, not sure why you would have Selinux problems. It was solid.
I also use CUPS to add my HP printers in Firefox:
Code:
http://localhost:631
Reply With Quote
  #3  
Old 3rd August 2008, 04:53 AM
keith82 Offline
Registered User
 
Join Date: Aug 2008
Posts: 4
I have managed to print by disabling the selinux management, though this configuration is not recommended but how can i enable my printer and selinux management at the same time?
Reply With Quote
  #4  
Old 6th August 2008, 01:28 AM
ogetbilo's Avatar
ogetbilo Offline
RPMFusion Dev
 
Join Date: May 2004
Location: PA
Age: 34
Posts: 466
I got the same problem. If anyone has a solution I'm all ears.
__________________
oget, the "Pulse against"

Thnigs that rule: Angelina, TKT, Linux, Supergravity, Alcohol...
Reply With Quote
  #5  
Old 6th August 2008, 03:52 AM
keith82 Offline
Registered User
 
Join Date: Aug 2008
Posts: 4
goto http://localhost:631 and you can configure the printing
Reply With Quote
  #6  
Old 6th August 2008, 04:57 AM
ogetbilo's Avatar
ogetbilo Offline
RPMFusion Dev
 
Join Date: May 2004
Location: PA
Age: 34
Posts: 466
What do you mean by "configure the printing"? It is already configured and runs fine with selinux in permissive mode. It doesn't work when selinux is enforcing.
__________________
oget, the "Pulse against"

Thnigs that rule: Angelina, TKT, Linux, Supergravity, Alcohol...
Reply With Quote
  #7  
Old 8th August 2008, 10:22 PM
dhimes Offline
Registered User
 
Join Date: Jan 2008
Location: Marblehead MA USA
Posts: 296
Mine doesn't work even with SELinux disabled.
Reply With Quote
Reply

Tags
printing, setup, troubleshoot

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
hp-setup instead of buiilt in Printing config? daviddoria Using Fedora 1 19th February 2009 07:10 PM
Setup Printing Solution litter73 Hardware & Laptops 0 2nd December 2008 03:06 AM
Need help with VMware troubleshoot axe_2_grind Installation and Live Media 2 10th March 2008 10:19 PM
Trying to setup printing using Linksys WPS54G Wireless PrintServer hedgert Using Fedora 2 28th October 2005 10:56 AM
Printing Setup Question jdpnola Using Fedora 1 9th June 2005 01:38 AM


Current GMT-time: 04:39 (Thursday, 20-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat