summaryrefslogtreecommitdiff
path: root/Xext
diff options
context:
space:
mode:
authorEamon Walsh <ewalsh@tycho.nsa.gov>2008-10-30 15:35:33 -0400
committerEamon Walsh <ewalsh@tycho.nsa.gov>2008-10-30 18:29:51 -0400
commit0f2fd0577fe2740a32d3a2749e2c3582f891417c (patch)
tree591a2b4ac9b5cf01e06ab4c3d5d0f26cdee98325 /Xext
parent4ce19b4477057a724b548e342d4c6da2b6721824 (diff)
xselinux: send more specific message types to libaudit.
Diffstat (limited to 'Xext')
-rw-r--r--Xext/xselinux.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/Xext/xselinux.c b/Xext/xselinux.c
index 60fd23cdf..945984dec 100644
--- a/Xext/xselinux.c
+++ b/Xext/xselinux.c
@@ -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);