Bug 1326716 - [SElinux]: AVC denying read to "/var/lib/pcsd/pcsd.key" observed during gluster nfs-ganesha disable.
Summary: [SElinux]: AVC denying read to "/var/lib/pcsd/pcsd.key" observed during glust...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat
Component: nfs-ganesha
Version: rhgs-3.1
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
: ---
Assignee: Kaleb KEITHLEY
QA Contact: storage-qa-internal@redhat.com
URL:
Whiteboard:
Depends On: 1326718
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-04-13 11:13 UTC by Shashank Raj
Modified: 2017-05-03 12:07 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1326718 (view as bug list)
Environment:
Last Closed: 2017-05-03 12:07:55 UTC
Target Upstream Version:


Attachments (Terms of Use)

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:


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