]> git.baikalelectronics.ru Git - kernel.git/commit
exec: replace call_usermodehelper_pipe with use of umh init function and resolve...
authorNeil Horman <nhorman@tuxdriver.com>
Wed, 26 May 2010 21:42:59 +0000 (14:42 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 27 May 2010 16:12:44 +0000 (09:12 -0700)
commit5d07f1a595ec0a6bf7d8dd9891f1c2a216dd137e
treeb1be6fd3cca69becfc75787eab906338f363d3cd
parent4a2958425b9422ae1835c5f06431dc280101c7c9
exec: replace call_usermodehelper_pipe with use of umh init function and resolve limit

The first patch in this series introduced an init function to the
call_usermodehelper api so that processes could be customized by caller.
This patch takes advantage of that fact, by customizing the helper in
do_coredump to create the pipe and set its core limit to one (for our
recusrsion check).  This lets us clean up the previous uglyness in the
usermodehelper internals and factor call_usermodehelper out entirely.
While I'm at it, we can also modify the helper setup to look for a core
limit value of 1 rather than zero for our recursion check

Signed-off-by: Neil Horman <nhorman@tuxdriver.com>
Reviewed-by: Oleg Nesterov <oleg@redhat.com>
Cc: Andi Kleen <andi@firstfloor.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/exec.c
include/linux/kmod.h
kernel/kmod.c