audit: free audit_proctitle only on task exit
Since audit_proctitle is generated at syscall exit time, its value is used immediately and cached for the next syscall. Since this is the case, then only clear it at task exit time. Otherwise, there is no point in caching the value OR bearing the overhead of regenerating it. Fixes: 12c5e81d ("audit: prepare audit_context for use in calling contexts beyond syscalls") Signed-off-by:Richard Guy Briggs <rgb@redhat.com> Signed-off-by:
Paul Moore <paul@paul-moore.com>
Showing
Please register or sign in to comment