From 01bb997ef59031e6b1031fb53a16754f1faab6df Mon Sep 17 00:00:00 2001 From: Yury Khrustalev Date: Tue, 27 May 2025 11:06:43 +0100 Subject: [PATCH] misc: add PKEY_UNRESTRICTED macro A corresponding macro has been added to Linux UAPI headers in 6.15. Reviewed-by: Florian Weimer --- sysdeps/unix/sysv/linux/bits/mman-shared.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/sysdeps/unix/sysv/linux/bits/mman-shared.h b/sysdeps/unix/sysv/linux/bits/mman-shared.h index 31590979b9..0be4b471bf 100644 --- a/sysdeps/unix/sysv/linux/bits/mman-shared.h +++ b/sysdeps/unix/sysv/linux/bits/mman-shared.h @@ -43,10 +43,9 @@ # 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 -- 2.47.2