Merge tag 'seccomp-v4.16-rc3' of https://git.kernel.org/pub/scm/linux/kernel/git...
[muen/linux.git] / tools / testing / selftests / seccomp / seccomp_bpf.c
index 92db48825dc13ffe8aba9897ff6a94d1facece77..5df609950a666f8000307653a0b1e8d4368549a2 100644 (file)
@@ -1726,7 +1726,7 @@ void tracer_ptrace(struct __test_metadata *_metadata, pid_t tracee,
 
        if (nr == __NR_getpid)
                change_syscall(_metadata, tracee, __NR_getppid);
-       if (nr == __NR_open)
+       if (nr == __NR_openat)
                change_syscall(_metadata, tracee, -1);
 }
 
@@ -1801,7 +1801,7 @@ TEST_F(TRACE_syscall, ptrace_syscall_dropped)
                                           true);
 
        /* Tracer should skip the open syscall, resulting in EPERM. */
-       EXPECT_SYSCALL_RETURN(EPERM, syscall(__NR_open));
+       EXPECT_SYSCALL_RETURN(EPERM, syscall(__NR_openat));
 }
 
 TEST_F(TRACE_syscall, syscall_allowed)