diff options
-rw-r--r-- | tools/testing/selftests/seccomp/seccomp_bpf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/testing/selftests/seccomp/seccomp_bpf.c b/tools/testing/selftests/seccomp/seccomp_bpf.c index 24dbf634e2dd..0b457e8e0f0c 100644 --- a/tools/testing/selftests/seccomp/seccomp_bpf.c +++ b/tools/testing/selftests/seccomp/seccomp_bpf.c | |||
@@ -1717,7 +1717,7 @@ void tracer_ptrace(struct __test_metadata *_metadata, pid_t tracee, | |||
1717 | 1717 | ||
1718 | if (nr == __NR_getpid) | 1718 | if (nr == __NR_getpid) |
1719 | change_syscall(_metadata, tracee, __NR_getppid); | 1719 | change_syscall(_metadata, tracee, __NR_getppid); |
1720 | if (nr == __NR_open) | 1720 | if (nr == __NR_openat) |
1721 | change_syscall(_metadata, tracee, -1); | 1721 | change_syscall(_metadata, tracee, -1); |
1722 | } | 1722 | } |
1723 | 1723 | ||
@@ -1792,7 +1792,7 @@ TEST_F(TRACE_syscall, ptrace_syscall_dropped) | |||
1792 | true); | 1792 | true); |
1793 | 1793 | ||
1794 | /* Tracer should skip the open syscall, resulting in EPERM. */ | 1794 | /* Tracer should skip the open syscall, resulting in EPERM. */ |
1795 | EXPECT_SYSCALL_RETURN(EPERM, syscall(__NR_open)); | 1795 | EXPECT_SYSCALL_RETURN(EPERM, syscall(__NR_openat)); |
1796 | } | 1796 | } |
1797 | 1797 | ||
1798 | TEST_F(TRACE_syscall, syscall_allowed) | 1798 | TEST_F(TRACE_syscall, syscall_allowed) |