aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/un.h
diff options
context:
space:
mode:
authorConrad Meyer <cem@FreeBSD.org>2020-11-03 01:17:45 +0000
committerConrad Meyer <cem@FreeBSD.org>2020-11-03 01:17:45 +0000
commit2de07e4096e20e1ea18b42865972a12c37aa8e50 (patch)
tree2b73f73f8d57654e1b903c388fdd58eb60775abb /sys/sys/un.h
parenta98f03786e468a83103ed1666a0ffbab8f7dcfb4 (diff)
downloadsrc-2de07e4096e20e1ea18b42865972a12c37aa8e50.tar.gz
src-2de07e4096e20e1ea18b42865972a12c37aa8e50.zip
unix(4): Add SOL_LOCAL:LOCAL_CREDS_PERSISTENT
This option is intended to be semantically identical to Linux's SOL_SOCKET:SO_PASSCRED. For now, it is mutually exclusive with the pre-existing sockopt SOL_LOCAL:LOCAL_CREDS. Reviewed by: markj (penultimate version) Differential Revision: https://reviews.freebsd.org/D27011
Notes
Notes: svn path=/head/; revision=367287
Diffstat (limited to 'sys/sys/un.h')
-rw-r--r--sys/sys/un.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/un.h b/sys/sys/un.h
index 3a011aeef635..e02484151814 100644
--- a/sys/sys/un.h
+++ b/sys/sys/un.h
@@ -67,6 +67,7 @@ struct sockaddr_un {
/* Socket options. */
#define LOCAL_PEERCRED 1 /* retrieve peer credentials */
#define LOCAL_CREDS 2 /* pass credentials to receiver */
+#define LOCAL_CREDS_PERSISTENT 3 /* pass credentials to receiver */
#define LOCAL_CONNWAIT 4 /* connects block until accepted */
/* Start of reserved space for third-party socket options. */