-
-
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
Wrong SELinux type for wsgi.py, settings.py #365
Comments
d1nuc0m
pushed a commit
to d1nuc0m/puppet-puppetboard
that referenced
this issue
Apr 4, 2024
* 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
d1nuc0m
added a commit
to d1nuc0m/puppet-puppetboard
that referenced
this issue
Apr 5, 2024
* 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
d1nuc0m
added a commit
to d1nuc0m/puppet-puppetboard
that referenced
this issue
Apr 5, 2024
* 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
d1nuc0m
added a commit
to d1nuc0m/puppet-puppetboard
that referenced
this issue
May 13, 2024
* 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
d1nuc0m
added a commit
to d1nuc0m/puppet-puppetboard
that referenced
this issue
May 21, 2024
* 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
d1nuc0m
added a commit
to d1nuc0m/puppet-puppetboard
that referenced
this issue
May 21, 2024
* 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Affected Puppet, Ruby, OS and module versions/distributions
How to reproduce (e.g Puppet code you use)
What are you seeing
When SELinux is
enforcing
andmanage_selinux => true
:ausearch -m avc -i -ts recent
shows AVC errors Permission denied error from Puppetboard on the files/srv/puppetboard/puppetboard/settings.py
and/srv/puppetboard/puppetboard/wsgi.py
Manually running
chcon -t httpd_sys_script_exec_t /srv/puppetboard/puppetboard/settings.py /srv/puppetboard/puppetboard/wsgi.py
fixes the issue until Puppet runs again.What behaviour did you expect instead
The puppetboard module's classes should set all required SELinux contexts when
manage_selinux => true
Output log
Any additional information you'd like to impart
I don't know if the
httpd_sys_script_exec_t
context is universal; perhaps there should be some way to specify the SELinux context for these files.The text was updated successfully, but these errors were encountered: