diff options
author | Joseph Myers <joseph@codesourcery.com> | 2023-05-26 15:04:51 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2023-05-26 15:04:51 +0000 |
commit | 9a51f4e2b6668d14a125bdb2abd0fe6b8102eed1 (patch) | |
tree | ee11b9bca1d7b82a26ce14dc2667dfb4d7c73296 | |
parent | a33c211b117016cab1069f9f1dd9285f0c00a506 (diff) | |
download | glibc-9a51f4e2b6668d14a125bdb2abd0fe6b8102eed1.zip glibc-9a51f4e2b6668d14a125bdb2abd0fe6b8102eed1.tar.gz glibc-9a51f4e2b6668d14a125bdb2abd0fe6b8102eed1.tar.bz2 |
Add MFD_NOEXEC_SEAL, MFD_EXEC from Linux 6.3 to bits/mman-shared.h
Linux 6.3 adds new constants MFD_NOEXEC_SEAL and MFD_EXEC. Add these
to bits/mman-shared.h (conditional on MFD_NOEXEC_SEAL not already
being defined, similar to the existing conditional on the older MFD_*
macros).
Tested for x86_64.
-rw-r--r-- | sysdeps/unix/sysv/linux/bits/mman-shared.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/bits/mman-shared.h b/sysdeps/unix/sysv/linux/bits/mman-shared.h index 91f2cad..6684a84 100644 --- a/sysdeps/unix/sysv/linux/bits/mman-shared.h +++ b/sysdeps/unix/sysv/linux/bits/mman-shared.h @@ -32,6 +32,10 @@ # define MFD_ALLOW_SEALING 2U # define MFD_HUGETLB 4U # endif +# ifndef MFD_NOEXEC_SEAL +# define MFD_NOEXEC_SEAL 8U +# define MFD_EXEC 0x10U +# endif /* Flags for mlock2. */ # ifndef MLOCK_ONFAULT |