]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
misc: add PKEY_UNRESTRICTED macro
authorYury Khrustalev <yury.khrustalev@arm.com>
Tue, 27 May 2025 10:06:43 +0000 (11:06 +0100)
committerYury Khrustalev <yury.khrustalev@arm.com>
Wed, 28 May 2025 09:58:40 +0000 (10:58 +0100)
A corresponding macro has been added to Linux UAPI headers in 6.15.

Reviewed-by: Florian Weimer <fweimer@redhat.com>
sysdeps/unix/sysv/linux/bits/mman-shared.h

index 31590979b92c476d41eba2e55c010a6c2522dae3..0be4b471bff0f959aebc6e58058717c387539f62 100644 (file)
 # endif
 
 /* Access restrictions for pkey_alloc.  */
-# ifndef PKEY_DISABLE_ACCESS
-#  define PKEY_DISABLE_ACCESS 0x1
-#  define PKEY_DISABLE_WRITE 0x2
-# endif
+# define PKEY_UNRESTRICTED 0x0
+# define PKEY_DISABLE_ACCESS 0x1
+# define PKEY_DISABLE_WRITE 0x2
 
 __BEGIN_DECLS