Bug 1138371 - SELinux is preventing /usr/bin/python2.7 from 'search' accesses on the directory .
Summary: SELinux is preventing /usr/bin/python2.7 from 'search' accesses on the direct...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 20
Hardware: i686
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:52ec60881dbc11b510e856ba834...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-09-04 16:27 UTC by Ken Dubrick
Modified: 2015-03-10 00:55 UTC (History)
4 users (show)

Fixed In Version: selinux-policy-3.12.1-197.fc20
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-03-10 00:55:42 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Ken Dubrick 2014-09-04 16:27:56 UTC
Description of problem:
Installing HPLIP 3.14.6
SELinux is preventing /usr/bin/python2.7 from 'search' accesses on the directory .

*****  Plugin catchall (100. confidence) suggests   **************************

If you believe that python2.7 should be allowed search access on the  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 python /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:gconf_home_t:s0
Target Objects                 [ dir ]
Source                        python
Source Path                   /usr/bin/python2.7
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           python-2.7.5-13.fc20.i686
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-182.fc20.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.15.10-201.fc20.i686 #1 SMP Wed
                              Aug 27 21:33:30 UTC 2014 i686 i686
Alert Count                   1
First Seen                    2014-09-04 12:18:37 EDT
Last Seen                     2014-09-04 12:18:37 EDT
Local ID                      7da04245-5565-4ba4-832a-1f78f4e3f80a

Raw Audit Messages
type=AVC msg=audit(1409847517.315:1327): avc:  denied  { search } for  pid=25559 comm="python" name=".local" dev="sdb3" ino=3145742 scontext=system_u:system_r:cupsd_t:s0-s0:c0.c1023 tcontext=system_u:object_r:gconf_home_t:s0 tclass=dir


type=SYSCALL msg=audit(1409847517.315:1327): arch=i386 syscall=stat64 success=no exit=EACCES a0=9aaa7c8 a1=bfbf887c a2=4cde3000 a3=41d83520 items=0 ppid=25544 pid=25559 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/python2.7 subj=system_u:system_r:cupsd_t:s0-s0:c0.c1023 key=(null)

Hash: python,cupsd_t,gconf_home_t,dir,search

Additional info:
reporter:       libreport-2.2.3
hashmarkername: setroubleshoot
kernel:         3.15.10-201.fc20.i686
type:           libreport

Comment 1 Daniel Walsh 2015-01-03 16:12:28 UTC
Did cups work fine?

Comment 2 Daniel Walsh 2015-01-03 16:14:34 UTC
a1174be0a2b9eca0894d5b4d83593617f70466a6 dontaudits this in git.

Comment 3 Lukas Vrabec 2015-01-15 15:57:25 UTC
commit 24133e767eb28631607d6d296be1c72c763e347b
Author: Dan Walsh <dwalsh>
Date:   Sat Jan 3 11:14:08 2015 -0500

    userdom_dontaudit_search_user_home_content should not search through any homedirs and subdirs

Comment 4 Fedora Update System 2015-01-27 16:56:33 UTC
selinux-policy-3.12.1-197.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/selinux-policy-3.12.1-197.fc20

Comment 5 Fedora Update System 2015-01-30 04:41:30 UTC
Package selinux-policy-3.12.1-197.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.12.1-197.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-1398/selinux-policy-3.12.1-197.fc20
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2015-03-10 00:55:42 UTC
selinux-policy-3.12.1-197.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.


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