File tree Expand file tree Collapse file tree 4 files changed +27
-0
lines changed
src/unix/bsd/freebsdlike/freebsd Expand file tree Collapse file tree 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;
205205pub const PROC_ASLR_CTL : :: c_int = 13 ;
206206pub const PROC_ASLR_STATUS : :: c_int = 14 ;
207207
208+ pub const PROC_PROCCTL_MD_MIN : :: c_int = 0x10000000 ;
209+
208210pub const SO_DOMAIN : :: c_int = 0x1019 ;
209211
210212pub const EINTEGRITY : :: c_int = 97 ;
@@ -244,3 +246,10 @@ cfg_if! {
244246 pub use self :: b64:: * ;
245247 }
246248}
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;
223223pub const PROC_ASLR_STATUS : :: c_int = 14 ;
224224pub const PROC_PROTMAX_CTL : :: c_int = 15 ;
225225pub const PROC_PROTMAX_STATUS : :: c_int = 16 ;
226+ pub const PROC_PROCCTL_MD_MIN : :: c_int = 0x10000000 ;
226227
227228pub const LOCAL_CREDS_PERSISTENT : :: c_int = 3 ;
228229pub const SCM_CREDS2 : :: c_int = 0x08 ;
@@ -275,3 +276,10 @@ cfg_if! {
275276 pub use self :: b64:: * ;
276277 }
277278}
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