From 31d76a1702e930b48a3041fbf0b37c325d2c9bf2 Mon Sep 17 00:00:00 2001 From: Mike Yuan Date: Sun, 21 Jul 2024 22:50:58 +0200 Subject: [PATCH] missing_socket: add SCM_PASSPIDFD and SCM_PIDFD Preparation for later commits. --- src/basic/missing_socket.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/basic/missing_socket.h b/src/basic/missing_socket.h index 47cc7626aa3..5d9c5b483d9 100644 --- a/src/basic/missing_socket.h +++ b/src/basic/missing_socket.h @@ -51,6 +51,10 @@ struct sockaddr_vm { #define SO_PEERGROUPS 59 #endif +#ifndef SO_PASSPIDFD +#define SO_PASSPIDFD 76 +#endif + #ifndef SO_PEERPIDFD #define SO_PEERPIDFD 77 #endif @@ -72,11 +76,14 @@ struct sockaddr_vm { #define SOL_SCTP 132 #endif -/* Not exposed yet. Defined in include/linux/socket.h */ #ifndef SCM_SECURITY #define SCM_SECURITY 0x03 #endif +#ifndef SCM_PIDFD +#define SCM_PIDFD 0x04 +#endif + /* netinet/in.h */ #ifndef IP_FREEBIND #define IP_FREEBIND 15