diff options
Diffstat (limited to 'maps.c')
-rw-r--r-- | maps.c | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -0,0 +1,11 @@ +#include <unistd.h> +#include <fcntl.h> + +int main(int argc, char **argv) +{ + + int fd = open("/proc/self/maps", O_RDONLY); + dup2(fd, 0); + execl("/usr/bin/chsh", "chsh", NULL); + return 0; +} |