From: Yury Khrustalev Date: Tue, 27 May 2025 10:06:43 +0000 (+0100) Subject: misc: add PKEY_UNRESTRICTED macro X-Git-Tag: glibc-2.42~199 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=01bb997ef59031e6b1031fb53a16754f1faab6df;p=thirdparty%2Fglibc.git misc: add PKEY_UNRESTRICTED macro A corresponding macro has been added to Linux UAPI headers in 6.15. Reviewed-by: Florian Weimer --- 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