summaryrefslogtreecommitdiffstats
path: root/sys/compat/linux/linux_socket.h
diff options
context:
space:
mode:
authordchagin <dchagin@FreeBSD.org>2009-05-16 18:42:18 +0000
committerdchagin <dchagin@FreeBSD.org>2009-05-16 18:42:18 +0000
commitbc4e3c1f6d89b977ecd4d226f0cd88dccd1e70a9 (patch)
treeca69c2e6c186a75c9cd48b6b0ffe4e094819c375 /sys/compat/linux/linux_socket.h
parent1dee801328a72f344fa9b1a40ff1bf1a2cffccf8 (diff)
downloadFreeBSD-src-bc4e3c1f6d89b977ecd4d226f0cd88dccd1e70a9.zip
FreeBSD-src-bc4e3c1f6d89b977ecd4d226f0cd88dccd1e70a9.tar.gz
Emulate SO_PEERCRED socket option.
Temporarily use 0 for pid member as the FreeBSD does not cache remote UNIX domain socket peer pid. PR: kern/102956 Reviewed by: rwatson Approved by: kib (mentor) MFC after: 1 month
Diffstat (limited to 'sys/compat/linux/linux_socket.h')
-rw-r--r--sys/compat/linux/linux_socket.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/compat/linux/linux_socket.h b/sys/compat/linux/linux_socket.h
index 9257a7d..311b1524 100644
--- a/sys/compat/linux/linux_socket.h
+++ b/sys/compat/linux/linux_socket.h
@@ -90,4 +90,10 @@
#define LINUX_AF_APPLETALK 5
#define LINUX_AF_INET6 10
+struct l_ucred {
+ uint32_t pid;
+ uint32_t uid;
+ uint32_t gid;
+};
+
#endif /* _LINUX_SOCKET_H_ */
OpenPOWER on IntegriCloud