chuleta_selinux
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| chuleta_selinux [2019/12/12 09:43] – etfiat | chuleta_selinux [2023/02/20 13:17] (current) – [Selinux para apache] etfiat | ||
|---|---|---|---|
| Line 22: | Line 22: | ||
| seinfo -r | seinfo -r | ||
| + | |||
| + | ==== Selinux para apache ==== | ||
| + | |||
| + | === Permitir a apache leer y escribir en un directorio === | ||
| < | < | ||
| chcon -R -t httpd_sys_rw_content_t / | chcon -R -t httpd_sys_rw_content_t / | ||
| </ | </ | ||
| + | |||
| + | === Hacer cambios permanentes === | ||
| < | < | ||
| Line 32: | Line 38: | ||
| + | === Permitir mysql remoto === | ||
| + | < | ||
| + | setsebool httpd_can_network_connect_db 1 # Temporal | ||
| + | setsebool -P httpd_can_network_connect_db 1 # Persistente | ||
| + | </ | ||
chuleta_selinux.1576143822.txt.gz · Last modified: by etfiat
