xselinux: Log messages to both libaudit and Xorg.0.log.

This commit is contained in:
Eamon Walsh 2008-02-28 21:52:57 -05:00 committed by Eamon Walsh
parent 4d91b1d5e4
commit 3fb17a3e64

View File

@ -497,6 +497,7 @@ SELinuxLog(int type, const char *fmt, ...)
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);
LogMessageVerb(X_WARNING, 0, "%s", buf);
return 0;
}