-
-
Notifications
You must be signed in to change notification settings - Fork 165
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
puppetboard has no explicit SELinux context for httpd #336
Comments
Would a simple addition of: selinux::fcontext {'puppetboard': suffice if $::puppetboard::manage_selinux is true? |
That does make Puppetboard stop throwing 500 Internal Server Error and probably would be enough for most use cases. However, if you're using SSL to connect to PuppetDB on a different server it can't verify the cert, because SELinux doesn't permit Apache to read any of the certs it uses to verify the connection ( |
* Set SELinux context for files in ${basedir}/puppetboard, if virtualenv is managed, set context for it too * Enable httpd_enable_cgi SELinux boolean to allow WSGI execution Fixes: voxpupuli#336, voxpupuli#365
* Add puppet/selinux to dependencies * Set SELinux context for files in ${basedir}/puppetboard, if virtualenv is managed, set context for it too * Enable httpd_enable_cgi SELinux boolean to allow WSGI execution Fixes: voxpupuli#336, voxpupuli#365
* Add puppet/selinux to dependencies * Set SELinux context for files in ${basedir}/puppetboard, if virtualenv is managed, set context for it too * Enable httpd_enable_cgi SELinux boolean to allow WSGI execution Fixes: voxpupuli#336, voxpupuli#365
* Add puppet/selinux to dependencies * Set SELinux context for files in ${basedir}/puppetboard, if virtualenv is managed, set context for it too * Enable httpd_enable_cgi SELinux boolean to allow WSGI execution Fixes: voxpupuli#336, voxpupuli#365
* Add puppet/selinux to dependencies * Set SELinux context for files in ${basedir}/puppetboard, if virtualenv is managed, set context for it too * Enable httpd_enable_cgi SELinux boolean to allow WSGI execution Fixes: voxpupuli#336, voxpupuli#365
* Add puppet/selinux to dependencies * Set SELinux context for files in ${basedir}/puppetboard, if virtualenv is managed, set context for it too * Enable httpd_enable_cgi SELinux boolean to allow WSGI execution Fixes: voxpupuli#336, voxpupuli#365
Affected Puppet, Ruby, OS and module versions/distributions
How to reproduce (e.g Puppet code you use)
Run puppet with puppetboard and default parameters
What are you seeing
puppetboard is installed correctly, but has a bad context to be used with httpd:
$> ls -Z drwxr-xr-x. puppetboard root system_u:object_r:var_t:s0 puppetboard
What behaviour did you expect instead
puppetboard should be under the
httpd_sys_content_t
context:$> ls -Z drwxr-xr-x. puppetboard root system_u:object_r:httpd_sys_content_t:s0 puppetboard
Any additional information you'd like to impart
A simple workaround is to manually run (which could be a security issue regarding some files)
However, this step could be optional if we explicit the SELinux context
Could be linked to #228 ?
The text was updated successfully, but these errors were encountered: