-
Notifications
You must be signed in to change notification settings - Fork 230
Description
As per RFC3164 for syslog describing facilities, I wondered if the "log audit" facility can be used.
13 log audit (note 1)
One might think, after reading specs, facility 13 would be a good choice for where to send audit events. However, as per
audit-userspace/audisp/audispd-builtins.c
Line 291 in 31784ed
| else if (strcasecmp(conf->args[i], "LOG_LOCAL0") == 0) |
There are a limited number of facilities one can parse as arguments, and 13 is not catered for.
I appreciate the complexity arose given older unix platforms syslog.h files and glibc didn't take the time to define all the facilities (possibly syslog.h was written before RFC3164 was authored as a retrospective standard) , e.g. syslog.3. Out of interest freebsd has LOG_SECURITY defined for facility 13. So it seems the Linux community and libc devs opted to never use 13 for audit security events, which is a pity, because things like local6 can sometimes conflict with other programs also using local facilities.
Might it not be a good idea to align to the RFC and default to facility 13, which as far as I can tell, most other linux processes don't use. But is the complication that one can't actually use 13 because it's not defined properly in glibc?