Bug 979393 - SELinux is preventing /usr/bin/python2.7 from 'open' accesses on the file /usr/lib/python2.7/site-packages/sqlitedict-1.0.9-py2.7.egg.
SELinux is preventing /usr/bin/python2.7 from 'open' accesses on the file /us...
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
i686 Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Miroslav Grepl
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2013-06-28 08:14 EDT by i39d13bf
Modified: 2013-06-28 09:03 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2013-06-28 09:03:32 EDT
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 i39d13bf 2013-06-28 08:14:29 EDT
Description of problem:
SELinux is preventing /usr/bin/python2.7 from 'open' accesses on the file /usr/lib/python2.7/site-packages/sqlitedict-1.0.9-py2.7.egg.

*****  Plugin restorecon (99.5 confidence) suggests  *************************

If you want to fix the label. 
/usr/lib/python2.7/site-packages/sqlitedict-1.0.9-py2.7.egg default label should be lib_t.
Then you can run restorecon.
# /sbin/restorecon -v /usr/lib/python2.7/site-packages/sqlitedict-1.0.9-py2.7.egg

*****  Plugin catchall (1.49 confidence) suggests  ***************************

If you believe that python2.7 should be allowed open access on the sqlitedict-1.0.9-py2.7.egg file by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
allow this access for now by executing:
# grep smoltSendProfil /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:smoltclient_t:s0-s0:c0.c1023
Target Context                unconfined_u:object_r:user_tmp_t:s0
Target Objects                /usr/lib/python2.7/site-
                              packages/sqlitedict-1.0.9-py2.7.egg [ file ]
Source                        smoltSendProfil
Source Path                   /usr/bin/python2.7
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           python-2.7.3-7.2.fc17.i686
Target RPM Packages           
Policy RPM                    selinux-policy-3.10.0-169.fc17.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.8.13-100.fc17.i686 #1 SMP Mon
                              May 13 13:51:09 UTC 2013 i686 i686
Alert Count                   2
First Seen                    2013-06-27 10:20:02 CEST
Last Seen                     2013-06-27 10:20:02 CEST
Local ID                      3d11bbaa-a36c-46cd-84dc-1c2ab07ef6f4

Raw Audit Messages
type=AVC msg=audit(1372321202.111:1040): avc:  denied  { open } for  pid=9568 comm="smoltSendProfil" path="/usr/lib/python2.7/site-packages/sqlitedict-1.0.9-py2.7.egg" dev="sda2" ino=937308 scontext=system_u:system_r:smoltclient_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_tmp_t:s0 tclass=file

type=SYSCALL msg=audit(1372321202.111:1040): arch=i386 syscall=open success=no exit=EACCES a0=bfc7d790 a1=8000 a2=1b6 a3=824b408 items=0 ppid=9567 pid=9568 auid=999 uid=999 gid=999 euid=999 suid=999 fsuid=999 egid=999 sgid=999 fsgid=999 ses=128 tty=(none) comm=smoltSendProfil exe=/usr/bin/python2.7 subj=system_u:system_r:smoltclient_t:s0-s0:c0.c1023 key=(null)

Hash: smoltSendProfil,smoltclient_t,user_tmp_t,file,open


#============= smoltclient_t ==============
allow smoltclient_t user_tmp_t:file open;

audit2allow -R

#============= smoltclient_t ==============
allow smoltclient_t user_tmp_t:file open;

Additional info:
hashmarkername: setroubleshoot
kernel:         3.8.13-100.fc17.i686
type:           libreport
Comment 1 Daniel Walsh 2013-06-28 09:03:32 EDT
restorecon -R -v /usr

You have some mislabeled files under /usr/

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