xselinux: Send AVC messages to audit system instead of log file/stderr.
This commit is contained in:
parent
42802a8e6b
commit
1393a97ea9
|
@ -462,8 +462,12 @@ static int
|
||||||
SELinuxLog(int type, const char *fmt, ...)
|
SELinuxLog(int type, const char *fmt, ...)
|
||||||
{
|
{
|
||||||
va_list ap;
|
va_list ap;
|
||||||
|
char buf[MAX_AUDIT_MESSAGE_LENGTH];
|
||||||
|
int rc, aut = AUDIT_USER_AVC;
|
||||||
|
|
||||||
va_start(ap, fmt);
|
va_start(ap, fmt);
|
||||||
VErrorF(fmt, ap);
|
vsnprintf(buf, MAX_AUDIT_MESSAGE_LENGTH, fmt, ap);
|
||||||
|
rc = audit_log_user_avc_message(audit_fd, aut, buf, NULL, NULL, NULL, 0);
|
||||||
va_end(ap);
|
va_end(ap);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user