Bug 543030 - SELinux is preventing python (hplip_t) "write" usr_t.
Summary: SELinux is preventing python (hplip_t) "write" usr_t.
Keywords:
Status: CLOSED DUPLICATE of bug 538428
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 12
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:2bcda9c792d...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-12-01 14:44 UTC by Burnie West
Modified: 2009-12-01 14:51 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2009-12-01 14:51:16 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Burnie West 2009-12-01 14:44:59 UTC
Summary:

SELinux is preventing python (hplip_t) "write" 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:

You can generate a local policy module to allow this access - see FAQ
(http://fedora.redhat.com/docs/selinux-faq-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-s0:c0.c1023
Target Context                unconfined_u:object_r:usr_t:s0
Target Objects                /usr/share/hplip/prnt [ dir ]
Source                        python
Source Path                   /usr/bin/python
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           python-2.6-9.fc11
Target RPM Packages           
Policy RPM                    selinux-policy-3.6.12-80.fc11
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.29.6-217.2.16.fc11.x86_64 #1 SMP Mon Aug 24
                              17:17:40 EDT 2009 x86_64 x86_64
Alert Count                   12
First Seen                    Fri 04 Sep 2009 02:59:17 AM PDT
Last Seen                     Sat 05 Sep 2009 06:57:54 AM PDT
Local ID                      9cefb52d-5eb0-46db-a0c3-050d0db959a2
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1252159074.946:185): avc:  denied  { write } for  pid=5328 comm="python" name="prnt" dev=dm-0 ino=4850285 scontext=system_u:system_r:hplip_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:usr_t:s0 tclass=dir

node=(removed) type=SYSCALL msg=audit(1252159074.946:185): arch=c000003e syscall=2 success=no exit=-13 a0=7fff6bbe34b0 a1=2c1 a2=81ed a3=17c75e0 items=0 ppid=5326 pid=5328 auid=4294967295 uid=0 gid=7 euid=0 suid=0 fsuid=0 egid=7 sgid=7 fsgid=7 tty=(none) ses=4294967295 comm="python" exe="/usr/bin/python" subj=system_u:system_r:hplip_t:s0-s0:c0.c1023 key=(null)



Hash String generated from  selinux-policy-3.6.12-80.fc11,catchall,python,hplip_t,usr_t,dir,write
audit2allow suggests:

#============= hplip_t ==============
allow hplip_t usr_t:dir write;

Comment 1 Daniel Walsh 2009-12-01 14:51:16 UTC
restorecon -R -v /usr/share/hplip/prnt

*** This bug has been marked as a duplicate of bug 538428 ***


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