]> git.baikalelectronics.ru Git - kernel.git/commit
exec: introduce struct user_arg_ptr
authorOleg Nesterov <oleg@redhat.com>
Sun, 6 Mar 2011 17:02:37 +0000 (18:02 +0100)
committerOleg Nesterov <oleg@redhat.com>
Sat, 9 Apr 2011 13:53:53 +0000 (15:53 +0200)
commitb46df63bc4b2a2a22173df31475897a65c095ce8
tree703a3f297df7cb4c0317504a58121f9958c0d708
parenta8a90c1e5f715357c375036910d6e5d403a58ddb
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