Bug 1461044
| Summary: | [SELINUX-RHEL6]statedump is not able to dump the file in /var/run/gluster because of SELinux permissions | |||
|---|---|---|---|---|
| Product: | [Red Hat Storage] Red Hat Gluster Storage | Reporter: | Vivek Das <vdas> | |
| Component: | samba | Assignee: | Michael Adam <madam> | |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Vivek Das <vdas> | |
| Severity: | unspecified | Docs Contact: | ||
| Priority: | unspecified | |||
| Version: | rhgs-3.3 | CC: | amukherj, anoopcs, rcyriac, rhinduja, rhs-smb | |
| Target Milestone: | --- | |||
| Target Release: | RHGS 3.3.0 | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | rhel-fix | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | ||
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1461064 (view as bug list) | Environment: | ||
| Last Closed: | 2017-09-25 11:22:43 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: | 1462824 | |||
| Bug Blocks: | 1417151 | |||
Version ------- samba-4.6.3-2.el6rhs.x86_64 glusterfs-server-3.8.4-27.el6rhs.x86_64 |
Description of problem: On a samba setup , if the statedump command is executed to collect the statedump on gfapi side , the file is not getting dumped to the location /var/run/gluster for RHEL6. After setting the SELinux to permissive , it was able to dump. Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1. Create a samba ctdb setup 2. mount a volume, run some I/O's 3. Run statedump command as following and check for the file: gluster volume statedump testvol client localhost:<smbd_pid> Actual results: The file is not getting dumped in default location due to SELINUX preventing smbd to access and write to /var/run/gluster. Expected results: statedump should get dumped in /var/run/gluster Additional info: type=AVC msg=audit(1497356412.330:397441): avc: denied { search } for pid=29363 comm="smbd" name="gluster" dev=dm-0 ino=1178243 scontext=unconfined_u:system_r:smbd_t:s0 tcontext=system_u:object_r:glusterd_var_run_t:s0 tclass=dir type=SYSCALL msg=audit(1497356412.330:397441): arch=c000003e syscall=2 success=no exit=-13 a0=7faca64bc170 a1=0 a2=1b6 a3=0 items=0 ppid=24626 pid=29363 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=50810 comm="smbd" exe="/usr/sbin/smbd" subj=unconfined_u:system_r:smbd_t:s0 key=(null) type=AVC msg=audit(1497356412.331:397442): avc: denied { search } for pid=29363 comm="smbd" name="gluster" dev=dm-0 ino=1178243 scontext=unconfined_u:system_r:smbd_t:s0 tcontext=system_u:object_r:glusterd_var_run_t:s0 tclass=dir type=SYSCALL msg=audit(1497356412.331:397442): arch=c000003e syscall=2 success=no exit=-13 a0=7faca64bc170 a1=0 a2=1b6 a3=0 items=0 ppid=24626 pid=29363 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=50810 comm="smbd" exe="/usr/sbin/smbd" subj=unconfined_u:system_r:smbd_t:s0 key=(null) type=AVC msg=audit(1497356412.331:397443): avc: denied { search } for pid=29363 comm="smbd" name="gluster" dev=dm-0 ino=1178243 scontext=unconfined_u:system_r:smbd_t:s0 tcontext=system_u:object_r:glusterd_var_run_t:s0 tclass=dir type=SYSCALL msg=audit(1497356412.331:397443): arch=c000003e syscall=2 success=no exit=-13 a0=7faca64be170 a1=c2 a2=180 a3=0 items=0 ppid=24626 pid=29363 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=50810 comm="smbd" exe="/usr/sbin/smbd" subj=unconfined_u:system_r:smbd_t:s0 key=(null) type=AVC msg=audit(1497356412.331:397444): avc: denied { search } for pid=29363 comm="smbd" name="gluster" dev=dm-0 ino=1178243 scontext=unconfined_u:system_r:smbd_t:s0 tcontext=system_u:object_r:glusterd_var_run_t:s0 tclass=dir