aboutsummaryrefslogtreecommitdiffstats
path: root/guts/execve.c
diff options
context:
space:
mode:
Diffstat (limited to 'guts/execve.c')
-rw-r--r--guts/execve.c37
1 files changed, 0 insertions, 37 deletions
diff --git a/guts/execve.c b/guts/execve.c
deleted file mode 100644
index a47b9a7..0000000
--- a/guts/execve.c
+++ /dev/null
@@ -1,37 +0,0 @@
-/*
- * Copyright (c) 2008-2010 Wind River Systems; see
- * guts/COPYRIGHT for information.
- *
- * static int
- * wrap_execve(const char *file, char *const *argv, char *const *envp) {
- * int rc = -1;
- */
- char * const *new_environ;
- /* note: we don't canonicalize this, because we are intentionally
- * NOT redirecting execs into the chroot environment. If you try
- * to execute /bin/sh, you get the actual /bin/sh, not
- * <CHROOT>/bin/sh. This allows use of basic utilities. This
- * design will likely be revisited.
- */
- if (antimagic == 0) {
- char *path_guess = pseudo_exec_path(file, 0);
- pseudo_client_op(OP_EXEC, PSA_EXEC, -1, -1, path_guess, 0);
- free(path_guess);
- }
-
- if (!pseudo_get_value("PSEUDO_RELOADED"))
- new_environ = pseudo_setupenvp(envp);
- else {
- new_environ = pseudo_setupenvp(envp);
- new_environ = pseudo_dropenvp(new_environ);
- }
-
- /* if exec() fails, we may end up taking signals unexpectedly...
- * not much we can do about that.
- */
- sigprocmask(SIG_SETMASK, &pseudo_saved_sigmask, NULL);
- rc = real_execve(file, argv, new_environ);
-
-/* return rc;
- * }
- */