Bug 1331559
Summary: | [SELinux]: Cases in pynfs test suite fails because of selinux errors on RHEL 7 based RHGS. | |||
---|---|---|---|---|
Product: | [Red Hat Storage] Red Hat Gluster Storage | Reporter: | Shashank Raj <sraj> | |
Component: | nfs-ganesha | Assignee: | Soumya Koduri <skoduri> | |
Status: | CLOSED ERRATA | QA Contact: | surabhi <sbhaloth> | |
Severity: | urgent | Docs Contact: | ||
Priority: | unspecified | |||
Version: | rhgs-3.1 | CC: | amukherj, asrivast, bmohanra, jthottan, kkeithle, mgrepl, mmalik, mzywusko, ndevos, nlevinki, pprakash, rcyriac, rhinduja, skoduri | |
Target Milestone: | --- | Keywords: | Triaged | |
Target Release: | RHGS 3.2.0 | |||
Hardware: | x86_64 | |||
OS: | Linux | |||
Whiteboard: | ||||
Fixed In Version: | Doc Type: | Bug Fix | ||
Doc Text: |
Previously, SELinux blocked the gluster brick processes to create non-regular socket files. Due to this, users were unable to create socket type files on gluster volume. With this fix, SELinux rules have been added to provide relevant permissions to gluster brick process and files of type socket can be created on nfs mount of gluster volumes.
|
Story Points: | --- | |
Clone Of: | ||||
: | 1331561 1331585 1380695 (view as bug list) | Environment: | ||
Last Closed: | 2017-03-23 06:22:08 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: | 1331561, 1372191 | |||
Bug Blocks: | 1311843, 1351522 |
Description
Shashank Raj
2016-04-28 19:37:52 UTC
Since this bug has still not been approved for 7.2.z update and we don't have selinux builds for 3.1.3, verification of this bug is still pending and will be taken care once we get the required builds. Given BZ 1372191 has been already fixed, moving this BZ to ON_QA I am still seeing the AVC's mentioned in bz description with latest build. if I see the RHEL cloned BZ https://bugzilla.redhat.com/show_bug.cgi?id=1372191 it shows as fixed, what could be the reason that we are still hitting it in rhgs? the additional avc's are : type=SYSCALL msg=audit(11/17/2016 13:27:08.051:18981) : arch=x86_64 syscall=mknod success=no exit=EACCES(Permission denied) a0=0x7f48ac5db510 a1=block,755 a2=0x102 a3=0x7f48dbcecb70 items=0 ppid=1 pid=25498 auid=unset uid=root gid=root euid=root suid=root fsuid=root egid=root sgid=root fsgid=root tty=(none) ses=unset comm=glusterfsd exe=/usr/sbin/glusterfsd subj=system_u:system_r:glusterd_t:s0 key=(null) type=AVC msg=audit(11/17/2016 13:27:08.051:18981) : avc: denied { create } for pid=25498 comm=glusterfsd name=MKBLK scontext=system_u:system_r:glusterd_t:s0 tcontext=system_u:object_r:default_t:s0 tclass=blk_file ---- type=SYSCALL msg=audit(11/17/2016 13:27:08.071:18982) : arch=x86_64 syscall=mknod success=no exit=EACCES(Permission denied) a0=0x7f48ac6dc510 a1=fifo,755 a2=0x0 a3=0x7f48dbcecb70 items=0 ppid=1 pid=20642 auid=unset uid=root gid=root euid=root suid=root fsuid=root egid=root sgid=root fsgid=root tty=(none) ses=unset comm=glusterfsd exe=/usr/sbin/glusterfsd subj=system_u:system_r:glusterd_t:s0 key=(null) type=AVC msg=audit(11/17/2016 13:27:08.071:18982) : avc: denied { create } for pid=20642 comm=glusterfsd name=MKFIFO scontext=system_u:system_r:glusterd_t:s0 tcontext=system_u:object_r:default_t:s0 tclass=fifo_file type=SYSCALL msg=audit(11/17/2016 13:18:09.203:18908) : arch=x86_64 syscall=mknod success=no exit=EACCES(Permission denied) a0=0x7fb4ad3d5510 a1=character,755 a2=0x102 a3=0x7fb4d88f0b70 items=0 ppid=1 pid=14853 auid=unset uid=root gid=root euid=root suid=root fsuid=root egid=root sgid=root fsgid=root tty=(none) ses=unset comm=glusterfsd exe=/usr/sbin/glusterfsd subj=system_u:system_r:glusterd_t:s0 key=(null) type=AVC msg=audit(11/17/2016 13:18:09.203:18908) : avc: denied { create } for pid=14853 comm=glusterfsd name=char scontext=system_u:system_r:glusterd_t:s0 tcontext=system_u:object_r:default_t:s0 tclass=chr_file Marking the BZ to assigned. Verified it on a fresh setup with all selinux context set and no avc's are seen with pynfs test suite. Will move BZ to verified once it is moved to on_QA Verified it with latest build. NO SELinux AVC's are seen and pynfs test suite is passing on latest setup. Marking the BZ verified. Edited the doc text for the errata. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHEA-2017-0493.html The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days |