From 66516a8a7ecf730e89432e6ef73b89c7a1b8b417 Mon Sep 17 00:00:00 2001 From: Huang Qi Date: Wed, 31 Mar 2021 11:05:44 +0800 Subject: [PATCH] sys/socket.h: Add "Socket"-level control message types Signed-off-by: Huang Qi Change-Id: I05f8dd29501f6b06cdd278e0e416f210a98aa6b0 --- include/sys/socket.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/sys/socket.h b/include/sys/socket.h index 61433b22dbf..a100b174663 100644 --- a/include/sys/socket.h +++ b/include/sys/socket.h @@ -277,6 +277,12 @@ #define CMSG_FIRSTHDR(msg) \ __CMSG_FIRSTHDR((msg)->msg_control, (msg)->msg_controllen) +/* "Socket"-level control message types: */ + +#define SCM_RIGHTS 0x01 /* rw: access rights (array of int) */ +#define SCM_CREDENTIALS 0x02 /* rw: struct ucred */ +#define SCM_SECURITY 0x03 /* rw: security label */ + /**************************************************************************** * Type Definitions ****************************************************************************/