[PATCH] tests: add fstatfs() syscall in the 06-sim-actions
authorXiaotian Wu <wuxiaotian@loongson.cn>
Sun, 23 Oct 2022 06:36:42 +0000 (14:36 +0800)
committerFelix Geyer <fgeyer@debian.org>
Sun, 24 Nov 2024 20:54:16 +0000 (21:54 +0100)
Signed-off-by: Xiaotian Wu <wuxiaotian@loongson.cn>
Acked-by: Tom Hromatka <tom.hromatka@oracle.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
Gbp-Pq: Name tests_add_fstatfs_syscall_in_the_06-sim-actions.patch

tests/06-sim-actions.c
tests/06-sim-actions.tests

index da636c942b1b906adbe6ce5909a6adc080fcd2f8..56a60fdaa910a95ce0e72e05cf0b76924fbff1fc 100644 (file)
@@ -64,7 +64,7 @@ int main(int argc, char *argv[])
        if (rc != 0)
                goto out;
 
-       rc = seccomp_rule_add(ctx, SCMP_ACT_KILL_PROCESS, SCMP_SYS(fstat), 0);
+       rc = seccomp_rule_add(ctx, SCMP_ACT_KILL_PROCESS, SCMP_SYS(fstatfs), 0);
        if (rc != 0)
                goto out;
 
index 1ef38b32dd08822b693f2fd5b28c0a30c61dda91..6d791f07a0228b9fbd2374999c8537bda82bf3bf 100644 (file)
@@ -12,7 +12,7 @@ test type: bpf-sim
 06-sim-actions all             write           1               0x856B008       N       N       N       N       ERRNO(1)
 06-sim-actions all             close           4               N               N       N       N       N       TRAP
 06-sim-actions all             openat          0               0x856B008       4       N       N       N       TRACE(1234)
-06-sim-actions all             fstat           N               N               N       N       N       N       KILL_PROCESS
+06-sim-actions all             fstatfs         4               0x856B008       N       N       N       N       KILL_PROCESS
 06-sim-actions all             rt_sigreturn    N               N               N       N       N       N       LOG
 06-sim-actions x86             0-2             N               N               N       N       N       N       KILL
 06-sim-actions x86             7-107           N               N               N       N       N       N       KILL