Pregunta

Is there a way to programmatically log events to the SELinux audit log? I'm looking to create a monitoring script that audits the user's activities.

¿Fue útil?

Solución

If you are using C/C++ you can interact with auditd (the one responsible for writing to audit.log) with the library "audit-libs" by including "libaudit.h". If you have the development library installed read the manual page of audit_open (man audit_open), or take a look here: http://linux.die.net/man/3/audit_open

I gathered most information from the following sites:

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top