Felitaur Site
Offerings
|
   
|
SELinux General Issues
[Linux System Administration Homepage]
Overview |
Goals:
- Leave SElinux in Enforcing Mode
- httpd (apache) works
- httpd user directories (and include directories) work
- PHP and MySQL work
-
Files/directories covered:
Commands:
- ls -Z
- ps -Z
- yum install setroubleshoot
- sealert -a /var/log/audit/audit.log | less
- audit2allow -i /var/log/audit/audit.log
- getsebool -a
- setsebool -P httpd_read_user_content 1
- restorecon -R -v /path/to/directory
- chcon -R -t httpd_sys_content_t /path/to/directory
- semanage fcontext -l | grep (for context)
- semanage fcontext -a -t httpd_user_content_t '/home/username'
- semanage fcontext -a -t httpd_user_content_t '/home/username/public_html/(/.*)?'
|
Questions |
|
Activites |
|
References |
This page last updated on:
|
|
|