diff options
author | Andreas Schwab <schwab@suse.de> | 2020-08-18 15:59:54 +0200 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2020-08-19 21:23:19 -0400 |
commit | a317fabc1fd915f19f7e7326bf7dcb77493f1210 (patch) | |
tree | 3b6c54bb84d0684e3b436e9ed78446e5de7a701b /tests/06-sim-actions.py | |
parent | 34cde704979defcbddb8eea64295acf0e477c250 (diff) | |
download | libseccomp-a317fabc1fd915f19f7e7326bf7dcb77493f1210.tar.gz |
tests: use openat and fstat instead of open and stat syscalls in tests 04 and 06
Architectures like aarch64 and riscv64, and all future architectures that
use the generic syscall table, do not support the open and stat syscalls.
Use the openat and fstat syscalls instead.
Signed-off-by: Andreas Schwab <schwab@suse.de>
Acked-by: Tom Hromatka <tom.hromatka@oracle.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'tests/06-sim-actions.py')
-rwxr-xr-x | tests/06-sim-actions.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/06-sim-actions.py b/tests/06-sim-actions.py index f14d6ed..253061d 100755 --- a/tests/06-sim-actions.py +++ b/tests/06-sim-actions.py @@ -37,8 +37,8 @@ def test(args): f.add_rule(LOG, "rt_sigreturn") f.add_rule(ERRNO(errno.EPERM), "write") f.add_rule(TRAP, "close") - f.add_rule(TRACE(1234), "open") - f.add_rule(KILL_PROCESS, "stat") + f.add_rule(TRACE(1234), "openat") + f.add_rule(KILL_PROCESS, "fstat") return f args = util.get_opt() |