summaryrefslogtreecommitdiff
path: root/src/unix
diff options
context:
space:
mode:
authorDavid CARLIER <devnexen@gmail.com>2022-11-04 16:28:17 +0000
committerDavid CARLIER <devnexen@gmail.com>2022-11-07 21:48:32 +0000
commitf2a18e59d8d75ec7d422fd977bc6e7b5fee037cd (patch)
tree0bc3aed4ce68e79e0a8680ea5cb935e0ab1d3ad1 /src/unix
parentc206b79eb1d1571dc95c5e717e3bd6fe7de76583 (diff)
downloadrust-libc-f2a18e59d8d75ec7d422fd977bc6e7b5fee037cd.tar.gz
freebsd procctl flags update
Diffstat (limited to 'src/unix')
-rw-r--r--src/unix/bsd/freebsdlike/freebsd/mod.rs11
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;