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 @@ -3821,6 +3821,10 @@ fn test_linux(target: &str) {
3821
3821
if name. starts_with ( "NI_IDN" ) {
3822
3822
return true ;
3823
3823
}
3824
+ // FIXME: Requires >= 6.3 kernel headers
3825
+ if name == "MFD_NOEXEC_SEAL" || name == "MFD_EXEC" {
3826
+ return true ;
3827
+ }
3824
3828
}
3825
3829
match name {
3826
3830
// 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
1251
1251
MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_RSEQ
1252
1252
MFD_ALLOW_SEALING
1253
1253
MFD_CLOEXEC
1254
+ MFD_EXEC
1254
1255
MFD_HUGETLB
1256
+ MFD_NOEXEC_SEAL
1255
1257
MINIX2_SUPER_MAGIC
1256
1258
MINIX2_SUPER_MAGIC2
1257
1259
MINIX_SUPER_MAGIC
Original file line number Diff line number Diff line change @@ -1465,7 +1465,9 @@ MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_SYNC_CORE
1465
1465
MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_RSEQ
1466
1466
MFD_ALLOW_SEALING
1467
1467
MFD_CLOEXEC
1468
+ MFD_EXEC
1468
1469
MFD_HUGETLB
1470
+ MFD_NOEXEC_SEAL
1469
1471
MINSIGSTKSZ
1470
1472
MMAP_PAGE_ZERO
1471
1473
MNT_DETACH
Original file line number Diff line number Diff line change @@ -2255,6 +2255,8 @@ pub const O_TMPFILE: ::c_int = 0o20000000 | O_DIRECTORY;
2255
2255
pub const MFD_CLOEXEC : :: c_uint = 0x0001 ;
2256
2256
pub const MFD_ALLOW_SEALING : :: c_uint = 0x0002 ;
2257
2257
pub const MFD_HUGETLB : :: c_uint = 0x0004 ;
2258
+ pub const MFD_NOEXEC_SEAL : :: c_uint = 0x0008 ;
2259
+ pub const MFD_EXEC : :: c_uint = 0x0010 ;
2258
2260
pub const MFD_HUGE_64KB : :: c_uint = 0x40000000 ;
2259
2261
pub const MFD_HUGE_512KB : :: c_uint = 0x4c000000 ;
2260
2262
pub const MFD_HUGE_1MB : :: c_uint = 0x50000000 ;
Original file line number Diff line number Diff line change @@ -2812,6 +2812,8 @@ pub const CMSPAR: ::tcflag_t = 0o10000000000;
2812
2812
pub const MFD_CLOEXEC : :: c_uint = 0x0001 ;
2813
2813
pub const MFD_ALLOW_SEALING : :: c_uint = 0x0002 ;
2814
2814
pub const MFD_HUGETLB : :: c_uint = 0x0004 ;
2815
+ pub const MFD_NOEXEC_SEAL : :: c_uint = 0x0008 ;
2816
+ pub const MFD_EXEC : :: c_uint = 0x0010 ;
2815
2817
pub const MFD_HUGE_64KB : :: c_uint = 0x40000000 ;
2816
2818
pub const MFD_HUGE_512KB : :: c_uint = 0x4c000000 ;
2817
2819
pub const MFD_HUGE_1MB : :: c_uint = 0x50000000 ;
You can’t perform that action at this time.
0 commit comments