public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc] Add MFD_NOEXEC_SEAL, MFD_EXEC from Linux 6.3 to bits/mman-shared.h
@ 2023-05-26 15:05 Joseph Myers
  0 siblings, 0 replies; only message in thread
From: Joseph Myers @ 2023-05-26 15:05 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=9a51f4e2b6668d14a125bdb2abd0fe6b8102eed1

commit 9a51f4e2b6668d14a125bdb2abd0fe6b8102eed1
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Fri May 26 15:04:51 2023 +0000

    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.

Diff:
---
 sysdeps/unix/sysv/linux/bits/mman-shared.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/sysdeps/unix/sysv/linux/bits/mman-shared.h b/sysdeps/unix/sysv/linux/bits/mman-shared.h
index 91f2cad00f..6684a84a26 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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-05-26 15:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-26 15:05 [glibc] Add MFD_NOEXEC_SEAL, MFD_EXEC from Linux 6.3 to bits/mman-shared.h Joseph Myers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).