Skip to content

Commit

Permalink
[COMPAT]: Fixup compat_do_execve()
Browse files Browse the repository at this point in the history
Missing acct_update_integrals() and update_mem_hiwater() calls
compared to it's native counterpart.

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Sep 15, 2005
1 parent 1619cca commit 4a805e8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions fs/compat.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@
#include <linux/nfsd/syscall.h>
#include <linux/personality.h>
#include <linux/rwsem.h>
#include <linux/acct.h>
#include <linux/mm.h>

#include <net/sock.h> /* siocdevprivate_ioctl */

Expand Down Expand Up @@ -1487,6 +1489,8 @@ int compat_do_execve(char * filename,

/* execve success */
security_bprm_free(bprm);
acct_update_integrals(current);
update_mem_hiwater(current);
kfree(bprm);
return retval;
}
Expand Down

0 comments on commit 4a805e8

Please sign in to comment.