File tree 5 files changed +12
-0
lines changed
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) {
3786
3786
if name. starts_with ( "NI_IDN" ) {
3787
3787
return true ;
3788
3788
}
3789
+ // FIXME: Requires >= 6.3 kernel headers
3790
+ if name == "MFD_NOEXEC_SEAL" || name == "MFD_EXEC" {
3791
+ return true ;
3792
+ }
3789
3793
}
3790
3794
match name {
3791
3795
// 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
1214
1214
MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_RSEQ
1215
1215
MFD_ALLOW_SEALING
1216
1216
MFD_CLOEXEC
1217
+ MFD_EXEC
1217
1218
MFD_HUGETLB
1219
+ MFD_NOEXEC_SEAL
1218
1220
MINIX2_SUPER_MAGIC
1219
1221
MINIX2_SUPER_MAGIC2
1220
1222
MINIX_SUPER_MAGIC
Original file line number Diff line number Diff line change @@ -1448,7 +1448,9 @@ MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_SYNC_CORE
1448
1448
MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_RSEQ
1449
1449
MFD_ALLOW_SEALING
1450
1450
MFD_CLOEXEC
1451
+ MFD_EXEC
1451
1452
MFD_HUGETLB
1453
+ MFD_NOEXEC_SEAL
1452
1454
MINSIGSTKSZ
1453
1455
MMAP_PAGE_ZERO
1454
1456
MNT_DETACH
Original file line number Diff line number Diff line change @@ -2275,6 +2275,8 @@ pub const O_TMPFILE: ::c_int = 0o20000000 | O_DIRECTORY;
2275
2275
pub const MFD_CLOEXEC : :: c_uint = 0x0001 ;
2276
2276
pub const MFD_ALLOW_SEALING : :: c_uint = 0x0002 ;
2277
2277
pub const MFD_HUGETLB : :: c_uint = 0x0004 ;
2278
+ pub const MFD_NOEXEC_SEAL : :: c_uint = 0x0008 ;
2279
+ pub const MFD_EXEC : :: c_uint = 0x0010 ;
2278
2280
pub const MFD_HUGE_64KB : :: c_uint = 0x40000000 ;
2279
2281
pub const MFD_HUGE_512KB : :: c_uint = 0x4c000000 ;
2280
2282
pub 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;
2433
2433
pub const MFD_CLOEXEC : :: c_uint = 0x0001 ;
2434
2434
pub const MFD_ALLOW_SEALING : :: c_uint = 0x0002 ;
2435
2435
pub const MFD_HUGETLB : :: c_uint = 0x0004 ;
2436
+ pub const MFD_NOEXEC_SEAL : :: c_uint = 0x0008 ;
2437
+ pub const MFD_EXEC : :: c_uint = 0x0010 ;
2436
2438
pub const MFD_HUGE_64KB : :: c_uint = 0x40000000 ;
2437
2439
pub const MFD_HUGE_512KB : :: c_uint = 0x4c000000 ;
2438
2440
pub const MFD_HUGE_1MB : :: c_uint = 0x50000000 ;
You can’t perform that action at this time.
0 commit comments