Skip to content

Commit

Permalink
audit: remove unused envc member of audit_aux_data_execve
Browse files Browse the repository at this point in the history
Get rid of write-only audit_aux_data_exeve structure member envc.

Signed-off-by: Richard Guy Briggs <[email protected]>
Signed-off-by: Eric Paris <[email protected]>
  • Loading branch information
rgbriggs authored and eparis committed Nov 5, 2013
1 parent bd131fb commit 9462dc5
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions kernel/auditsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ struct audit_aux_data {
struct audit_aux_data_execve {
struct audit_aux_data d;
int argc;
int envc;
struct mm_struct *mm;
};

Expand Down Expand Up @@ -2158,7 +2157,6 @@ int __audit_bprm(struct linux_binprm *bprm)
return -ENOMEM;

ax->argc = bprm->argc;
ax->envc = bprm->envc;
ax->mm = bprm->mm;
ax->d.type = AUDIT_EXECVE;
ax->d.next = context->aux;
Expand Down

0 comments on commit 9462dc5

Please sign in to comment.