diff options
author | Yury Khrustalev <yury.khrustalev@arm.com> | 2025-05-27 11:06:43 +0100 |
---|---|---|
committer | Yury Khrustalev <yury.khrustalev@arm.com> | 2025-05-28 10:58:40 +0100 |
commit | 01bb997ef59031e6b1031fb53a16754f1faab6df (patch) | |
tree | 49de5913fc3a567fe801d30ec00c0668cce1ae92 /sysdeps/unix/sysv/linux/bits | |
parent | 27cc947dcee01dd7d9054224aa24ab19fbb4cb9a (diff) | |
download | glibc-01bb997ef59031e6b1031fb53a16754f1faab6df.zip glibc-01bb997ef59031e6b1031fb53a16754f1faab6df.tar.gz glibc-01bb997ef59031e6b1031fb53a16754f1faab6df.tar.bz2 |
misc: add PKEY_UNRESTRICTED macro
A corresponding macro has been added to Linux UAPI headers in 6.15.
Reviewed-by: Florian Weimer <fweimer@redhat.com>
Diffstat (limited to 'sysdeps/unix/sysv/linux/bits')
-rw-r--r-- | sysdeps/unix/sysv/linux/bits/mman-shared.h | 7 |
1 files 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 3159097..0be4b47 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 |