]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Linux syscall: copy and paste error in openat2 fd_allowed check
authorPaul Floyd <pjfloyd@wanadoo.fr>
Tue, 26 Aug 2025 11:13:49 +0000 (13:13 +0200)
committerPaul Floyd <pjfloyd@wanadoo.fr>
Tue, 26 Aug 2025 11:13:49 +0000 (13:13 +0200)
coregrind/m_syswrap/syswrap-linux.c

index 984acaefeea4006907295e8135e1d8e67cb9c493..ff87ddf7197c8ef177915c2c3002bec7543cac65 100644 (file)
@@ -14175,7 +14175,7 @@ PRE(sys_openat2)
    if (ML_(safe_to_deref)( (void*)(Addr)ARG2, 1 )
        && *(Char *)(Addr)ARG2 != '/'
        && ((Int)ARG1) != ((Int)VKI_AT_FDCWD)
-       && !ML_(fd_allowed)(ARG1, "openat", tid, False))
+       && !ML_(fd_allowed)(ARG1, "openat2", tid, False))
       SET_STATUS_Failure( VKI_EBADF );
    /* Handle the case where the open is of /proc/self/cmdline or
       /proc/<pid>/cmdline, and just give it a copy of the fd for the