Site Tools


chuleta_selinux

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
chuleta_selinux [2018/10/30 14:01] – creado etfiatchuleta_selinux [2023/02/20 13:17] (current) – [Selinux para apache] etfiat
Line 23: Line 23:
 seinfo -r seinfo -r
  
 +==== Selinux para apache ====
 +
 +=== Permitir a apache leer y escribir en un directorio ===
 +
 +<code>
 +chcon -R -t httpd_sys_rw_content_t /var/spool/pandora/data_in # lectura/escritura en data-in para httpd
 +</code>
 +
 +=== Hacer cambios permanentes ===
 +
 +<code>
 +restorecon -rnv /var/spool/pandora/data_in  # hacer cambios permanentes
 +</code>
 +
 +
 +=== Permitir mysql remoto ===
 +
 +<code>
 +setsebool httpd_can_network_connect_db 1         # Temporal
 +setsebool -P  httpd_can_network_connect_db 1     # Persistente
 +</code>
chuleta_selinux.1540908114.txt.gz · Last modified: by etfiat