This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH 15/26] Linux: pkey_mprotect syscall number is always available
- From: Florian Weimer <fweimer at redhat dot com>
- To: libc-alpha at sourceware dot org
- Date: Sun, 09 Feb 2020 21:20:41 +0100
- Subject: [PATCH 15/26] Linux: pkey_mprotect syscall number is always available
- References: <cover.1581279333.git.fweimer@redhat.com>
Due to the built-in tables, __NR_pkey_mprotect is always defined.
---
sysdeps/unix/sysv/linux/pkey_mprotect.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/sysdeps/unix/sysv/linux/pkey_mprotect.c b/sysdeps/unix/sysv/linux/pkey_mprotect.c
index 5d372edfd5..4ec1feba2e 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
}
--
2.24.1