Description of problem: On a fresh F24 installation I am unable to start mongod with SELinux in enforcing mode. Version-Release number of selected component (if applicable): mongodb-server-3.2.6-2.fc24.x86_64 How reproducible: Every time. Steps to Reproduce: 1. $ sudo dnf install -y mongodb-server 2. $ sudo systemctl start mongod Actual results: $ sudo systemctl start mongod Job for mongod.service failed because a fatal signal was delivered to the control process. See "systemctl status mongod.service" and "journalctl -xe" for details. Expected results: Mongod should start Additional info: $ sudo grep mongo /var/log/audit/audit.log type=AVC msg=audit(1464294964.308:135): avc: denied { execmem } for pid=805 comm="mongod" scontext=system_u:system_r:init_t:s0 tcontext=system_u:system_r:init_t:s0 tclass=process permissive=0 type=ANOM_ABEND msg=audit(1464294964.308:136): auid=4294967295 uid=184 gid=991 ses=4294967295 subj=system_u:system_r:init_t:s0 pid=805 comm="mongod" exe="/usr/bin/mongod" sig=11 type=SERVICE_START msg=audit(1464294964.313:137): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=mongod comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed' $ sudo audit2allow -al #============= init_t ============== allow init_t self:process execmem;
Hello Nathan! It looks like https://bodhi.fedoraproject.org/updates/FEDORA-2016-eae91c887b fixes this issue too. I'll go ahead and mark this as MODIFIED, but you may want to add it to the Bodhi update. Thanks for fixing this before I even reported it!
According to Bodhi, it looks like Marek Skalický fixed this issue. Thanks!
Hi Randy, thanks for testing MongoDB and reporting issues! I've added this bug to Bodhi update.
mongodb-3.2.6-4.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-eae91c887b
mongodb-3.2.6-4.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.