mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:07:44 +00:00
Add geteuid() and getegid().
There's no support for set-uid or set-gid executables yet so these don't actually do anything. It's just nice to get the boilerplate stuff in.
This commit is contained in:
parent
60a8144b68
commit
e4611248c4
6 changed files with 38 additions and 3 deletions
|
@ -132,6 +132,10 @@ static DWORD handle(RegisterDump& regs, DWORD function, DWORD arg1, DWORD arg2,
|
|||
return current->sys$fork(regs);
|
||||
case Syscall::PosixExecve:
|
||||
return current->sys$execve((const char*)arg1, (const char**)arg2, (const char**)arg3);
|
||||
case Syscall::PosixGeteuid:
|
||||
return current->sys$geteuid();
|
||||
case Syscall::PosixGetegid:
|
||||
return current->sys$getegid();
|
||||
default:
|
||||
kprintf("<%u> int0x80: Unknown function %x requested {%x, %x, %x}\n", current->pid(), function, arg1, arg2, arg3);
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue