mirror of
https://github.com/adulau/aha.git
synced 2024-12-27 11:16:11 +00:00
audit: Fix possible return value truncation in audit_get_context()
The audit subsystem treats syscall return codes as type long, unfortunately the audit_get_context() function mistakenly converts the return code to an int type in the parameters which could cause problems on systems where the sizeof(int) != sizeof(long). Signed-off-by: Paul Moore <paul.moore@hp.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
55ad2f8d34
commit
6d208da89a
1 changed files with 1 additions and 1 deletions
|
@ -752,7 +752,7 @@ static void audit_set_auditable(struct audit_context *ctx)
|
|||
|
||||
static inline struct audit_context *audit_get_context(struct task_struct *tsk,
|
||||
int return_valid,
|
||||
int return_code)
|
||||
long return_code)
|
||||
{
|
||||
struct audit_context *context = tsk->audit_context;
|
||||
|
||||
|
|
Loading…
Reference in a new issue