#userspace #elf #space #user #linux #executable #execve

bin+lib userland-execve

An implementation of execve() in user space

4 releases

0.2.0 Jan 6, 2024
0.1.2 Sep 18, 2023
0.1.1 Aug 13, 2023
0.1.0 Jul 20, 2023

#43 in #userspace

Download history 5/week @ 2024-01-05 16/week @ 2024-01-12 15/week @ 2024-01-19 26/week @ 2024-01-26 36/week @ 2024-02-02 25/week @ 2024-02-23 13/week @ 2024-03-01 1/week @ 2024-03-08 1/week @ 2024-03-15 34/week @ 2024-03-29 22/week @ 2024-04-05

57 downloads per month

MIT license

17KB
453 lines

userland-execve

An implementation of execve() in user space.

This works by mapping the ELF executable (and interpreter, such as ld-linux.so.2) into memory, creating a stack for it (containing the auxiliary vector, arguments, and environment variables), and then jumping to the entry point with the new stack.

Dependencies

~2.5MB
~51K SLoC