[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Bug from audit.81 -> audit.82 & higher



On Tue, 2005-08-02 at 16:03 -0500, Michael C Thompson wrote:
> In summary: when the kernel is > audit.82, -a entry,always, and -F a2=448
> is included, then the record is not generated. However, changing 1 of these 3
> will result in the record's generation.

If you add back the call to audit_zero_context() in
audit_syscall_exit(), is the correct behaviour restored?

--- linux-2.6.9/kernel/auditsc.c~
+++ linux-2.6.9/kernel/auditsc.c 
@@ -1073,7 +1073,6 @@ void audit_syscall_exit(struct task_stru
 	} else {
 		audit_free_names(context);
 		audit_free_aux(context);
+		audit_zero_context(context, context->state);
 	tsk->audit_context = context;
 	}
 	put_task_struct(tsk);


-- 
dwmw2


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]