exec: introduce struct user_arg_ptr
commitba2d01629d0d167598cfea85adc7926822bbfc45
authorOleg Nesterov <oleg@redhat.com>
Sun, 6 Mar 2011 17:02:37 +0000 (6 18:02 +0100)
committerOleg Nesterov <oleg@redhat.com>
Sat, 9 Apr 2011 13:53:53 +0000 (9 15:53 +0200)
tree703a3f297df7cb4c0317504a58121f9958c0d708
parent1d1dbf8135ab2f3603cc72e39e0f68784f453c39
exec: introduce struct user_arg_ptr

No functional changes, preparation.

Introduce struct user_arg_ptr, change do_execve() paths to use it
instead of "char __user * const __user *argv".

This makes the argv/envp arguments opaque, we are ready to handle the
compat case which needs argv pointing to compat_uptr_t.

Suggested-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Reviewed-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Tested-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
fs/exec.c