Skip to content

Commit 0a25ed8

Browse files
authored
Feat(Apple): Add the LOCAL_PEERTOKEN socket option (#3929)
* Feat(apple): Add LOCAL_PEERTOKEN Taken from `sys/un.h`. Signed-off-by: Paul Mabileau <paul.mabileau@harfanglab.fr> * Docs(apple): Add description for LOCAL_PEER* socket options Signed-off-by: Paul Mabileau <paul.mabileau@harfanglab.fr> * Chore(test/apple): Add the LOCAL_PEERTOKEN symbol Signed-off-by: Paul Mabileau <paul.mabileau@harfanglab.fr> --------- Signed-off-by: Paul Mabileau <paul.mabileau@harfanglab.fr>
1 parent c73a50d commit 0a25ed8

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

libc-test/semver/apple.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -849,6 +849,7 @@ LOCAL_PEEREPID
849849
LOCAL_PEEREUUID
850850
LOCAL_PEERPID
851851
LOCAL_PEERUUID
852+
LOCAL_PEERTOKEN
852853
LOGIN_PROCESS
853854
LOG_AUTHPRIV
854855
LOG_CRON

src/unix/bsd/apple/mod.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4154,11 +4154,18 @@ pub const TCP_CONNECTION_INFO: ::c_int = 0x106;
41544154

41554155
pub const SOL_LOCAL: ::c_int = 0;
41564156

4157+
/// Retrieve peer credentials.
41574158
pub const LOCAL_PEERCRED: ::c_int = 0x001;
4159+
/// Retrieve peer PID.
41584160
pub const LOCAL_PEERPID: ::c_int = 0x002;
4161+
/// Retrieve effective peer PID.
41594162
pub const LOCAL_PEEREPID: ::c_int = 0x003;
4163+
/// Retrieve peer UUID.
41604164
pub const LOCAL_PEERUUID: ::c_int = 0x004;
4165+
/// Retrieve effective peer UUID.
41614166
pub const LOCAL_PEEREUUID: ::c_int = 0x005;
4167+
/// Retrieve peer audit token.
4168+
pub const LOCAL_PEERTOKEN: ::c_int = 0x006;
41624169

41634170
pub const SOL_SOCKET: ::c_int = 0xffff;
41644171

0 commit comments

Comments
 (0)