chcon -u 'something_u' -r 'something_r' -t 'something_t' file
chcon -R -u 'something_u' -r 'something_r' -t 'something_t' dir
chcon --reference 'file_with_target_context' file
chcon -R --reference 'file_with_target_context' dirrestorecon -F file
restorecon -RF dirsemanage is provided by policycoreutils-python package.
Para o apache no CentOS / Redhat Enterprise permitir escrever log em uma pasta personalizada:
Erro AH0035 -
ou
https://www.centos.org/forums/viewtopic.php?t=47396&start=10