|
@@ -1511,14 +1511,11 @@ void __audit_syscall_entry(int major, unsigned long a1, unsigned long a2,
|
|
struct audit_context *context = tsk->audit_context;
|
|
struct audit_context *context = tsk->audit_context;
|
|
enum audit_state state;
|
|
enum audit_state state;
|
|
|
|
|
|
- if (!context)
|
|
|
|
|
|
+ if (!audit_enabled || !context)
|
|
return;
|
|
return;
|
|
|
|
|
|
BUG_ON(context->in_syscall || context->name_count);
|
|
BUG_ON(context->in_syscall || context->name_count);
|
|
|
|
|
|
- if (!audit_enabled)
|
|
|
|
- return;
|
|
|
|
-
|
|
|
|
state = context->state;
|
|
state = context->state;
|
|
if (state == AUDIT_DISABLED)
|
|
if (state == AUDIT_DISABLED)
|
|
return;
|
|
return;
|