This service will be undergoing maintenance at 00:00 UTC, 2017-10-23 It is expected to last about 30 minutes
Bug 425766 - printing blocked
printing blocked
Product: Fedora
Classification: Fedora
Component: selinux-policy-targeted (Show other bugs)
i386 Linux
low Severity urgent
: ---
: ---
Assigned To: Daniel Walsh
Ben Levenson
Depends On:
  Show dependency treegraph
Reported: 2007-12-15 02:48 EST by Robert McLachlan
Modified: 2008-01-30 14:07 EST (History)
0 users

See Also:
Fixed In Version: Current
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2008-01-30 14:07:12 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Robert McLachlan 2007-12-15 02:48:25 EST
Description of problem:
Every time I try to print this SELinux error keeps popping up.

Version-Release number of selected component (if applicable):

Fedora 7
How reproducible:
trying to print

Steps to Reproduce:
Actual results:

Expected results:

Additional info:Summary
    SELinux is preventing sh (cupsd_t) "getattr" to /usr/bin/hpijs

Detailed Description
    SELinux denied access requested by sh. It is not expected that this access
    is required by sh 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 /usr/bin/hpijs, restorecon -v
    /usr/bin/hpijs 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
    Or you can disable SELinux protection altogether. Disabling SELinux
    protection is not recommended. Please file a against this package.

Additional Information        

Source Context                system_u:system_r:cupsd_t:SystemLow-SystemHigh
Target Context                system_u:object_r:hplip_exec_t
Target Objects                /usr/bin/hpijs [ file ]
Affected RPM Packages         hpijs-1.7.4a-6.fc7 [target]
Policy RPM                    selinux-policy-2.6.4-61.fc7
Selinux Enabled               True
Policy Type                   targeted
MLS Enabled                   True
Enforcing Mode                Enforcing
Plugin Name                   plugins.catchall_file
Host Name                     localhost.localdomain
Platform                      Linux localhost.localdomain #1 SMP
                              Thu Nov 22 23:05:33 EST 2007 i686 i686
Alert Count                   3
First Seen                    Fri 14 Dec 2007 03:36:03 PM PST
Last Seen                     Fri 14 Dec 2007 03:41:24 PM PST
Local ID                      2b5fec98-c135-44d1-b279-23b828c267f3
Line Numbers                  

Raw Audit Messages            

avc: denied { getattr } for comm="sh" dev=dm-0 egid=7 euid=4 exe="/bin/bash"
exit=-13 fsgid=7 fsuid=4 gid=7 items=0 path="/usr/bin/hpijs" pid=16130
scontext=system_u:system_r:cupsd_t:s0-s0:c0.c1023 sgid=7
subj=system_u:system_r:cupsd_t:s0-s0:c0.c1023 suid=4 tclass=file
tcontext=system_u:object_r:hplip_exec_t:s0 tty=(none) uid=4
Comment 1 Robert McLachlan 2007-12-15 02:49:13 EST
Please help me fix this. I really, really need my printer to work for my business.

Thank you,

Robert McLachlan
Comment 2 Daniel Walsh 2007-12-18 10:47:59 EST
You can allow this for now by executing 

Put machine in permissive mode.
# setenforce 0
print something

# audit2allow -M mypol -i /var/log/audit/audit.log 
# semodule -i mypol.pp
# setenforce 1

You should be able to print.
Fixed in selinux-policy-2.6.4-63.fc7
Comment 3 Daniel Walsh 2008-01-30 14:07:12 EST
Bulk closing a old selinux policy bugs that were in the modified state.  If the
bug is still not fixed.  Please reopen.

Note You need to log in before you can comment on or make changes to this bug.