Skip to content

Commit

Permalink
tests: Fix wrong syscall-error in test 29
Browse files Browse the repository at this point in the history
29-sim-pseudo_syscall.c was using `-11001` syscall.
Corrected it to `-10001`.

Signed-off-by: Mayank Mrinal <[email protected]>
Acked-by: Paul Moore <[email protected]>
Signed-off-by: Tom Hromatka <[email protected]>
  • Loading branch information
mayamrinal authored and drakenclimber committed Oct 18, 2023
1 parent 8363b42 commit 1852fe3
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, -11001, 0);
rc = seccomp_rule_add_exact(ctx, SCMP_ACT_KILL, -10001, 0);
if (rc == 0)
goto out;

Expand Down

0 comments on commit 1852fe3

Please sign in to comment.