diff options
author | Neil Horman <nhorman@tuxdriver.com> | 2010-05-26 23:42:59 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-05-27 18:12:44 +0200 |
commit | 898b374af6f71041bd3bceebe257e564f3f1d458 (patch) | |
tree | b1be6fd3cca69becfc75787eab906338f363d3cd /security/keys/internal.h | |
parent | kmod: add init function to usermodehelper (diff) | |
download | linux-898b374af6f71041bd3bceebe257e564f3f1d458.tar.xz linux-898b374af6f71041bd3bceebe257e564f3f1d458.zip |
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>
Diffstat (limited to 'security/keys/internal.h')
0 files changed, 0 insertions, 0 deletions