Skip to content

Instantly share code, notes, and snippets.

@rafaelfoster
Created January 13, 2014 14:16
Show Gist options
  • Save rafaelfoster/8400981 to your computer and use it in GitHub Desktop.
Save rafaelfoster/8400981 to your computer and use it in GitHub Desktop.
SELinux - Audit2allow
# instalar pacotes para liberação de regras no SELinux
yum install policycoreutils-python
# Verificar se houve bloqueios no SELinux
aureport --avc
# Criar arquivos de regras
cat /var/log/audit/audit.log |grep "filtro" |audit2allow -M "nome_do_modulo"
# Instalar modulo
semodule -i "nome_do_modulo.pp"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment