@@ -626,6 +626,7 @@ pub const ENOTCAPABLE: ::c_int = 93;
626
626
pub const ECAPMODE : :: c_int = 94 ;
627
627
pub const ENOTRECOVERABLE : :: c_int = 95 ;
628
628
pub const EOWNERDEAD : :: c_int = 96 ;
629
+ pub const EINTEGRITY : :: c_int = 97 ;
629
630
pub const RLIMIT_NPTS : :: c_int = 11 ;
630
631
pub const RLIMIT_SWAP : :: c_int = 12 ;
631
632
pub const RLIMIT_KQUEUES : :: c_int = 13 ;
@@ -903,6 +904,8 @@ pub const MNT_UNION: ::c_int = 0x00000020;
903
904
pub const MNT_EXPUBLIC : :: c_int = 0x20000000 ;
904
905
pub const MNT_NONBUSY : :: c_int = 0x04000000 ;
905
906
907
+ pub const SCM_CREDS2 : :: c_int = 0x08 ;
908
+
906
909
pub const SO_BINTIME : :: c_int = 0x2000 ;
907
910
pub const SO_NO_OFFLOAD : :: c_int = 0x4000 ;
908
911
pub const SO_NO_DDP : :: c_int = 0x8000 ;
@@ -916,9 +919,11 @@ pub const SO_SETFIB: ::c_int = 0x1014;
916
919
pub const SO_USER_COOKIE : :: c_int = 0x1015 ;
917
920
pub const SO_PROTOCOL : :: c_int = 0x1016 ;
918
921
pub const SO_PROTOTYPE : :: c_int = SO_PROTOCOL ;
922
+ pub const SO_DOMAIN : :: c_int = 0x1019 ;
919
923
pub const SO_VENDOR : :: c_int = 0x80000000 ;
920
924
921
925
pub const LOCAL_CREDS : :: c_int = 2 ;
926
+ pub const LOCAL_CREDS_PERSISTENT : :: c_int = 3 ;
922
927
pub const LOCAL_CONNWAIT : :: c_int = 4 ;
923
928
pub const LOCAL_VENDOR : :: c_int = SO_VENDOR ;
924
929
@@ -967,8 +972,13 @@ pub const PROC_TRAPCAP_CTL: ::c_int = 9;
967
972
pub const PROC_TRAPCAP_STATUS : :: c_int = 10 ;
968
973
pub const PROC_PDEATHSIG_CTL : :: c_int = 11 ;
969
974
pub const PROC_PDEATHSIG_STATUS : :: c_int = 12 ;
975
+ pub const PROC_ASLR_CTL : :: c_int = 13 ;
976
+ pub const PROC_ASLR_STATUS : :: c_int = 14 ;
977
+ pub const PROC_PROTMAX_CTL : :: c_int = 15 ;
978
+ pub const PROC_PROTMAX_STATUS : :: c_int = 16 ;
970
979
pub const PROC_STACKGAP_CTL : :: c_int = 17 ;
971
980
pub const PROC_STACKGAP_STATUS : :: c_int = 18 ;
981
+ pub const PROC_PROCCTL_MD_MIN : :: c_int = 0x10000000 ;
972
982
973
983
pub const AF_SLOW : :: c_int = 33 ;
974
984
pub const AF_SCLUSTER : :: c_int = 34 ;
@@ -1435,14 +1445,28 @@ pub const UF_READONLY: ::c_ulong = 0x00001000;
1435
1445
pub const UF_HIDDEN : :: c_ulong = 0x00008000 ;
1436
1446
pub const SF_SNAPSHOT : :: c_ulong = 0x00200000 ;
1437
1447
1448
+ // fcntl commands
1449
+ pub const F_ADD_SEALS : :: c_int = 19 ;
1450
+ pub const F_DUP2FD : :: c_int = 10 ;
1451
+ pub const F_DUP2FD_CLOEXEC : :: c_int = 18 ;
1452
+ pub const F_GET_SEALS : :: c_int = 20 ;
1438
1453
pub const F_OGETLK : :: c_int = 7 ;
1439
1454
pub const F_OSETLK : :: c_int = 8 ;
1440
1455
pub const F_OSETLKW : :: c_int = 9 ;
1441
- pub const F_DUP2FD : :: c_int = 10 ;
1442
- pub const F_SETLK_REMOTE : :: c_int = 14 ;
1443
- pub const F_READAHEAD : :: c_int = 15 ;
1444
1456
pub const F_RDAHEAD : :: c_int = 16 ;
1445
- pub const F_DUP2FD_CLOEXEC : :: c_int = 18 ;
1457
+ pub const F_READAHEAD : :: c_int = 15 ;
1458
+ pub const F_SETLK_REMOTE : :: c_int = 14 ;
1459
+
1460
+ // for use with F_ADD_SEALS
1461
+ pub const F_SEAL_GROW : :: c_int = 4 ;
1462
+ pub const F_SEAL_SEAL : :: c_int = 1 ;
1463
+ pub const F_SEAL_SHRINK : :: c_int = 2 ;
1464
+ pub const F_SEAL_WRITE : :: c_int = 8 ;
1465
+
1466
+ // For getrandom()
1467
+ pub const GRND_NONBLOCK : :: c_uint = 0x1 ;
1468
+ pub const GRND_RANDOM : :: c_uint = 0x2 ;
1469
+ pub const GRND_INSECURE : :: c_uint = 0x4 ;
1446
1470
1447
1471
// For realhostname* api
1448
1472
pub const HOSTNAME_FOUND : :: c_int = 0 ;
0 commit comments