jmjl revised this gist . Go to revision
1 file changed, 10 insertions
wrapper.c(file created)
@@ -0,0 +1,10 @@ | |||
1 | + | #include <stdio.h> | |
2 | + | #include <stdlib.h> | |
3 | + | #include <unistd.h> | |
4 | + | int main(int argc, char *argv[]) { | |
5 | + | char *myenviron[] = { (char*)0}; | |
6 | + | //argv[0] = "wrapper-restrict"; | |
7 | + | execve("/home/jmjl/dev/starlanes/server",argv,myenviron); | |
8 | + | perror("There was a unexpected technical problem with execve, or the program returned something different than 0"); | |
9 | + | exit(1); | |
10 | + | } |
Newer
Older