// The implicitly defined sets form a partition of the sets of
// system calls.
-// TODO(jln) we need to restrict the first parameter!
bool SyscallSets::IsKill(int sysno) {
switch (sysno) {
case __NR_kill:
- case __NR_tkill:
case __NR_tgkill:
+ case __NR_tkill: // Deprecated.
return true;
default:
return false;
// This should be thought through in conjunction with IsFutex().
bool SyscallSets::IsAllowedProcessStartOrDeath(int sysno) {
switch (sysno) {
- case __NR_clone: // TODO(jln): restrict flags.
case __NR_exit:
case __NR_exit_group:
case __NR_wait4:
case __NR_waitpid:
#endif
return true;
+ case __NR_clone: // Should be parameter-restricted.
case __NR_setns: // Privileged.
case __NR_fork:
#if defined(__i386__) || defined(__x86_64__)