Open esdrasdemorais opened 1 year ago
I had a similar error, so I made some modification, and after that it is working like a charm.
**replace this* (cd selinux; make -f /usr/share/selinux/devel/Makefile) *****to that*** (cd selinux; checkmodule -M -m -o mongodb.mod mongodb.te)
It doesn't use the fc file at all, so I had to run these commands: chcon -R -t mongod_var_lib_t /var/lib/mongo chcon -R -t mongod_log_t /var/log/mongodb chcon -R -t mongod_runtime_t /run/mongodb
Be aware, that chcon rules are temporary! For permanent rules use these commands: semanage fcontext -a -t mongod_var_lib_t '/var/lib/mongo(./)?' semanage fcontext -a -t mongod_log_t '/var/log/mongodb(./)?' semanage fcontext -a -t mongod_runtime_t '/run/mongodb(./*)?'
Please, can you help me?