Si en CentOS 7 Core al intentar instalar una política de SELinux personalizada como las generadas mediante
# grep sshd /var/log/audit/audit.log | audit2allow -M test_new_policy ```
obtenemos este error:
# semodule -i test_new_policy.pp libsemanage.semanage_exec_prog: Child process /sbin/load_policy did not exit cleanly. (No such file or directory). libsemanage.semanage_reload_policy: load_policy returned error code -1. (No such file or directory). libsemanage.semanage_exec_prog: Child process /sbin/load_policy did not exit cleanly. (No such file or directory). libsemanage.semanage_reload_policy: load_policy returned error code -1. (No such file or directory). semodule: Failed!
yo lo he solucionado mediante
# mkdir /etc/selinux/targeted/modules/tmp ```
Gracias a Eugene Pakhomov por darme la pista de ejecutarlo mediante strace para ver qué fichero o directorio le faltaba…