File tree Expand file tree Collapse file tree 5 files changed +12
-0
lines changed Expand file tree Collapse file tree 5 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -3834,6 +3834,10 @@ fn test_linux(target: &str) {
38343834 if name. starts_with ( "NI_IDN" ) {
38353835 return true ;
38363836 }
3837+ // FIXME: Requires >= 6.3 kernel headers
3838+ if name == "MFD_NOEXEC_SEAL" || name == "MFD_EXEC" {
3839+ return true ;
3840+ }
38373841 }
38383842 match name {
38393843 // These constants are not available if gnu headers have been included
Original file line number Diff line number Diff line change @@ -1251,7 +1251,9 @@ MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_SYNC_CORE
12511251MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_RSEQ
12521252MFD_ALLOW_SEALING
12531253MFD_CLOEXEC
1254+ MFD_EXEC
12541255MFD_HUGETLB
1256+ MFD_NOEXEC_SEAL
12551257MINIX2_SUPER_MAGIC
12561258MINIX2_SUPER_MAGIC2
12571259MINIX_SUPER_MAGIC
Original file line number Diff line number Diff line change @@ -1465,7 +1465,9 @@ MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_SYNC_CORE
14651465MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_RSEQ
14661466MFD_ALLOW_SEALING
14671467MFD_CLOEXEC
1468+ MFD_EXEC
14681469MFD_HUGETLB
1470+ MFD_NOEXEC_SEAL
14691471MINSIGSTKSZ
14701472MMAP_PAGE_ZERO
14711473MNT_DETACH
Original file line number Diff line number Diff line change @@ -2255,6 +2255,8 @@ pub const O_TMPFILE: ::c_int = 0o20000000 | O_DIRECTORY;
22552255pub const MFD_CLOEXEC : :: c_uint = 0x0001 ;
22562256pub const MFD_ALLOW_SEALING : :: c_uint = 0x0002 ;
22572257pub const MFD_HUGETLB : :: c_uint = 0x0004 ;
2258+ pub const MFD_NOEXEC_SEAL : :: c_uint = 0x0008 ;
2259+ pub const MFD_EXEC : :: c_uint = 0x0010 ;
22582260pub const MFD_HUGE_64KB : :: c_uint = 0x40000000 ;
22592261pub const MFD_HUGE_512KB : :: c_uint = 0x4c000000 ;
22602262pub const MFD_HUGE_1MB : :: c_uint = 0x50000000 ;
Original file line number Diff line number Diff line change @@ -2789,6 +2789,8 @@ pub const CMSPAR: ::tcflag_t = 0o10000000000;
27892789pub const MFD_CLOEXEC : :: c_uint = 0x0001 ;
27902790pub const MFD_ALLOW_SEALING : :: c_uint = 0x0002 ;
27912791pub const MFD_HUGETLB : :: c_uint = 0x0004 ;
2792+ pub const MFD_NOEXEC_SEAL : :: c_uint = 0x0008 ;
2793+ pub const MFD_EXEC : :: c_uint = 0x0010 ;
27922794pub const MFD_HUGE_64KB : :: c_uint = 0x40000000 ;
27932795pub const MFD_HUGE_512KB : :: c_uint = 0x4c000000 ;
27942796pub const MFD_HUGE_1MB : :: c_uint = 0x50000000 ;
You can’t perform that action at this time.
0 commit comments