From: Florian Weimer Date: Sun, 9 Feb 2020 15:29:18 +0000 (+0100) Subject: Linux: pkey_mprotect syscall number is always available X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c837ea7168f7efbaf5f7b61b946ee4abcda73580;p=thirdparty%2Fglibc.git Linux: pkey_mprotect syscall number is always available Due to the built-in tables, __NR_pkey_mprotect is always defined. --- diff --git a/sysdeps/unix/sysv/linux/pkey_mprotect.c b/sysdeps/unix/sysv/linux/pkey_mprotect.c index 5d372edfd54..4ec1feba2ec 100644 --- a/sysdeps/unix/sysv/linux/pkey_mprotect.c +++ b/sysdeps/unix/sysv/linux/pkey_mprotect.c @@ -28,10 +28,5 @@ pkey_mprotect (void *addr, size_t len, int prot, int pkey) /* If the key is -1, the system call is precisely equivalent to mprotect. */ return __mprotect (addr, len, prot); -#ifdef __NR_pkey_mprotect return INLINE_SYSCALL_CALL (pkey_mprotect, addr, len, prot, pkey); -#else - __set_errno (ENOSYS); - return -1; -#endif }