Bug 870769 - SELinux is preventing /usr/bin/mongod from 'read' accesses on the file cpuinfo_max_freq.
Summary: SELinux is preventing /usr/bin/mongod from 'read' accesses on the file cpuinf...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 18
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:fab44ac448017708a4396498d1c...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-10-28 16:06 UTC by Gerard Ryan
Modified: 2012-11-08 07:50 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-11-08 07:50:24 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: type (9 bytes, text/plain)
2012-10-28 16:06 UTC, Gerard Ryan
no flags Details
File: hashmarkername (14 bytes, text/plain)
2012-10-28 16:06 UTC, Gerard Ryan
no flags Details

Description Gerard Ryan 2012-10-28 16:06:08 UTC
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;
:

Comment 1 Gerard Ryan 2012-10-28 16:06:12 UTC
Created attachment 634566 [details]
File: type

Comment 2 Gerard Ryan 2012-10-28 16:06:14 UTC
Created attachment 634567 [details]
File: hashmarkername

Comment 3 Daniel Walsh 2012-10-30 20:07:30 UTC
Fixed in selinux-policy-3.11.1-48.fc18.noarch

Comment 4 Victor Costan 2012-11-02 10:09:25 UTC
This happened after I installed mongod. The access seems harmless to me.

Package: (null)
OS Release: Fedora release 18 (Spherical Cow)

Comment 5 Fedora Update System 2012-11-05 21:07:19 UTC
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

Comment 6 Fedora Update System 2012-11-06 18:55:36 UTC
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).

Comment 7 Victor Costan 2012-11-07 21:45:36 UTC
The bug seems to be fixed. Thank you, and sorry I can't close it!

Comment 8 Miroslav Grepl 2012-11-08 07:50:24 UTC
Thank you for testing.


Note You need to log in before you can comment on or make changes to this bug.