File tree 3 files changed +16
-0
lines changed
src/unix/linux_like/linux 3 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -4302,6 +4302,10 @@ fn test_linux(target: &str) {
4302
4302
if loongarch64 && ( name == "MFD_NOEXEC_SEAL" || name == "MFD_EXEC" ) {
4303
4303
return true ;
4304
4304
}
4305
+ // FIXME: Requires >= 6.3 (6.6) kernel headers
4306
+ if name == "PR_GET_MDWE" || name == "PR_MDWE_NO_INHERIT" || name == "PR_MDWE_REFUSE_EXEC_GAIN" || name == "PR_SET_MDWE" {
4307
+ return true ;
4308
+ }
4305
4309
// FIXME(musl): Requires musl >= 1.2
4306
4310
if name == "SO_PREFER_BUSY_POLL"
4307
4311
|| name == "SO_BUSY_POLL_BUDGET"
@@ -4583,6 +4587,9 @@ fn test_linux(target: &str) {
4583
4587
true
4584
4588
}
4585
4589
4590
+ // FIXME(linux): Requires >= 6.6 kernel headers.
4591
+ "PR_MDWE_NO_INHERIT" => true ,
4592
+
4586
4593
// FIXME(linux): Requires >= 6.8 kernel headers.
4587
4594
"XDP_UMEM_TX_SW_CSUM"
4588
4595
| "XDP_TXMD_FLAGS_TIMESTAMP"
Original file line number Diff line number Diff line change @@ -2256,6 +2256,7 @@ PR_GET_FPEMU
2256
2256
PR_GET_FPEXC
2257
2257
PR_GET_FP_MODE
2258
2258
PR_GET_KEEPCAPS
2259
+ PR_GET_MDWE
2259
2260
PR_GET_NAME
2260
2261
PR_GET_NO_NEW_PRIVS
2261
2262
PR_GET_PDEATHSIG
@@ -2274,6 +2275,8 @@ PR_MCE_KILL_EARLY
2274
2275
PR_MCE_KILL_GET
2275
2276
PR_MCE_KILL_LATE
2276
2277
PR_MCE_KILL_SET
2278
+ PR_MDWE_NO_INHERIT
2279
+ PR_MDWE_REFUSE_EXEC_GAIN
2277
2280
PR_MPX_DISABLE_MANAGEMENT
2278
2281
PR_MPX_ENABLE_MANAGEMENT
2279
2282
PR_SCHED_CORE
@@ -2292,6 +2295,7 @@ PR_SET_FPEMU
2292
2295
PR_SET_FPEXC
2293
2296
PR_SET_FP_MODE
2294
2297
PR_SET_KEEPCAPS
2298
+ PR_SET_MDWE
2295
2299
PR_SET_MM
2296
2300
PR_SET_MM_ARG_END
2297
2301
PR_SET_MM_ARG_START
Original file line number Diff line number Diff line change @@ -3342,6 +3342,11 @@ pub const PR_GET_CHILD_SUBREAPER: c_int = 37;
3342
3342
pub const PR_SET_NO_NEW_PRIVS : c_int = 38 ;
3343
3343
pub const PR_GET_NO_NEW_PRIVS : c_int = 39 ;
3344
3344
3345
+ pub const PR_SET_MDWE : c_int = 65 ;
3346
+ pub const PR_GET_MDWE : c_int = 66 ;
3347
+ pub const PR_MDWE_REFUSE_EXEC_GAIN : c_uint = 1 << 0 ;
3348
+ pub const PR_MDWE_NO_INHERIT : c_uint = 1 << 1 ;
3349
+
3345
3350
pub const PR_GET_TID_ADDRESS : c_int = 40 ;
3346
3351
3347
3352
pub const PR_SET_THP_DISABLE : c_int = 41 ;
You can’t perform that action at this time.
0 commit comments