Skip to content

Commit

Permalink
Revert "tests: Fix wrong syscall-error in test 29"
Browse files Browse the repository at this point in the history
Revert commit a707ec9 ("tests: Fix wrong syscall-error in test
29").  The reverted commit properly set the syscall number to -10001 in
a call to seccomp_rule_add_exact(), but due to previously unknown
shortcomings in the test, this led to failures.  Revert to the previous
version of test 29.

Note that this reverted version of test 29 is not functioning as
originally designed, but it is largely benign and the functional test
will pass on all architectures.  (It's generating a BPF filter that will
allow all syscalls on x86.)

Fixes: a707ec9 ("tests: Fix wrong syscall-error in test 29")
Signed-off-by: Tom Hromatka <[email protected]>
  • Loading branch information
drakenclimber committed Dec 1, 2023
1 parent 53267af commit d9bfefc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/29-sim-pseudo_syscall.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ int main(int argc, char *argv[])
if (rc == 0)
goto out;
/* -10001 == 4294957295 (unsigned) */
rc = seccomp_rule_add_exact(ctx, SCMP_ACT_KILL, -10001, 0);
rc = seccomp_rule_add_exact(ctx, SCMP_ACT_KILL, -11001, 0);
if (rc == 0)
goto out;

Expand Down

0 comments on commit d9bfefc

Please sign in to comment.