mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:38:11 +00:00
Launching an arbitrary ELF executable from disk works! :^)
This is so cool! It's a bit messy now with two Task constructors, but eventually they should fold into a single constructor somehow.
This commit is contained in:
parent
befeabd8fe
commit
b824f15619
10 changed files with 141 additions and 16 deletions
|
@ -27,7 +27,7 @@
|
|||
#include "Console.h"
|
||||
|
||||
#define TEST_VFS
|
||||
#define TEST_ELF_LOADER
|
||||
//#define TEST_ELF_LOADER
|
||||
//#define TEST_CRASHY_USER_PROCESSES
|
||||
|
||||
static void motd_main() NORETURN;
|
||||
|
@ -167,6 +167,8 @@ static void init_stage2()
|
|||
}
|
||||
#endif
|
||||
|
||||
auto* idTask = Task::create("/bin/id", (uid_t)209, (gid_t)1985);
|
||||
|
||||
//new Task(motd_main, "motd", IPC::Handle::MotdTask, Task::Ring0);
|
||||
//new Task(syscall_test_main, "syscall_test", IPC::Handle::MotdTask, Task::Ring3);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue