about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2020-02-09 16:29:18 +0100
committerFlorian Weimer <fweimer@redhat.com>2020-02-09 17:39:40 +0100
commitc837ea7168f7efbaf5f7b61b946ee4abcda73580 (patch)
treeeccd7d6f67b1c4f615ff03b0d1e1c36ba70fb96b
parente6509797f897ebeb3592fd21bceb2f0bf986433a (diff)
downloadglibc-c837ea7168f7efbaf5f7b61b946ee4abcda73580.tar.gz
glibc-c837ea7168f7efbaf5f7b61b946ee4abcda73580.tar.xz
glibc-c837ea7168f7efbaf5f7b61b946ee4abcda73580.zip
Linux: pkey_mprotect syscall number is always available
Due to the built-in tables, __NR_pkey_mprotect is always defined.
-rw-r--r--sysdeps/unix/sysv/linux/pkey_mprotect.c5
1 files changed, 0 insertions, 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
 }