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

[DOC] Add some hints to enable gitea on selinux/Ubuntu/Fedora #10139

Open
guillep2k opened this issue Feb 4, 2020 · 4 comments
Open

[DOC] Add some hints to enable gitea on selinux/Ubuntu/Fedora #10139

guillep2k opened this issue Feb 4, 2020 · 4 comments

Comments

@guillep2k
Copy link
Member

@guillep2k guillep2k commented Feb 4, 2020

Users that attempt to install Gitea from binary on Fedora/Ubuntu/etc. may encounter several problems due to selinux. I'm not an expert on that, but I think we should add a couple of hints to the docs around this scenario.

Notes that might be useful:

(I might do this myself if I ever get time to investigate this setup).

@bagasme
Copy link
Contributor

@bagasme bagasme commented Feb 6, 2020

Disabling selinux for now?

@rmbleeker
Copy link

@rmbleeker rmbleeker commented Feb 10, 2020

I've having no issues running Gitea under its own user account on a host with selinux set to enforcing. To bind to ports 80 and 443 set CapabilityBoundingSet=CAP_NET_BIND_SERVICE and AmbientCapabilities=CAP_NET_BIND_SERVICE in the systemd unit file, they are commented out in the example unit file.
Other than that I'm running from a directory in /opt and haven't even looked at the selinux security contexts on the files in that directory.

@stale
Copy link

@stale stale bot commented Apr 11, 2020

This issue has been automatically marked as stale because it has not had recent activity. I am here to help clear issues left open even if solved or waiting for more insight. This issue will be closed if no further activity occurs during the next 2 weeks. If the issue is still valid just add a comment to keep it alive. Thank you for your contributions.

@stale stale bot added the stale label Apr 11, 2020
@stale
Copy link

@stale stale bot commented Apr 25, 2020

This issue has been automatically closed because of inactivity. You can re-open it if needed.

@stale stale bot closed this Apr 25, 2020
@zeripath zeripath reopened this Apr 25, 2020
@stale stale bot removed the stale label Apr 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.