Bug 870769
| Summary: | SELinux is preventing /usr/bin/mongod from 'read' accesses on the file cpuinfo_max_freq. | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Gerard Ryan <fedora> | ||||||
| Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> | ||||||
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||
| Severity: | unspecified | Docs Contact: | |||||||
| Priority: | unspecified | ||||||||
| Version: | 18 | CC: | costan, dominick.grift, dwalsh, mgrepl | ||||||
| Target Milestone: | --- | ||||||||
| Target Release: | --- | ||||||||
| Hardware: | x86_64 | ||||||||
| OS: | Unspecified | ||||||||
| Whiteboard: | abrt_hash:fab44ac448017708a4396498d1c09b3b53387fa629f22d74b65dc7b7727c3948 | ||||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2012-11-08 07:50:24 UTC | Type: | --- | ||||||
| Regression: | --- | Mount Type: | --- | ||||||
| Documentation: | --- | CRM: | |||||||
| Verified Versions: | Category: | --- | |||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||
| Embargoed: | |||||||||
| Attachments: |
|
||||||||
Created attachment 634566 [details]
File: type
Created attachment 634567 [details]
File: hashmarkername
Fixed in selinux-policy-3.11.1-48.fc18.noarch This happened after I installed mongod. The access seems harmless to me. Package: (null) OS Release: Fedora release 18 (Spherical Cow) selinux-policy-3.11.1-50.fc18 has been submitted as an update for Fedora 18. https://admin.fedoraproject.org/updates/selinux-policy-3.11.1-50.fc18 Package selinux-policy-3.11.1-50.fc18: * should fix your issue, * was pushed to the Fedora 18 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing selinux-policy-3.11.1-50.fc18' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2012-17705/selinux-policy-3.11.1-50.fc18 then log in and leave karma (feedback). The bug seems to be fixed. Thank you, and sorry I can't close it! Thank you for testing. |
Additional info: libreport version: 2.0.17 kernel: 3.6.3-3.fc18.x86_64 description: :SELinux is preventing /usr/bin/mongod from 'read' accesses on the file cpuinfo_max_freq. : :***** Plugin catchall (100. confidence) suggests *************************** : :If you believe that mongod should be allowed read access on the cpuinfo_max_freq 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: :# grep mongod /var/log/audit/audit.log | audit2allow -M mypol :# semodule -i mypol.pp : :Additional Information: :Source Context system_u:system_r:mongod_t:s0 :Target Context system_u:object_r:sysfs_t:s0 :Target Objects cpuinfo_max_freq [ file ] :Source mongod :Source Path /usr/bin/mongod :Port <Unknown> :Host (removed) :Source RPM Packages mongodb-server-2.2.0-6.fc18.x86_64 :Target RPM Packages :Policy RPM selinux-policy-3.11.1-46.fc18.noarch :Selinux Enabled True :Policy Type targeted :Enforcing Mode Enforcing :Host Name (removed) :Platform Linux (removed) 3.6.3-3.fc18.x86_64 #1 SMP Tue Oct : 23 14:55:06 UTC 2012 x86_64 x86_64 :Alert Count 1 :First Seen 2012-10-28 16:03:34 GMT :Last Seen 2012-10-28 16:03:34 GMT :Local ID dde5debc-cc41-49b5-9a16-35dcb67266d5 : :Raw Audit Messages :type=AVC msg=audit(1351440214.351:522): avc: denied { read } for pid=20056 comm="mongod" name="cpuinfo_max_freq" dev="sysfs" ino=12937 scontext=system_u:system_r:mongod_t:s0 tcontext=system_u:object_r:sysfs_t:s0 tclass=file : : :type=SYSCALL msg=audit(1351440214.351:522): arch=x86_64 syscall=open success=no exit=EACCES a0=3800e3fe48 a1=0 a2=0 a3=7fff30e54b50 items=0 ppid=1 pid=20056 auid=4294967295 uid=989 gid=983 euid=989 suid=989 fsuid=989 egid=983 sgid=983 fsgid=983 tty=(none) ses=4294967295 comm=mongod exe=/usr/bin/mongod subj=system_u:system_r:mongod_t:s0 key=(null) : :Hash: mongod,mongod_t,sysfs_t,file,read : :audit2allow : :#============= mongod_t ============== :allow mongod_t sysfs_t:file read; : :audit2allow -R : :#============= mongod_t ============== :allow mongod_t sysfs_t:file read; :