[PATCH] tests: Fix wrong syscall-error in test 29
authorMayank Mrinal <mayank.mrinal@sony.com>
Thu, 1 Jun 2023 09:23:44 +0000 (14:53 +0530)
committerFelix Geyer <fgeyer@debian.org>
Sun, 24 Nov 2024 20:54:16 +0000 (21:54 +0100)
29-sim-pseudo_syscall.c was using `-11001` syscall.
Corrected it to `-10001`.

Signed-off-by: Mayank Mrinal <mayank.mrinal@sony.com>
Acked-by: Paul Moore <paul@paul-moore.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
Gbp-Pq: Name tests_Fix_wrong_syscall-error_in_test_29.patch

tests/29-sim-pseudo_syscall.c

index acf9c19310a0f04107a6bc0a9be46fc8e6512136..86734a8478324e196bc483100a7462310f03b6d7 100644 (file)
@@ -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;