note a leak that needs fixing eventually
[trinity.git] / syscalls / setuid.c
blobbc05529c9de230589578ccdd8072cfc39f564883
1 /*
2 * SYSCALL_DEFINE1(setuid, uid_t, uid)
3 */
4 #include "random.h"
5 #include "shm.h"
6 #include "sanitise.h"
8 static void sanitise_setuid(int childno)
10 shm->syscall[childno].a1 = rand32();
13 struct syscallentry syscall_setuid = {
14 .name = "setuid",
15 .num_args = 1,
16 .arg1name = "uid",
17 .sanitise = sanitise_setuid,
21 * SYSCALL_DEFINE1(setuid16, old_uid_t, uid)
24 struct syscallentry syscall_setuid16 = {
25 .name = "setuid16",
26 .num_args = 1,
27 .arg1name = "uid",
28 .sanitise = sanitise_setuid,