File tree 4 files changed +27
-0
lines changed
src/unix/bsd/freebsdlike/freebsd 4 files changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -205,6 +205,8 @@ pub const RAND_MAX: ::c_int = 0x7fff_fffd;
205
205
pub const PROC_ASLR_CTL : :: c_int = 13 ;
206
206
pub const PROC_ASLR_STATUS : :: c_int = 14 ;
207
207
208
+ pub const PROC_PROCCTL_MD_MIN : :: c_int = 0x10000000 ;
209
+
208
210
pub const SO_DOMAIN : :: c_int = 0x1019 ;
209
211
210
212
pub const EINTEGRITY : :: c_int = 97 ;
@@ -244,3 +246,10 @@ cfg_if! {
244
246
pub use self :: b64:: * ;
245
247
}
246
248
}
249
+
250
+ cfg_if ! {
251
+ if #[ cfg( target_arch = "x86_64" ) ] {
252
+ mod x86_64;
253
+ pub use self :: x86_64:: * ;
254
+ }
255
+ }
Original file line number Diff line number Diff line change
1
+ pub const PROC_KPTI_CTL : :: c_int = :: PROC_PROCCTL_MD_MIN ;
2
+ pub const PROC_KPTI_CTL_ENABLE_ON_EXEC : :: c_int = 1 ;
3
+ pub const PROC_KPTI_CTL_DISABLE_ON_EXEC : :: c_int = 2 ;
4
+ pub const PROC_KPTI_STATUS : :: c_int = :: PROC_PROCCTL_MD_MIN + 1 ;
5
+ pub const PROC_KPTI_STATUS_ACTIVE : :: c_int = 0x80000000 ;
Original file line number Diff line number Diff line change @@ -223,6 +223,7 @@ pub const PROC_ASLR_CTL: ::c_int = 13;
223
223
pub const PROC_ASLR_STATUS : :: c_int = 14 ;
224
224
pub const PROC_PROTMAX_CTL : :: c_int = 15 ;
225
225
pub const PROC_PROTMAX_STATUS : :: c_int = 16 ;
226
+ pub const PROC_PROCCTL_MD_MIN : :: c_int = 0x10000000 ;
226
227
227
228
pub const LOCAL_CREDS_PERSISTENT : :: c_int = 3 ;
228
229
pub const SCM_CREDS2 : :: c_int = 0x08 ;
@@ -275,3 +276,10 @@ cfg_if! {
275
276
pub use self :: b64:: * ;
276
277
}
277
278
}
279
+
280
+ cfg_if ! {
281
+ if #[ cfg( target_arch = "x86_64" ) ] {
282
+ mod x86_64;
283
+ pub use self :: x86_64:: * ;
284
+ }
285
+ }
Original file line number Diff line number Diff line change
1
+ pub const PROC_KPTI_CTL : :: c_int = :: PROC_PROCCTL_MD_MIN ;
2
+ pub const PROC_KPTI_CTL_ENABLE_ON_EXEC : :: c_int = 1 ;
3
+ pub const PROC_KPTI_CTL_DISABLE_ON_EXEC : :: c_int = 2 ;
4
+ pub const PROC_KPTI_STATUS : :: c_int = :: PROC_PROCCTL_MD_MIN + 1 ;
5
+ pub const PROC_KPTI_STATUS_ACTIVE : :: c_int = 0x80000000 ;
You can’t perform that action at this time.
0 commit comments