Bug 986625

Summary: SELinux is preventing /usr/sbin/glusterfsd from 'search' accesses on the directory net.
Product: [Fedora] Fedora Reporter: Marcel Wysocki <maci>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE 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:fdc68764062264d6085dad0ab17fbb32221d2db12478fe31688fa7626344201e
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-07-21 11:36:51 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:

Description Marcel Wysocki 2013-07-21 05:49:11 UTC
Description of problem:
systemctl start glusterd.service
SELinux is preventing /usr/sbin/glusterfsd from 'search' accesses on the directory net.

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

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

Additional Information:
Source Context                system_u:system_r:glusterd_t:s0-s0:c0.c1023
Target Context                system_u:object_r:sysctl_net_t:s0
Target Objects                net [ dir ]
Source                        glusterfs
Source Path                   /usr/sbin/glusterfsd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           glusterfs-3.4.0-0.9.beta4.fc19.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-65.fc19.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 3.9.9-302.fc19.x86_64 #1 SMP Sat
                              Jul 6 13:41:07 UTC 2013 x86_64 x86_64
Alert Count                   4
First Seen                    2013-07-21 00:41:51 CEST
Last Seen                     2013-07-21 07:47:35 CEST
Local ID                      983e3ff3-5983-42e1-b618-df8855f35e43

Raw Audit Messages
type=AVC msg=audit(1374385655.388:4663): avc:  denied  { search } for  pid=19864 comm="glusterfs" name="net" dev="proc" ino=7057 scontext=system_u:system_r:glusterd_t:s0-s0:c0.c1023 tcontext=system_u:object_r:sysctl_net_t:s0 tclass=dir


type=AVC msg=audit(1374385655.388:4663): avc:  denied  { net_admin } for  pid=19864 comm="glusterfs" capability=12  scontext=system_u:system_r:glusterd_t:s0-s0:c0.c1023 tcontext=system_u:system_r:glusterd_t:s0-s0:c0.c1023 tclass=capability


type=SYSCALL msg=audit(1374385655.388:4663): arch=x86_64 syscall=open success=yes exit=EAGAIN a0=7f9214b5a990 a1=0 a2=10 a3=0 items=0 ppid=1 pid=19864 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 ses=4294967295 tty=(none) comm=glusterfs exe=/usr/sbin/glusterfsd subj=system_u:system_r:glusterd_t:s0-s0:c0.c1023 key=(null)

Hash: glusterfs,glusterd_t,sysctl_net_t,dir,search

Additional info:
reporter:       libreport-2.1.5
hashmarkername: setroubleshoot
kernel:         3.9.9-302.fc19.x86_64
type:           libreport

Comment 1 Daniel Walsh 2013-07-21 11:36:51 UTC

*** This bug has been marked as a duplicate of bug 986624 ***