Implemented debug SYS_SETUID and SYS_SETGID (need to actually make them)
authorJohn Hodge <[email protected]>
Wed, 30 Sep 2009 13:57:57 +0000 (21:57 +0800)
committerJohn Hodge <[email protected]>
Wed, 30 Sep 2009 13:57:57 +0000 (21:57 +0800)
Kernel/syscalls.c
Usermode/Libraries/libacess.so_src/core.asm

index 4275274..facc263 100644 (file)
@@ -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);
index 9ce635c..8cb53b7 100644 (file)
@@ -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

UCC git Repository :: git.ucc.asn.au