Bug 1553301

Summary: [Ganesha] Lots of Selinux AVC denied { search } for ganesha.nfsd process is been observed Post inservice upgrade from RHGS 3.3.1 [RHEL 7.4] to RHGS 3.3.1_Async [RHEL 7.5]
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Manisha Saini <msaini>
Component: nfs-ganeshaAssignee: Kaleb KEITHLEY <kkeithle>
Status: CLOSED WORKSFORME QA Contact: Manisha Saini <msaini>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rhgs-3.3CC: dang, ffilz, grajoria, jthottan, kkeithle, msaini, pasik, rhinduja, rhs-bugs, skoduri, storage-qa-internal
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1553303 (view as bug list) Environment:
Last Closed: 2019-03-18 09:36:26 UTC Type: Bug
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: 1553303    

Description Manisha Saini 2018-03-08 16:17:07 UTC
Description of problem:

Post inservice upgrade from RHGS 3.3.1 [Rhel 7.4] to RHGS 3.3.1_Async [Rhel 7.5] , Lots of Selinux AVC denied { search } for ganesha.nfsd process is been observed.


Version-Release number of selected component (if applicable):

# rpm -qa | grep selinux
selinux-policy-targeted-3.13.1-192.el7.noarch
selinux-policy-3.13.1-192.el7.noarch
libselinux-python-2.5-12.el7.x86_64
libselinux-2.5-12.el7.x86_64
libselinux-utils-2.5-12.el7.x86_64

# rpm -qa | grep ganesha
glusterfs-ganesha-3.8.4-54.1.el7rhgs.x86_64
nfs-ganesha-2.4.4-18.el7rhgs.x86_64
nfs-ganesha-gluster-2.4.4-18.el7rhgs.x86_64



How reproducible:
1/1

Steps to Reproduce:
1.Create RHGS 3.3.1, 4 node Ganesha cluster
2.Create and export 2 volumes.
3.Mount 2 volumes to 4 clients.
4.Run linux untars and Crefy (Crefy Io pattern -create,chmod,chown,chgrp,hardlink,symlink,truncate,rename)
5.While IO's are in process,perform inservice upgrade of all the 4 nodes.(Post each node upgrade,perform reboot)


Actual results:

Post inservice upgrade (Rhel 7.4 to Rhel 7.5),on all the 4 nodes,Selinux AVC denied { search } for ganesha.nfsd process is been observed

# cat /var/log/audit/audit.log | grep "search" | grep "AVC" | wc -l
225

# cat /var/log/audit/audit.log | grep "search"
type=AVC msg=audit(1520497331.671:112): avc:  denied  { search } for  pid=4600 comm="ganesha.nfsd" name="/" dev="fuse" ino=1 scontext=system_u:system_r:ganesha_t:s0 tcontext=system_u:object_r:fusefs_t:s0 tclass=dir
type=AVC msg=audit(1520497335.579:120): avc:  denied  { search } for  pid=5197 comm="ganesha.nfsd" name="/" dev="fuse" ino=1 scontext=system_u:system_r:ganesha_t:s0 tcontext=system_u:object_r:fusefs_t:s0 tclass=dir
type=AVC msg=audit(1520497339.089:126): avc:  denied  { search } for  pid=5889 comm="ganesha.nfsd" name="/" dev="fuse" ino=1 scontext=system_u:system_r:ganesha_t:s0 tcontext=system_u:object_r:fusefs_t:s0 tclass=dir
type=AVC msg=audit(1520497342.480:134): avc:  denied  { search } for  pid=6972 comm="ganesha.nfsd" name="/" dev="fuse" ino=1 scontext=system_u:system_r:ganesha_t:s0 tcontext=system_u:object_r:fusefs_t:s0 tclass=dir
type=AVC msg=audit(1520497346.027:140): avc:  denied  { search } for  pid=8135 comm="ganesha.nfsd" name="/" dev="fuse" ino=1 scontext=system_u:system_r:ganesha_t:s0 tcontext=system_u:object_r:fusefs_t:s0 tclass=dir




Expected results:

No AVC's should be observed post upgrade to RHEL 7.5

Additional info:

No Fuctionality impact is been observed post upgrade