Project

Profile

Help

Task #1130

closed

File a bug against EPEL7: Mongodb not starting with selinux enabled on el7

Added by pthomas@redhat.com almost 9 years ago. Updated about 5 years ago.

Status:
CLOSED - NOTABUG
Priority:
Normal
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Platform Release:
Groomed:
Yes
Sprint Candidate:
Yes
Tags:
Easy Fix, Pulp 2
Sprint:
Quarter:

Description

mongodb fails to start with selinux enabled on el7

[root@lenovo-x3850-02 ~]# rpm -qa |grep mongo
mongodb-server-2.6.9-1.el7.x86_64
python-mongoengine-0.9.0-1.el7.noarch
python-pymongo-gridfs-2.7.2-1.el7.x86_64
python-pymongo-2.7.2-1.el7.x86_64
[root@lenovo-x3850-02 ~]# 
2015-07-08T13:24:02.305-0400 [initandlisten] ERROR: listen(): bind() failed errno:13 Permission denied for socket: /var/run/mongodb/mongodb-27017.sock
< type=AVC msg=audit(1436377400.894:300): avc:  denied  { setattr } for  pid=29959 comm="mongod" name="mongodb-27017.sock" dev="tmpfs" ino=111763 scontext=system_u:system_r:mongod_t:s0 tcontext=system_u:object_r:mongod_var_run_t:s0 tclass=sock_file

Also available in: Atom PDF