summaryrefslogtreecommitdiff
path: root/kernel/audit.c
diff options
context:
space:
mode:
authorRichard Guy Briggs <rgb@redhat.com>2022-08-25 15:32:39 -0400
committerPaul Moore <paul@paul-moore.com>2022-08-26 17:18:54 -0400
commitc3f3ea8af44d0c5fba79fe8b198087342d0c7e04 (patch)
tree26d38decb0f81c03a46a726f89f54334f3de7379 /kernel/audit.c
parent3ed66951f952ed8f1a5d03e171722bf2631e8d58 (diff)
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: 12c5e81d3fd0 ("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>
Diffstat (limited to 'kernel/audit.c')
0 files changed, 0 insertions, 0 deletions