#userspace #elf #space #linux #executable #memory #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

#76 in #userspace

Download history 20/week @ 2024-09-09 15/week @ 2024-09-23 18/week @ 2024-09-30 1/week @ 2024-10-21 8/week @ 2024-11-04 10/week @ 2024-11-18 4/week @ 2024-12-02 18/week @ 2024-12-09 55/week @ 2024-12-16

78 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
~52K SLoC