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

Scope of boolean 'httpd_can_network_connect' & Django SELinux permissions #402

Open
SomeAB opened this issue Jun 29, 2023 · 0 comments
Open

Comments

@SomeAB
Copy link

SomeAB commented Jun 29, 2023

Hello, I'm trying to understand the full scope of what enabling 'httpd_can_network_connect' does.

For context, I'm on Fedora38, HTTPD, Python, MariaDB stack. Trying to troubleshoot SELinux related issues I'm getting while setting up Django.

here is the paste of my terminal output on sudo sealert -a /var/log/audit/audit.log
https://paste.pythondiscord.com/yujolenaze

and this is when I do `sudo ausearch -i -m AVC (-ts recent gave me no results)
https://paste.pythondiscord.com/acoyohapat

One of the options I have is to enable 'httpd_can_network_connect' but in Redhat documentation, the definition of this boolean is a bit vague. It says:
When disabled, this Boolean prevents HTTP scripts and modules from initiating a connection to a network or remote port. Enable this Boolean to allow this access.

I am worried that it opens up httpd a bit too much. Specially looking at this answer over at ServerFault:
https://serverfault.com/questions/1020429/how-much-does-httpd-can-network-connect-being-set-to-1-actually-open-up-on-selin

Can someone explain what is the full scope.
Also (optional), what are the recommended solution .. while looking at my SELinux log. I'm only trying to install following its default values, default everything, using its documentation, which doesn't say anything about SELinux.

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

No branches or pull requests

1 participant