Bug 1204024
| Summary: | Missing policy for mongodb | |||
|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Marek Skalický <mskalick> | |
| Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> | |
| Status: | CLOSED ERRATA | QA Contact: | Milos Malik <mmalik> | |
| Severity: | high | Docs Contact: | ||
| Priority: | high | |||
| Version: | 7.2 | CC: | admiller, bgollahe, dominick.grift, dwalsh, extras-qa, hhorak, jdornak, jherrman, jim, johan.o.hedin, jpacner, lvrabec, mgrepl, mmalik, mskalick, nathaniel, plautrba, pvrabec, ssekidde, strobert, tdawson | |
| Target Milestone: | rc | Keywords: | ZStream | |
| Target Release: | --- | |||
| Hardware: | x86_64 | |||
| OS: | Linux | |||
| Whiteboard: | ||||
| Fixed In Version: | selinux-policy-3.13.1-24.el7 | Doc Type: | Bug Fix | |
| Doc Text: |
Prior to this update, when using SELinux in Enforcing mode, certain commands in the mongo shell failed due to an incomplete MongoDB policy. This update adjusts the MongoDB policy to address this problem, and the impacted commands now work in the mongo shell as expected.
|
Story Points: | --- | |
| Clone Of: | 1174740 | |||
| : | 1212970 (view as bug list) | Environment: | ||
| Last Closed: | 2015-11-19 10:27:10 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: | 1174740 | |||
| Bug Blocks: | 1208765, 1212970 | |||
|
Description
Marek Skalický
2015-03-20 07:47:25 UTC
Since we encounter this issue in rh-mongodb26-mongodb in RHSCL-2.0, we need to handle it somehow there *very soon*, but I'm not sure if this fix gets into selinux-policy soon enough. Mirku, is there any work-around we can use in mongodb deamon right now? Or is there any way user can allow it himself?
I'm not sure if this is the right way to work-around it:
#> cat local.te
module local 1.0;
require {
type mongod_t;
class process execmem;
}
#============= mongod_t ==============
allow mongod_t self:process execmem;
#> checkmodule -M -m -o local.mod local.te
#> semodule_package -o local.pp -m local.mod
#> semodule -i local.pp
And if we can advice something like that until it get fixed in selinux-policy.
Just FTR there is not problem in RHEL-6, because RHEL-6 policy allows it by default. No need to enable any booleans.
# rpm -qa selinux-policy\*
selinux-policy-3.7.19-262.el6.noarch
selinux-policy-targeted-3.7.19-262.el6.noarch
selinux-policy-mls-3.7.19-262.el6.noarch
selinux-policy-doc-3.7.19-262.el6.noarch
selinux-policy-minimum-3.7.19-262.el6.noarch
# sesearch -s mongod_t -t mongod_t -c process -A -C -p execmem
Found 3 semantic av rules:
allow mongod_t mongod_t : process { fork transition sigchld signal getsched setsched execmem } ;
ET allow mongod_t mongod_t : process execmem ; [ allow_execmem ]
ET allow mongod_t mongod_t : process { execmem execstack } ; [ allow_execstack ]
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-2015-2300.html |