if (rc < 0)
goto out;
- /* SCMP_SYS(sysmips) == 4294957190 (unsigned) */
- rc = seccomp_rule_add(ctx, SCMP_ACT_KILL, SCMP_SYS(sysmips), 0);
- if (rc < 0)
- goto out;
- rc = seccomp_rule_add_exact(ctx, SCMP_ACT_KILL, SCMP_SYS(sysmips), 0);
- if (rc == 0)
- goto out;
- /* -10001 == 4294957295 (unsigned) */
- rc = seccomp_rule_add_exact(ctx, SCMP_ACT_KILL, -10001, 0);
+ /* -100001 == 4294867295 (unsigned) */
+ rc = seccomp_rule_add_exact(ctx, SCMP_ACT_KILL, -100001, 0);
if (rc == 0)
goto out;
f = SyscallFilter(ALLOW)
f.remove_arch(Arch())
f.add_arch(Arch("x86"))
- f.add_rule(KILL, "sysmips")
try:
- f.add_rule_exactly(KILL, "sysmips")
- except RuntimeError:
- pass
- try:
- f.add_rule_exactly(KILL, -10001)
+ f.add_rule_exactly(KILL, -100001)
except RuntimeError:
pass
return f
# Testname Arch Syscall Arg0 Arg1 Arg2 Arg3 Arg4 Arg5 Result
29-sim-pseudo_syscall +x86 0-10 N N N N N N ALLOW
-29-sim-pseudo_syscall +x86 4294957190 N N N N N N ALLOW
-29-sim-pseudo_syscall +x86 4294957295 N N N N N N ALLOW
+29-sim-pseudo_syscall +x86 4294867295 N N N N N N ALLOW
test type: bpf-valgrind