diff options
author | bors <bors@rust-lang.org> | 2022-11-10 11:38:33 +0000 |
---|---|---|
committer | bors <bors@rust-lang.org> | 2022-11-10 11:38:33 +0000 |
commit | 8b6bfd7d9f33a5319e52ac8df8336fac53be0c82 (patch) | |
tree | 5f5fde53e327a62fd48665979610ead3abf97c6d /src/unix | |
parent | 3daacc55796f7e8e4c15504453f8eb38a8765a94 (diff) | |
parent | f2a18e59d8d75ec7d422fd977bc6e7b5fee037cd (diff) | |
download | rust-libc-8b6bfd7d9f33a5319e52ac8df8336fac53be0c82.tar.gz |
Auto merge of #2992 - devnexen:fbsd_procctl_upd, r=JohnTitor
freebsd procctl flags update
Diffstat (limited to 'src/unix')
-rw-r--r-- | src/unix/bsd/freebsdlike/freebsd/mod.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/unix/bsd/freebsdlike/freebsd/mod.rs b/src/unix/bsd/freebsdlike/freebsd/mod.rs index f34b24c579..1e791ab0c0 100644 --- a/src/unix/bsd/freebsdlike/freebsd/mod.rs +++ b/src/unix/bsd/freebsdlike/freebsd/mod.rs @@ -2379,6 +2379,10 @@ pub const PROC_PROTMAX_CTL: ::c_int = 15; pub const PROC_PROTMAX_STATUS: ::c_int = 16; pub const PROC_STACKGAP_CTL: ::c_int = 17; pub const PROC_STACKGAP_STATUS: ::c_int = 18; +pub const PROC_NO_NEW_PRIVS_CTL: ::c_int = 19; +pub const PROC_NO_NEW_PRIVS_STATUS: ::c_int = 20; +pub const PROC_WXMAP_CTL: ::c_int = 21; +pub const PROC_WXMAP_STATUS: ::c_int = 22; pub const PROC_PROCCTL_MD_MIN: ::c_int = 0x10000000; pub const PPROT_SET: ::c_int = 1; @@ -2408,6 +2412,13 @@ pub const PROC_STACKGAP_DISABLE: ::c_int = 0x0002; pub const PROC_STACKGAP_ENABLE_EXEC: ::c_int = 0x0004; pub const PROC_STACKGAP_DISABLE_EXEC: ::c_int = 0x0008; +pub const PROC_NO_NEW_PRIVS_ENABLE: ::c_int = 1; +pub const PROC_NO_NEW_PRIVS_DISABLE: ::c_int = 2; + +pub const PROC_WX_MAPPINGS_PERMIT: ::c_int = 0x0001; +pub const PROC_WX_MAPPINGS_DISALLOW_EXEC: ::c_int = 0x0002; +pub const PROC_WXORX_ENFORCE: ::c_int = 0x80000000; + pub const AF_SLOW: ::c_int = 33; pub const AF_SCLUSTER: ::c_int = 34; pub const AF_ARP: ::c_int = 35; |