From: John Hodge Date: Wed, 30 Sep 2009 13:57:57 +0000 (+0800) Subject: Implemented debug SYS_SETUID and SYS_SETGID (need to actually make them) X-Git-Tag: rel0.06~404 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=022489d90d45db122801e75f493b3846724427e8;p=tpg%2Facess2.git Implemented debug SYS_SETUID and SYS_SETGID (need to actually make them) --- diff --git a/Kernel/syscalls.c b/Kernel/syscalls.c index 4275274e..facc263c 100644 --- a/Kernel/syscalls.c +++ b/Kernel/syscalls.c @@ -95,6 +95,10 @@ void SyscallHandler(tSyscallRegs *Regs) case SYS_GETUID: ret = Threads_GetUID(); break; case SYS_GETGID: ret = Threads_GetGID(); break; + // -- Set User/Group IDs + case SYS_SETUID: Log("Setting User ID to %i", Regs->Arg1); break; + case SYS_SETGID: Log("Setting Group ID to %i", Regs->Arg1); break; + // -- Send Message case SYS_SENDMSG: ret = Proc_SendMessage(&err, Regs->Arg1, Regs->Arg2, (void*)Regs->Arg3); diff --git a/Usermode/Libraries/libacess.so_src/core.asm b/Usermode/Libraries/libacess.so_src/core.asm index 9ce635c2..8cb53b77 100644 --- a/Usermode/Libraries/libacess.so_src/core.asm +++ b/Usermode/Libraries/libacess.so_src/core.asm @@ -29,8 +29,8 @@ SYSCALL0 getpid, SYS_GETPID SYSCALL0 getuid, SYS_GETUID SYSCALL0 getgid, SYS_GETGID -SYSCALL0 setuid, SYS_SETUID -SYSCALL0 setgid, SYS_SETGID +SYSCALL1 setuid, SYS_SETUID +SYSCALL1 setgid, SYS_SETGID SYSCALL1 SysSetName, SYS_SETNAME SYSCALL2 SysGetName, SYS_GETNAME