mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 04:33:26 +02:00
audit: move audit_aux_data_execve contents into audit_context union
audit_bprm() was being called to add an AUDIT_EXECVE record to the audit context every time search_binary_handler() was recursively called. Only one reference is necessary, so just update it. Move the the contents of audit_aux_data_execve into the union in audit_context, removing dependence on a kmalloc along the way. Reported-by: Oleg Nesterov <onestero@redhat.com> Cc: Eric Paris <eparis@redhat.com> Signed-off-by: Richard Guy Briggs <rgb@redhat.com> Signed-off-by: Eric Paris <eparis@redhat.com>
This commit is contained in:
committed by
Eric Paris
parent
9462dc5981
commit
d9cfea91e9
@@ -197,6 +197,10 @@ struct audit_context {
|
||||
int fd;
|
||||
int flags;
|
||||
} mmap;
|
||||
struct {
|
||||
int argc;
|
||||
struct mm_struct *mm;
|
||||
} execve;
|
||||
};
|
||||
int fds[2];
|
||||
|
||||
|
Reference in New Issue
Block a user