Bug 783757 - SELinux is preventing /bin/ps from 'read' accesses on the fichier /etc/passwd.
Summary: SELinux is preventing /bin/ps from 'read' accesses on the fichier /etc/passwd.
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:aa3132239fc932da8cc3ba22221...
: 783758 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-01-22 11:21 UTC by Nicolas Mailhot
Modified: 2012-01-23 11:38 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-01-23 11:38:46 UTC
Type: ---


Attachments (Terms of Use)

Description Nicolas Mailhot 2012-01-22 11:21:37 UTC
libreport version: 2.0.8
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.2.1-8.fc17.x86_64
reason:         SELinux is preventing /bin/ps from 'read' accesses on the fichier /etc/passwd.
time:           dim. 22 janv. 2012 12:21:21 CET

description:
:SELinux is preventing /bin/ps from 'read' accesses on the fichier /etc/passwd.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that ps should be allowed read access on the passwd file 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 ps /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                system_u:system_r:mdadm_t:s0-s0:c0.c1023
:Target Context                system_u:object_r:passwd_file_t:s0
:Target Objects                /etc/passwd [ file ]
:Source                        ps
:Source Path                   /bin/ps
:Port                          <Inconnu>
:Host                          (removed)
:Source RPM Packages           procps-3.2.8-25.20110302git.fc17.x86_64
:Target RPM Packages           setup-2.8.47-1.fc17.noarch
:Policy RPM                    selinux-policy-3.10.0-76.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Permissive
:Host Name                     (removed)
:Platform                      Linux (removed) 3.2.1-8.fc17.x86_64 #1 SMP Thu Jan
:                              19 02:19:07 UTC 2012 x86_64 x86_64
:Alert Count                   1
:First Seen                    dim. 22 janv. 2012 01:00:08 CET
:Last Seen                     dim. 22 janv. 2012 01:00:08 CET
:Local ID                      105e9ae9-5579-4750-b383-9bae2f103f7f
:
:Raw Audit Messages
:type=AVC msg=audit(1327190408.114:1005): avc:  denied  { read } for  pid=8985 comm="ps" name="passwd" dev=dm-1 ino=94678 scontext=system_u:system_r:mdadm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:passwd_file_t:s0 tclass=filenode=(removed) type=AVC msg=audit(1327190408.114:1005): avc:  denied  { open } for  pid=8985 comm="ps" name="passwd" dev=dm-1 ino=94678 scontext=system_u:system_r:mdadm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:passwd_file_t:s0 tclass=file
:
:
:type=SYSCALL msg=audit(1327190408.114:1005): arch=x86_64 syscall=open success=yes exit=ENXIO a0=7fa2215db6ba a1=80000 a2=1b6 a3=238 items=0 ppid=8984 pid=8985 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=53 comm=ps exe=/bin/ps subj=system_u:system_r:mdadm_t:s0-s0:c0.c1023 key=(null)
:
:Hash: ps,mdadm_t,passwd_file_t,file,read
:
:audit2allow
:
:#============= mdadm_t ==============
:allow mdadm_t passwd_file_t:file { read open };
:
:audit2allow -R
:
:#============= mdadm_t ==============
:allow mdadm_t passwd_file_t:file { read open };
:

Comment 1 Miroslav Grepl 2012-01-23 11:29:13 UTC
*** Bug 783758 has been marked as a duplicate of this bug. ***

Comment 2 Miroslav Grepl 2012-01-23 11:38:46 UTC
Fixed in selinux-policy-3.10.0-77.fc17


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