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 @@ -3786,6 +3786,10 @@ fn test_linux(target: &str) {
37863786 if name. starts_with ( "NI_IDN" ) {
37873787 return true ;
37883788 }
3789+ // FIXME: Requires >= 6.3 kernel headers
3790+ if name == "MFD_NOEXEC_SEAL" || name == "MFD_EXEC" {
3791+ return true ;
3792+ }
37893793 }
37903794 match name {
37913795 // These constants are not available if gnu headers have been included
Original file line number Diff line number Diff line change @@ -1214,7 +1214,9 @@ MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_SYNC_CORE
12141214MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_RSEQ
12151215MFD_ALLOW_SEALING
12161216MFD_CLOEXEC
1217+ MFD_EXEC
12171218MFD_HUGETLB
1219+ MFD_NOEXEC_SEAL
12181220MINIX2_SUPER_MAGIC
12191221MINIX2_SUPER_MAGIC2
12201222MINIX_SUPER_MAGIC
Original file line number Diff line number Diff line change @@ -1448,7 +1448,9 @@ MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_SYNC_CORE
14481448MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_RSEQ
14491449MFD_ALLOW_SEALING
14501450MFD_CLOEXEC
1451+ MFD_EXEC
14511452MFD_HUGETLB
1453+ MFD_NOEXEC_SEAL
14521454MINSIGSTKSZ
14531455MMAP_PAGE_ZERO
14541456MNT_DETACH
Original file line number Diff line number Diff line change @@ -2275,6 +2275,8 @@ pub const O_TMPFILE: ::c_int = 0o20000000 | O_DIRECTORY;
22752275pub const MFD_CLOEXEC : :: c_uint = 0x0001 ;
22762276pub const MFD_ALLOW_SEALING : :: c_uint = 0x0002 ;
22772277pub const MFD_HUGETLB : :: c_uint = 0x0004 ;
2278+ pub const MFD_NOEXEC_SEAL : :: c_uint = 0x0008 ;
2279+ pub const MFD_EXEC : :: c_uint = 0x0010 ;
22782280pub const MFD_HUGE_64KB : :: c_uint = 0x40000000 ;
22792281pub const MFD_HUGE_512KB : :: c_uint = 0x4c000000 ;
22802282pub const MFD_HUGE_1MB : :: c_uint = 0x50000000 ;
Original file line number Diff line number Diff line change @@ -2433,6 +2433,8 @@ pub const CMSPAR: ::tcflag_t = 0o10000000000;
24332433pub const MFD_CLOEXEC : :: c_uint = 0x0001 ;
24342434pub const MFD_ALLOW_SEALING : :: c_uint = 0x0002 ;
24352435pub const MFD_HUGETLB : :: c_uint = 0x0004 ;
2436+ pub const MFD_NOEXEC_SEAL : :: c_uint = 0x0008 ;
2437+ pub const MFD_EXEC : :: c_uint = 0x0010 ;
24362438pub const MFD_HUGE_64KB : :: c_uint = 0x40000000 ;
24372439pub const MFD_HUGE_512KB : :: c_uint = 0x4c000000 ;
24382440pub const MFD_HUGE_1MB : :: c_uint = 0x50000000 ;
You can’t perform that action at this time.
0 commit comments