Bug 673846 - SELinux is preventing /usr/bin/python from 'search' accesses on the directory /root/.local.
Summary: SELinux is preventing /usr/bin/python from 'search' accesses on the directory...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 14
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:29244a03c72...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-01-30 21:33 UTC by Nikita Bige
Modified: 2011-02-03 20:49 UTC (History)
2 users (show)

Fixed In Version: selinux-policy-3.9.7-28.fc14
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-02-03 20:26:23 UTC
Type: ---


Attachments (Terms of Use)

Description Nikita Bige 2011-01-30 21:33:58 UTC
SELinux is preventing /usr/bin/python from 'search' accesses on the directory /root/.local.

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

If you believe that python should be allowed search access on the .local 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 certmaster /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:certmaster_t:s0
Target Context                system_u:object_r:gconf_home_t:s0
Target Objects                /root/.local [ dir ]
Source                        certmaster
Source Path                   /usr/bin/python
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           python-2.7-8.fc14.1
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.7-25.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 2.6.35.10-74.fc14.x86_64 #1 SMP Thu Dec
                              23 16:04:50 UTC 2010 x86_64 x86_64
Alert Count                   1
First Seen                    Mon 31 Jan 2011 12:27:30 AM MSK
Last Seen                     Mon 31 Jan 2011 12:27:30 AM MSK
Local ID                      8bc10bb1-8273-441e-aeec-384745158cb9

Raw Audit Messages
type=AVC msg=audit(1296422850.37:14): avc:  denied  { search } for  pid=2044 comm="certmaster" name=".local" dev=dm-0 ino=670526 scontext=system_u:system_r:certmaster_t:s0 tcontext=system_u:object_r:gconf_home_t:s0 tclass=dir


type=SYSCALL msg=audit(1296422850.37:14): arch=x86_64 syscall=stat success=no exit=ENOENT a0=6bcde0 a1=7fff0c4fcb00 a2=7fff0c4fcb00 a3=29 items=0 ppid=2043 pid=2044 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=certmaster exe=/usr/bin/python subj=system_u:system_r:certmaster_t:s0 key=(null)

Hash: certmaster,certmaster_t,gconf_home_t,dir,search

audit2allow

#============= certmaster_t ==============
allow certmaster_t gconf_home_t:dir search;

audit2allow -R

#============= certmaster_t ==============
allow certmaster_t gconf_home_t:dir search;

Comment 1 Miroslav Grepl 2011-01-31 13:45:12 UTC
You can dontaudit it for now using

# grep gconf_home_t /var/log/audit/audit.log | audit2allow -D -M mypol
# semodule -i mypol.pp

Comment 2 Miroslav Grepl 2011-02-02 09:36:38 UTC
Fixed in selinux-policy-3.9.7-28.fc14

Comment 3 Fedora Update System 2011-02-02 12:58:09 UTC
selinux-policy-3.9.7-28.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/selinux-policy-3.9.7-28.fc14

Comment 4 Fedora Update System 2011-02-02 19:31:22 UTC
selinux-policy-3.9.7-28.fc14 has been pushed to the Fedora 14 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update selinux-policy'.  You can provide feedback for this update here: https://admin.fedoraproject.org/updates/selinux-policy-3.9.7-28.fc14

Comment 5 Fedora Update System 2011-02-03 20:25:30 UTC
selinux-policy-3.9.7-28.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 6 Nikita Bige 2011-02-03 20:49:31 UTC
I think it is fixed


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