Bug 1326716

Summary: [SElinux]: AVC denying read to "/var/lib/pcsd/pcsd.key" observed during gluster nfs-ganesha disable.
Product: Red Hat Gluster Storage Reporter: Shashank Raj <sraj>
Component: nfs-ganeshaAssignee: Kaleb KEITHLEY <kkeithle>
Status: CLOSED WONTFIX QA Contact: storage-qa-internal <storage-qa-internal>
Severity: high Docs Contact:
Priority: unspecified    
Version: rhgs-3.1CC: jthottan, kkeithle, mzywusko, ndevos, nlevinki, rhinduja, skoduri
Target Milestone: ---Keywords: Triaged, ZStream
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1326718 (view as bug list) Environment:
Last Closed: 2017-05-03 12:07:55 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:
Bug Depends On: 1326718    
Bug Blocks:    

Description Shashank Raj 2016-04-13 11:13:29 UTC
Description of problem:
[SElinux]: AVC denying read to "/var/lib/pcsd/pcsd.key" observed during gluster nfs-ganesha disable. but it doesnt affect any functionality. Tear down of ganesha works just fine.

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

[root@dhcp42-47 b0]# rpm -qa|grep glusterfs
glusterfs-3.7.9-2.el6rhs.x86_64
glusterfs-geo-replication-3.7.9-2.el6rhs.x86_64
glusterfs-libs-3.7.9-2.el6rhs.x86_64
glusterfs-client-xlators-3.7.9-2.el6rhs.x86_64
glusterfs-cli-3.7.9-2.el6rhs.x86_64
glusterfs-server-3.7.9-2.el6rhs.x86_64
glusterfs-ganesha-3.7.9-2.el6rhs.x86_64
glusterfs-api-3.7.9-2.el6rhs.x86_64
glusterfs-fuse-3.7.9-2.el6rhs.x86_64

[root@dhcp42-47 b0]# rpm -qa|grep ganesha
nfs-ganesha-2.3.1-2.el6rhs.x86_64
nfs-ganesha-gluster-2.3.1-2.el6rhs.x86_64
glusterfs-ganesha-3.7.9-2.el6rhs.x86_64

[root@dhcp42-47 b0]# rpm -qa|grep pcs
pcsc-lite-libs-1.5.2-15.el6.x86_64
pcs-0.9.139-9.el6.x86_64


How reproducible:
Always

Steps to Reproduce:
1.Create a 4 node cluster and configure ganesha on cluster.
2.Now do a gluster nfs-ganesha disable and observe that below AVC is seen in audit.log

type=AVC msg=audit(1460557717.262:2029): avc:  denied  { read } for  pid=32068 comm="fence_tool" path="/var/lib/pcsd/pcsd.key" dev=dm-0 ino=915918 scontext=unconfined_u:system_r:fenced_t:s0 tcontext=unconfined_u:object_r:var_lib_t:s0 tclass=file

type=AVC msg=audit(1460558390.304:2437): avc:  denied  { read } for  pid=3543 comm="fence_tool" path="/var/lib/pcsd/pcsd.key" dev=dm-0 ino=915918 scontext=unconfined_u:system_r:fenced_t:s0 tcontext=unconfined_u:object_r:var_lib_t:s0 tclass=file

Actual results:
Denial AVC seen for /var/lib/pcsd/pcsd.key during gluster nfs-ganesha disable but it doesnt affect any functionality. Tear down of ganesha works just fine.

Expected results:
There should not be any denial AVC in audit.log

Additional info: