Description of problem: Just ran yum update and during the mongo upgrade this happened. Additional info: libreport version: 2.0.16 kernel: 3.5.4-1.fc17.x86_64 description: :SELinux is preventing /usr/bin/mongod from 'getattr' accesses on the filesystem /. : :***** Plugin catchall (100. confidence) suggests *************************** : :If you believe that mongod should be allowed getattr access on the filesystem 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:fs_t:s0 :Target Objects / [ filesystem ] :Source mongod :Source Path /usr/bin/mongod :Port <Unknown> :Host (removed) :Source RPM Packages mongodb-server-2.2.0-6.fc17.x86_64 :Target RPM Packages filesystem-3-2.fc17.x86_64 :Policy RPM selinux-policy-3.10.0-153.fc17.noarch :Selinux Enabled True :Policy Type targeted :Enforcing Mode Enforcing :Host Name (removed) :Platform Linux (removed) 3.5.4-1.fc17.x86_64 #1 SMP Mon Sep : 17 15:03:59 UTC 2012 x86_64 x86_64 :Alert Count 1 :First Seen 2012-10-12 09:04:19 EEST :Last Seen 2012-10-12 09:04:19 EEST :Local ID f8625a39-bea7-42bb-a24b-a6db290c87c8 : :Raw Audit Messages :type=AVC msg=audit(1350021859.791:1728): avc: denied { getattr } for pid=5566 comm="mongod" name="/" dev="sda2" ino=2 scontext=system_u:system_r:mongod_t:s0 tcontext=system_u:object_r:fs_t:s0 tclass=filesystem : : :type=SYSCALL msg=audit(1350021859.791:1728): arch=x86_64 syscall=statfs success=no exit=EACCES a0=1fe88d8 a1=7fff1771d570 a2=1fe88c0 a3=7fff1771d430 items=0 ppid=5565 pid=5566 auid=4294967295 uid=992 gid=988 euid=992 suid=992 fsuid=992 egid=988 sgid=988 fsgid=988 tty=(none) ses=4294967295 comm=mongod exe=/usr/bin/mongod subj=system_u:system_r:mongod_t:s0 key=(null) : :Hash: mongod,mongod_t,fs_t,filesystem,getattr : :audit2allow : :#============= mongod_t ============== :allow mongod_t fs_t:filesystem getattr; : :audit2allow -R : :#============= mongod_t ============== :allow mongod_t fs_t:filesystem getattr; :
Created attachment 625804 [details] File: type
Created attachment 625805 [details] File: hashmarkername
cb6da25425ba18320c6c1af90fc06c91419e3da2 needs to be back ported.
I just installed and tried to start mongodb Package: (null) OS Release: Fedora release 18 (Spherical Cow)
Fixed. commit 0f73afee1e6be2883fd70bb1cb3211057ed81916 Author: Miroslav Grepl <mgrepl> Date: Wed Oct 17 08:48:35 2012 +0200 Allow mongodb_t to getattr on all file systems
selinux-policy-3.10.0-156.fc17 has been submitted as an update for Fedora 17. https://admin.fedoraproject.org/updates/selinux-policy-3.10.0-156.fc17
Package selinux-policy-3.10.0-156.fc17: * should fix your issue, * was pushed to the Fedora 17 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.10.0-156.fc17' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2012-16347/selinux-policy-3.10.0-156.fc17 then log in and leave karma (feedback).
selinux-policy-3.10.0-156.fc17 has been pushed to the Fedora 17 stable repository. If problems still persist, please make note of it in this bug report.