Bug 1312809
| Summary: | [SELinux]: Found avc of type=USER_AVC for class dbus during glusterfs-ganesha validation -RHEL7 | |||
|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Apeksha <akhakhar> | |
| Component: | selinux-policy | Assignee: | Lukas Vrabec <lvrabec> | |
| Status: | CLOSED ERRATA | QA Contact: | Milos Malik <mmalik> | |
| Severity: | urgent | Docs Contact: | Marie Hornickova <mdolezel> | |
| Priority: | high | |||
| Version: | 7.2 | CC: | akhakhar, bugs, jthottan, kkeithle, lvrabec, mdolezel, mgrepl, mkolaja, mmalik, ndevos, plautrba, pprakash, pvrabec, rhinduja, skoduri, sraj, ssekidde | |
| Target Milestone: | rc | Keywords: | ZStream | |
| Target Release: | --- | |||
| Hardware: | x86_64 | |||
| OS: | Linux | |||
| Whiteboard: | ||||
| Fixed In Version: | selinux-policy-3.13.1-70.el7 | Doc Type: | Bug Fix | |
| Doc Text: |
When the nfs-ganesha server was set up on four nodes with 2X2 volume, the volume was not exported after the nfs-ganesha service was enabled. With this update, a workaround has been provided which ensures that the volume is exported as expected in the described scenario.
|
Story Points: | --- | |
| Clone Of: | 1311911 | |||
| : | 1333903 (view as bug list) | Environment: | ||
| Last Closed: | 2016-11-04 02:43:42 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: | 1321786, 1333903 | |||
|
Description
Apeksha
2016-02-29 09:48:44 UTC
Here is a workaround, which works in enforcing mode: # setenforce 1 # cat bz1312809.te policy_module(bz1312809,1.0) require { type glusterd_t; type initrc_t; class dbus { send_msg }; } allow glusterd_t initrc_t:dbus send_msg; # make -f /usr/share/selinux/devel/Makefile Compiling targeted bz1312809 module /usr/bin/checkmodule: loading policy configuration from tmp/bz1312809.tmp /usr/bin/checkmodule: policy configuration loaded /usr/bin/checkmodule: writing binary representation (version 10) to tmp/bz1312809.mod Creating targeted bz1312809.pp policy package # semodule -i bz1312809.pp # The /usr/share/selinux/devel/Makefile file comes from selinux-policy-devel package. Comment#2 captures output from RHEL-6.8. Here is the output from RHEL-7.2: # cat bz1312809.te policy_module(bz1312809,1.0) require { type glusterd_t; type initrc_t; class dbus { send_msg }; } allow glusterd_t initrc_t:dbus { send_msg }; # make -f /usr/share/selinux/devel/Makefile Compiling targeted bz1312809 module /usr/bin/checkmodule: loading policy configuration from tmp/bz1312809.tmp /usr/bin/checkmodule: policy configuration loaded /usr/bin/checkmodule: writing binary representation (version 17) to tmp/bz1312809.mod Creating targeted bz1312809.pp policy package rm tmp/bz1312809.mod tmp/bz1312809.mod.fc # semodule -i bz1312809.pp # Thanks for the workaround. I verified the same on RHEL 7.2 configured RHGS nodes and it solves the problem. After applying the above policy, i am able to export the volumes. Hi, Can I get some testing machine? 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/RHBA-2016-2283.html |