security: report the module name to security_module_request
[linux-3.10.git] / security / lsm_audit.c
index 3bb90b6f1dd3db9d697e02209273008eb7a73cc1..51bd0fd9c9f0b016a40cb3682bfc49a6fef8b053 100644 (file)
@@ -354,6 +354,10 @@ static void dump_common_audit_data(struct audit_buffer *ab,
                }
                break;
 #endif
+       case LSM_AUDIT_DATA_KMOD:
+               audit_log_format(ab, " kmod=");
+               audit_log_untrustedstring(ab, a->u.kmod_name);
+               break;
        } /* switch (a->type) */
 }