Bug 976159

Summary: SELinux is preventing /usr/sbin/ns-slapd from 'read' accesses on the file unix.
Product: [Fedora] Fedora Reporter: Dean Hunter <deanhunter>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:014c20df01413c3b7db176ef019cb2651caaf6ff66b6165109e6d3c28d7d66d5
Fixed In Version: selinux-policy-3.12.1-57.fc19 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-07-04 00:55:31 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 978063    

Description Dean Hunter 2013-06-20 03:53:23 UTC
Description of problem:
This alert occurred while running ipa-server-install.
SELinux is preventing /usr/sbin/ns-slapd from 'read' accesses on the file unix.

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

If you believe that ns-slapd should be allowed read access on the unix 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 ns-slapd /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:dirsrv_t:s0
Target Context                system_u:object_r:proc_net_t:s0
Target Objects                unix [ file ]
Source                        ns-slapd
Source Path                   /usr/sbin/ns-slapd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           389-ds-base-1.3.1.2-1.fc19.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-52.fc19.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.9.6-301.fc19.x86_64 #1 SMP Mon
                              Jun 17 14:26:26 UTC 2013 x86_64 x86_64
Alert Count                   3
First Seen                    2013-06-19 22:49:19 CDT
Last Seen                     2013-06-19 22:49:38 CDT
Local ID                      e62fc189-dcfe-4e1a-baac-8f456c4a66c2

Raw Audit Messages
type=AVC msg=audit(1371700178.727:867): avc:  denied  { read } for  pid=3651 comm="ns-slapd" name="unix" dev="proc" ino=4026532002 scontext=system_u:system_r:dirsrv_t:s0 tcontext=system_u:object_r:proc_net_t:s0 tclass=file


type=SYSCALL msg=audit(1371700178.727:867): arch=x86_64 syscall=access success=no exit=EACCES a0=7fffb41eed40 a1=4 a2=7fffb41eed4e a3=400 items=0 ppid=1 pid=3651 auid=4294967295 uid=990 gid=989 euid=990 suid=990 fsuid=990 egid=989 sgid=989 fsgid=989 ses=4294967295 tty=(none) comm=ns-slapd exe=/usr/sbin/ns-slapd subj=system_u:system_r:dirsrv_t:s0 key=(null)

Hash: ns-slapd,dirsrv_t,proc_net_t,file,read

Additional info:
reporter:       libreport-2.1.5
hashmarkername: setroubleshoot
kernel:         3.9.6-301.fc19.x86_64
type:           libreport

Comment 1 Daniel Walsh 2013-06-20 17:51:35 UTC
2fbb4a9ed5384af9e32ab37fd5c66b356aa38e07 fixes this in git.

Comment 2 Dean Hunter 2013-06-25 20:10:54 UTC
The problem persists in selinux-policy-3.12.1-54.fc19.noarch.

Comment 3 Fedora Update System 2013-06-26 20:18:57 UTC
selinux-policy-3.12.1-57.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/selinux-policy-3.12.1-57.fc19

Comment 4 Fedora Update System 2013-06-27 15:49:22 UTC
Package selinux-policy-3.12.1-57.fc19:
* should fix your issue,
* was pushed to the Fedora 19 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-57.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-11846/selinux-policy-3.12.1-57.fc19
then log in and leave karma (feedback).

Comment 5 Martin Kosek 2013-06-28 06:05:31 UTC
*** Bug 978063 has been marked as a duplicate of this bug. ***

Comment 6 Dean Hunter 2013-07-02 18:21:42 UTC
I have verified that this update resolves the problem for me and I have updated the karma.

Comment 7 Fedora Update System 2013-07-04 00:55:31 UTC
selinux-policy-3.12.1-57.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.