/* 20 */ { "getxpid", getpidPseudoFunc },
/* 21 */ { "osf_mount" },
/* 22 */ { "umount" },
- /* 23 */ { "setuid", setuidFunc },
+ /* 23 */ { "setuid", ignoreFunc },
/* 24 */ { "getxuid", getuidPseudoFunc },
/* 25 */ { "exec_with_loader" },
/* 26 */ { "osf_ptrace" },
/* 20 */ { "getpid", getpidFunc },
/* 21 */ { "mount" },
/* 22 */ { "umount" },
- /* 23 */ { "setuid", setuidFunc },
+ /* 23 */ { "setuid", ignoreFunc },
/* 24 */ { "getuid", getuidFunc },
/* 25 */ { "stime" },
/* 26 */ { "ptrace" },
/* 20 */ { "getpid", getpidFunc },
/* 21 */ { "mount" },
/* 22 */ { "umount" },
- /* 23 */ { "setuid", setuidFunc },
+ /* 23 */ { "setuid", ignoreFunc },
/* 24 */ { "getuid", getuidFunc },
/* 25 */ { "stime" },
/* 26 */ { "ptrace" },
/* 20 */ { "getpid", getpidFunc },
/* 21 */ { "mount" },
/* 22 */ { "umount" },
- /* 23 */ { "setuid", setuidFunc },
+ /* 23 */ { "setuid", ignoreFunc },
/* 24 */ { "getuid", getuidFunc },
/* 25 */ { "stime" },
/* 26 */ { "ptrace" },
{143, { "setregid" }},
{144, { "setgid" }},
{145, { "setreuid" }},
- {146, { "setuid", setuidFunc }},
+ {146, { "setuid", ignoreFunc }},
{147, { "setresuid" }},
{148, { "getresuid" }},
{149, { "getresgid" }},
{143, { "setregid" }},
{144, { "setgid" }},
{145, { "setreuid" }},
- {146, { "setuid", setuidFunc }},
+ {146, { "setuid", ignoreFunc }},
{147, { "setresuid" }},
{148, { "getresuid" }},
{149, { "getresgid" }},
/* 20 */ { "getpid", getpidFunc },
/* 21 */ { "capget" },
/* 22 */ { "capset" },
- /* 23 */ { "setuid", setuidFunc }, // 32 bit
+ /* 23 */ { "setuid", ignoreFunc }, // 32 bit
/* 24 */ { "getuid", getuidFunc }, // 32 bit
/* 25 */ { "time" },
/* 26 */ { "ptrace" },
/* 20 */ { "getpid", getpidFunc },
/* 21 */ { "capget" },
/* 22 */ { "capset" },
- /* 23 */ { "setuid", setuidFunc },
+ /* 23 */ { "setuid", ignoreFunc },
/* 24 */ { "getuid", getuidFunc },
/* 25 */ { "time" },
/* 26 */ { "ptrace" },
/* 20 */ { "getpid", getpidFunc },
/* 21 */ { "mount" },
/* 22 */ { "umount" },
- /* 23 */ { "setuid", setuidFunc },
+ /* 23 */ { "setuid", ignoreFunc },
/* 24 */ { "getuid", getuidFunc },
/* 25 */ { "stime" },
/* 26 */ { "pcsample" },
}
-SyscallReturn
-setuidFunc(SyscallDesc *desc, int callnum, ThreadContext *tc, int uid)
-{
- // can't fathom why a benchmark would call this.
- warn("Ignoring call to setuid(%d)\n", uid);
- return 0;
-}
-
SyscallReturn
getpidFunc(SyscallDesc *desc, int callnum, ThreadContext *tc)
{
/// Target fcntl64() handler.
SyscallReturn fcntl64Func(SyscallDesc *desc, int num, ThreadContext *tc);
-/// Target setuid() handler.
-SyscallReturn setuidFunc(SyscallDesc *desc, int num, ThreadContext *tc,
- int uid);
-
/// Target pipe() handler.
SyscallReturn pipeFunc(SyscallDesc *desc, int num, ThreadContext *tc);