@@ -796,6 +796,7 @@ pub const ENOTCAPABLE: ::c_int = 93;
796
796
pub const ECAPMODE : :: c_int = 94 ;
797
797
pub const ENOTRECOVERABLE : :: c_int = 95 ;
798
798
pub const EOWNERDEAD : :: c_int = 96 ;
799
+ pub const EINTEGRITY : :: c_int = 97 ;
799
800
pub const RLIMIT_NPTS : :: c_int = 11 ;
800
801
pub const RLIMIT_SWAP : :: c_int = 12 ;
801
802
pub const RLIMIT_KQUEUES : :: c_int = 13 ;
@@ -1072,6 +1073,8 @@ pub const MNT_UNION: ::c_int = 0x00000020;
1072
1073
pub const MNT_EXPUBLIC : :: c_int = 0x20000000 ;
1073
1074
pub const MNT_NONBUSY : :: c_int = 0x04000000 ;
1074
1075
1076
+ pub const SCM_CREDS2 : :: c_int = 0x08 ;
1077
+
1075
1078
pub const SO_BINTIME : :: c_int = 0x2000 ;
1076
1079
pub const SO_NO_OFFLOAD : :: c_int = 0x4000 ;
1077
1080
pub const SO_NO_DDP : :: c_int = 0x8000 ;
@@ -1085,9 +1088,11 @@ pub const SO_SETFIB: ::c_int = 0x1014;
1085
1088
pub const SO_USER_COOKIE : :: c_int = 0x1015 ;
1086
1089
pub const SO_PROTOCOL : :: c_int = 0x1016 ;
1087
1090
pub const SO_PROTOTYPE : :: c_int = SO_PROTOCOL ;
1091
+ pub const SO_DOMAIN : :: c_int = 0x1019 ;
1088
1092
pub const SO_VENDOR : :: c_int = 0x80000000 ;
1089
1093
1090
1094
pub const LOCAL_CREDS : :: c_int = 2 ;
1095
+ pub const LOCAL_CREDS_PERSISTENT : :: c_int = 3 ;
1091
1096
pub const LOCAL_CONNWAIT : :: c_int = 4 ;
1092
1097
pub const LOCAL_VENDOR : :: c_int = SO_VENDOR ;
1093
1098
@@ -1136,8 +1141,13 @@ pub const PROC_TRAPCAP_CTL: ::c_int = 9;
1136
1141
pub const PROC_TRAPCAP_STATUS : :: c_int = 10 ;
1137
1142
pub const PROC_PDEATHSIG_CTL : :: c_int = 11 ;
1138
1143
pub const PROC_PDEATHSIG_STATUS : :: c_int = 12 ;
1144
+ pub const PROC_ASLR_CTL : :: c_int = 13 ;
1145
+ pub const PROC_ASLR_STATUS : :: c_int = 14 ;
1146
+ pub const PROC_PROTMAX_CTL : :: c_int = 15 ;
1147
+ pub const PROC_PROTMAX_STATUS : :: c_int = 16 ;
1139
1148
pub const PROC_STACKGAP_CTL : :: c_int = 17 ;
1140
1149
pub const PROC_STACKGAP_STATUS : :: c_int = 18 ;
1150
+ pub const PROC_PROCCTL_MD_MIN : :: c_int = 0x10000000 ;
1141
1151
1142
1152
pub const AF_SLOW : :: c_int = 33 ;
1143
1153
pub const AF_SCLUSTER : :: c_int = 34 ;
@@ -1604,14 +1614,28 @@ pub const UF_READONLY: ::c_ulong = 0x00001000;
1604
1614
pub const UF_HIDDEN : :: c_ulong = 0x00008000 ;
1605
1615
pub const SF_SNAPSHOT : :: c_ulong = 0x00200000 ;
1606
1616
1617
+ // fcntl commands
1618
+ pub const F_ADD_SEALS : :: c_int = 19 ;
1619
+ pub const F_DUP2FD : :: c_int = 10 ;
1620
+ pub const F_DUP2FD_CLOEXEC : :: c_int = 18 ;
1621
+ pub const F_GET_SEALS : :: c_int = 20 ;
1607
1622
pub const F_OGETLK : :: c_int = 7 ;
1608
1623
pub const F_OSETLK : :: c_int = 8 ;
1609
1624
pub const F_OSETLKW : :: c_int = 9 ;
1610
- pub const F_DUP2FD : :: c_int = 10 ;
1611
- pub const F_SETLK_REMOTE : :: c_int = 14 ;
1612
- pub const F_READAHEAD : :: c_int = 15 ;
1613
1625
pub const F_RDAHEAD : :: c_int = 16 ;
1614
- pub const F_DUP2FD_CLOEXEC : :: c_int = 18 ;
1626
+ pub const F_READAHEAD : :: c_int = 15 ;
1627
+ pub const F_SETLK_REMOTE : :: c_int = 14 ;
1628
+
1629
+ // for use with F_ADD_SEALS
1630
+ pub const F_SEAL_GROW : :: c_int = 4 ;
1631
+ pub const F_SEAL_SEAL : :: c_int = 1 ;
1632
+ pub const F_SEAL_SHRINK : :: c_int = 2 ;
1633
+ pub const F_SEAL_WRITE : :: c_int = 8 ;
1634
+
1635
+ // For getrandom()
1636
+ pub const GRND_NONBLOCK : :: c_uint = 0x1 ;
1637
+ pub const GRND_RANDOM : :: c_uint = 0x2 ;
1638
+ pub const GRND_INSECURE : :: c_uint = 0x4 ;
1615
1639
1616
1640
// For realhostname* api
1617
1641
pub const HOSTNAME_FOUND : :: c_int = 0 ;
0 commit comments