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/11 11:34] – 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 data_in # lectura/ | + | chcon -R -t httpd_sys_rw_content_t |
| </ | </ | ||
| + | |||
| + | === Hacer cambios permanentes === | ||
| < | < | ||
| - | restorecon -rnv / | + | restorecon -rnv / |
| </ | </ | ||
| + | === Permitir mysql remoto === | ||
| + | < | ||
| + | setsebool httpd_can_network_connect_db 1 # Temporal | ||
| + | setsebool -P httpd_can_network_connect_db 1 # Persistente | ||
| + | </ | ||
chuleta_selinux.1576064099.txt.gz · Last modified: by etfiat
