Bug 787381 - SELinux is preventing /usr/bin/python from 'read' accesses on the None /etc/passwd.
Summary: SELinux is preventing /usr/bin/python from 'read' accesses on the None /etc/p...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:703935e53fe9bd4c7a34a148ddb...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-04 16:55 UTC by Giovanni Campagna
Modified: 2012-02-06 12:39 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-02-06 12:39:32 UTC
Type: ---


Attachments (Terms of Use)

Description Giovanni Campagna 2012-02-04 16:55:06 UTC
libreport version: 2.0.8
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.3.0-0.rc2.git2.1.fc17.x86_64
reason:         SELinux is preventing /usr/bin/python from 'read' accesses on the None /etc/passwd.
time:           Sat 04 Feb 2012 05:53:59 PM CET

description:
:SELinux is preventing /usr/bin/python from 'read' accesses on the None /etc/passwd.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that python should be allowed read access on the passwd <Unknown> 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 firewalld /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                system_u:system_r:firewalld_t:s0
:Target Context                system_u:object_r:passwd_file_t:s0
:Target Objects                /etc/passwd [ None ]
:Source                        firewalld
:Source Path                   /usr/bin/python
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           python-2.7.2-18.fc17.x86_64
:Target RPM Packages           setup-2.8.47-1.fc17.noarch
:Policy RPM                    selinux-policy-3.10.0-81.2.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed)
:                              3.3.0-0.rc2.git2.1.fc17.x86_64 #1 SMP Thu Feb 2
:                              22:24:52 UTC 2012 x86_64 x86_64
:Alert Count                   1
:First Seen                    Sat 04 Feb 2012 05:51:22 PM CET
:Last Seen                     Sat 04 Feb 2012 05:51:22 PM CET
:Local ID                      9532d284-604c-41ed-929e-d14e8ea82fa4
:
:Raw Audit Messages
:type=AVC msg=audit(1328374282.284:98): avc:  denied  { read } for  pid=2015 comm="firewalld" name="passwd" dev="vda3" ino=404447 scontext=system_u:system_r:firewalld_t:s0 tcontext=system_u:object_r:passwd_file_t:s0 tclass=filenode=(removed) type=SYSCALL msg=audit(1328374282.284:98): arch=c000003e syscall=2 success=no exit=-13 a0=7ff27d8c36ba a1=80000 a2=1b6 a3=238 items=0 ppid=1 pid=2015 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="firewalld" exe="/usr/bin/python" subj=system_u:system_r:firewalld_t:s0 key=(null)
:
:
:Hash: firewalld,firewalld_t,passwd_file_t,None,read
:
:audit2allow
:
:
:audit2allow -R
:
:

Comment 1 Miroslav Grepl 2012-02-06 12:39:32 UTC
Not sure which part of firewalld needs this access but obviously is needed. firewalld does not start.


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