mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-25 18:50:05 +01:00
xselinux: send more specific message types to libaudit.
This commit is contained in:
parent
4ce19b4477
commit
0f2fd0577f
1 changed files with 13 additions and 1 deletions
|
|
@ -657,7 +657,19 @@ SELinuxLog(int type, const char *fmt, ...)
|
|||
{
|
||||
va_list ap;
|
||||
char buf[MAX_AUDIT_MESSAGE_LENGTH];
|
||||
int rc, aut = AUDIT_USER_AVC;
|
||||
int rc, aut;
|
||||
|
||||
switch (type) {
|
||||
case SELINUX_INFO:
|
||||
aut = AUDIT_USER_MAC_POLICY_LOAD;
|
||||
break;
|
||||
case SELINUX_AVC:
|
||||
aut = AUDIT_USER_AVC;
|
||||
break;
|
||||
default:
|
||||
aut = AUDIT_USER_SELINUX_ERR;
|
||||
break;
|
||||
}
|
||||
|
||||
va_start(ap, fmt);
|
||||
vsnprintf(buf, MAX_AUDIT_MESSAGE_LENGTH, fmt, ap);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue