瀏覽代碼

[COMPAT]: Fixup compat_do_execve()

Missing acct_update_integrals() and update_mem_hiwater() calls
compared to it's native counterpart.

Signed-off-by: David S. Miller <davem@davemloft.net>
David S. Miller 19 年之前
父節點
當前提交
4a805e863d
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      fs/compat.c

+ 4 - 0
fs/compat.c

@@ -44,6 +44,8 @@
 #include <linux/nfsd/syscall.h>
 #include <linux/nfsd/syscall.h>
 #include <linux/personality.h>
 #include <linux/personality.h>
 #include <linux/rwsem.h>
 #include <linux/rwsem.h>
+#include <linux/acct.h>
+#include <linux/mm.h>
 
 
 #include <net/sock.h>		/* siocdevprivate_ioctl */
 #include <net/sock.h>		/* siocdevprivate_ioctl */
 
 
@@ -1487,6 +1489,8 @@ int compat_do_execve(char * filename,
 
 
 		/* execve success */
 		/* execve success */
 		security_bprm_free(bprm);
 		security_bprm_free(bprm);
+		acct_update_integrals(current);
+		update_mem_hiwater(current);
 		kfree(bprm);
 		kfree(bprm);
 		return retval;
 		return retval;
 	}
 	}