Hook execve() and the other exec*() functions.

Prevents programs from removing our environment variables during the
exec.

Also reduces unnecessary calls to update_environment() by calling it
only once before the exec.
This commit is contained in:
Simon Ruderich
2013-06-05 01:40:56 +02:00
parent a9db9083b6
commit 7ea72c40db
7 changed files with 529 additions and 18 deletions

View File

@@ -1,10 +1,12 @@
TESTS = run.sh
check_PROGRAMS = example example_vfork
check_PROGRAMS = example example_exec example_vfork
example_SOURCES = example.c
example_exec_SOURCES = example_exec.c
example_vfork_SOURCES = example_vfork.c
dist_check_SCRIPTS = run.sh lib.sh
dist_check_DATA = example.expected \
example_exec.expected \
example_vfork.expected \
example-noforce.sh \
example-noforce.sh.expected \