Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/supersonictw/se_nginx
A SELinux module for NGINX to write/delete files.
https://github.com/supersonictw/se_nginx
nginx nginx-linux selinux selinux-policy
Last synced: about 2 months ago
JSON representation
A SELinux module for NGINX to write/delete files.
- Host: GitHub
- URL: https://github.com/supersonictw/se_nginx
- Owner: supersonictw
- License: mit
- Created: 2018-08-23T07:59:50.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-08-25T01:29:58.000Z (4 months ago)
- Last Synced: 2024-08-25T02:35:33.639Z (4 months ago)
- Topics: nginx, nginx-linux, selinux, selinux-policy
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SE_NGINX
A SELinux module for NGINX to write/delete files.
## Before
Check your machine by
```shell
getenforce
```If you got "Permissive" or nothing, it means your SELinux has been disabled or uninstalled.
## Installation
If SELinux has been install on your machine, follow these step to unblock the limit to access files in web directory for NGINX.
- Login as `root`, and clone the repository, then type:
```shell
checkmodule -M -m -o se_nginx.mod se_nginx.te
semodule_package -o se_nginx.pp -m se_nginx.mod
semodule -i se_nginx.pp
```- Check your NGINX can write and delete files to web directory on the SELinux machine which enabled
- If your NGINX still could not access any files, login as `root` and go to your web directory, type:
```shell
chcon -R -t httpd_sys_content_t *
```## LICENSE
[MIT License](LICENSE)
> Enjoy to use ;)