Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create selinux policy module for httpd webroot #328

Closed
jeff1evesque opened this issue Feb 10, 2016 · 1 comment
Closed

Create selinux policy module for httpd webroot #328

jeff1evesque opened this issue Feb 10, 2016 · 1 comment

Comments

@jeff1evesque
Copy link
Owner

We need to define the selinux system context for the webroot directory. Otherwise selinux will not allow httpd to render the corresponding drupal webpage(s).

Note: this means we will need to rebuild our vagrant base box, and update the corresponding atlas jeff1evesque/centos7x repository.

@jeff1evesque
Copy link
Owner Author

The following commands created our selinux policy modules, within the vagrant base box:

$ sudo yum install setroubleshoot
$ sudo setenforce permissive
# do a bunch of drupal operations, to log all the policies within the audit file, before performing the below
$ sudo grep httpd_t /var/log/audit/audit.log | audit2allow -M httpd_t

Then, we vagrant up, since enabling the selinux policy module, is incorporated within configure_httpd.pp.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant