File tree 5 files changed +15
-0
lines changed
5 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -3839,6 +3839,10 @@ fn test_linux(target: &str) {
3839
3839
if name. starts_with ( "NI_IDN" ) {
3840
3840
return true ;
3841
3841
}
3842
+ // FIXME: Requires >= 6.3 kernel headers
3843
+ if name == "MFD_NOEXEC_SEAL" || name == "MFD_EXEC" {
3844
+ return true ;
3845
+ }
3842
3846
}
3843
3847
match name {
3844
3848
// These constants are not available if gnu headers have been included
@@ -4049,6 +4053,9 @@ fn test_linux(target: &str) {
4049
4053
if musl => true ,
4050
4054
"CLONE_CLEAR_SIGHAND" | "CLONE_INTO_CGROUP" => true ,
4051
4055
4056
+ // FIXME: Requires >= 6.3 kernel headers
4057
+ "MFD_EXEC" | "MFD_NOEXEC_SEAL" if sparc64 => true ,
4058
+
4052
4059
// kernel 6.1 minimum
4053
4060
"MADV_COLLAPSE" => true ,
4054
4061
Original file line number Diff line number Diff line change @@ -1252,7 +1252,9 @@ MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_SYNC_CORE
1252
1252
MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_RSEQ
1253
1253
MFD_ALLOW_SEALING
1254
1254
MFD_CLOEXEC
1255
+ MFD_EXEC
1255
1256
MFD_HUGETLB
1257
+ MFD_NOEXEC_SEAL
1256
1258
MINIX2_SUPER_MAGIC
1257
1259
MINIX2_SUPER_MAGIC2
1258
1260
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 @@ -2271,6 +2271,8 @@ pub const O_TMPFILE: ::c_int = 0o20000000 | O_DIRECTORY;
2271
2271
pub const MFD_CLOEXEC : :: c_uint = 0x0001 ;
2272
2272
pub const MFD_ALLOW_SEALING : :: c_uint = 0x0002 ;
2273
2273
pub const MFD_HUGETLB : :: c_uint = 0x0004 ;
2274
+ pub const MFD_NOEXEC_SEAL : :: c_uint = 0x0008 ;
2275
+ pub const MFD_EXEC : :: c_uint = 0x0010 ;
2274
2276
pub const MFD_HUGE_64KB : :: c_uint = 0x40000000 ;
2275
2277
pub const MFD_HUGE_512KB : :: c_uint = 0x4c000000 ;
2276
2278
pub const MFD_HUGE_1MB : :: c_uint = 0x50000000 ;
Original file line number Diff line number Diff line change @@ -2790,6 +2790,8 @@ pub const CMSPAR: ::tcflag_t = 0o10000000000;
2790
2790
pub const MFD_CLOEXEC : :: c_uint = 0x0001 ;
2791
2791
pub const MFD_ALLOW_SEALING : :: c_uint = 0x0002 ;
2792
2792
pub const MFD_HUGETLB : :: c_uint = 0x0004 ;
2793
+ pub const MFD_NOEXEC_SEAL : :: c_uint = 0x0008 ;
2794
+ pub const MFD_EXEC : :: c_uint = 0x0010 ;
2793
2795
pub const MFD_HUGE_64KB : :: c_uint = 0x40000000 ;
2794
2796
pub const MFD_HUGE_512KB : :: c_uint = 0x4c000000 ;
2795
2797
pub const MFD_HUGE_1MB : :: c_uint = 0x50000000 ;
You can’t perform that action at this time.
0 commit comments