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

2
.gitignore vendored
View File

@@ -23,6 +23,8 @@
/tests/Makefile.in
/tests/example
/tests/example.o
/tests/example_exec
/tests/example_exec.o
/tests/example_vfork
/tests/example_vfork.o
/tests/run.sh.log