Configure SELinux with semanage on Centos

You can manage your SELinux configuration on run time with “semanage” without rebooting the server.To install semanage you’ve install “policycoreutils-python”

$ sudo yum -y install policycoreutils-python

Permission for mongodb on port 27017
$ sudo semanage port -a -t mongod_port_t -p tcp 27017

For Http server SELinux policy make permissive
$ sudo semanage permissive -a httpd_t

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s