Skip to content

Commit

Permalink
tests: add fstatfs() syscall in the 06-sim-actions
Browse files Browse the repository at this point in the history
Signed-off-by: Xiaotian Wu <[email protected]>
Acked-by: Tom Hromatka <[email protected]>
Signed-off-by: Paul Moore <[email protected]>
  • Loading branch information
yetist authored and pcmoore committed Feb 19, 2023
1 parent b9633de commit 315f7b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/06-sim-actions.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion tests/06-sim-actions.tests
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 315f7b9

Please sign in to comment.