Bug 1698743
Summary: | Mongodb-org policy violation | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Kostya Vasilyev <kmansoft> |
Component: | selinux-policy-targeted | Assignee: | Lukas Vrabec <lvrabec> |
Status: | CLOSED ERRATA | QA Contact: | Ben Levenson <benl> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 30 | CC: | dwalsh |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2019-04-27 21:27:03 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: |
Description
Kostya Vasilyev
2019-04-11 07:23:02 UTC
commit b78d1b1ed3768cb6241486b76edd9b473fe60e6f (HEAD -> rawhide) Author: Lukas Vrabec <lvrabec> Date: Thu Apr 11 10:12:28 2019 +0200 Allow mongod_t domain to lsearch in cgroups BZ(1698743) selinux-policy-3.14.3-31.fc30 has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-3055c546d6 Installed Packages selinux-policy.noarch 3.14.3-31.fc30 @@commandline selinux-policy-targeted.noarch 3.14.3-31.fc30 @@commandline Rebooted the system Did not help mongo ---- SELinux is preventing mongod from read access on the file memory.limit_in_bytes. ***** Plugin catchall (100. confidence) suggests ************************** If you believe that mongod should be allowed read access on the memory.limit_in_bytes file by default. Then you should report this as a bug. You can generate a local policy module to allow this access. Do allow this access for now by executing: # ausearch -c 'mongod' --raw | audit2allow -M my-mongod # semodule -X 300 -i my-mongod.pp Additional Information: Source Context system_u:system_r:mongod_t:s0 Target Context system_u:object_r:cgroup_t:s0 Target Objects memory.limit_in_bytes [ file ] Source mongod Source Path mongod Port <Unknown> Host frida Source RPM Packages Target RPM Packages Policy RPM selinux-policy-3.14.3-31.fc30.noarch Selinux Enabled True Policy Type targeted Enforcing Mode Enforcing Host Name frida Platform Linux frida 5.0.8-300.fc30.x86_64 #1 SMP Wed Apr 17 16:55:36 UTC 2019 x86_64 x86_64 Alert Count 38 First Seen 2019-04-15 21:22:28 MSK Last Seen 2019-04-20 14:16:55 MSK Local ID 45ae7f2c-4d2a-4253-928d-c02cb631101c Raw Audit Messages type=AVC msg=audit(1555759015.407:223): avc: denied { read } for pid=2024 comm="mongod" name="memory.limit_in_bytes" dev="cgroup" ino=10 scontext=system_u:system_r:mongod_t:s0 tcontext=system_u:object_r:cgroup_t:s0 tclass=file permissive=0 Hash: mongod,mongod_t,cgroup_t,file,read Installed Packages mongodb-org-server.x86_64 4.0.9-1.el7 @Mongodb mongodb-org-shell.x86_64 4.0.9-1.el7 @Mongodb On second sight, maybe the new violation is really new (i.e. not reported yet). Sorry about that. Perhaps previously it was "hidden" by the "tmpfs" violation? selinux-policy-3.14.3-31.fc30 has been pushed to the Fedora 30 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-3055c546d6 selinux-policy-3.14.3-31.fc30 has been pushed to the Fedora 30 stable repository. If problems still persist, please make note of it in this bug report. |