aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/inetd/inetd.h
diff options
context:
space:
mode:
authorDavid Malone <dwmalone@FreeBSD.org>2001-06-16 18:54:54 +0000
committerDavid Malone <dwmalone@FreeBSD.org>2001-06-16 18:54:54 +0000
commit1c8d1174b772a7d0b5e0daf1307d5b7dff84de23 (patch)
tree26042e92d7262a06440395c55be13a2795624e5d /usr.sbin/inetd/inetd.h
parentdc6af80701132610ecc4b0478e6ecb4b3bb9f1ea (diff)
downloadsrc-1c8d1174b772a7d0b5e0daf1307d5b7dff84de23.tar.gz
src-1c8d1174b772a7d0b5e0daf1307d5b7dff84de23.zip
Give inetd the ability to manage unix domain sockets. Details of
how to use this feature are in the man page. This is based on work by Lyndon Nerenberg. (The only difficult part about this patch is the fact that you can't fchown a unix domain socket, which means the sockets must be put in a secure directory). Reviewed by: dillon
Notes
Notes: svn path=/head/; revision=78356
Diffstat (limited to 'usr.sbin/inetd/inetd.h')
-rw-r--r--usr.sbin/inetd/inetd.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/usr.sbin/inetd/inetd.h b/usr.sbin/inetd/inetd.h
index f54447ffe9ef..7790880ecf29 100644
--- a/usr.sbin/inetd/inetd.h
+++ b/usr.sbin/inetd/inetd.h
@@ -35,6 +35,7 @@
#include <sys/time.h>
#include <sys/socket.h>
+#include <sys/un.h>
#include <netinet/in.h>
@@ -80,11 +81,16 @@ struct servtab {
struct sockaddr se_un_ctrladdr;
struct sockaddr_in se_un_ctrladdr4;
struct sockaddr_in6 se_un_ctrladdr6;
+ struct sockaddr_un se_un_ctrladdr_un;
} se_un;
#define se_ctrladdr se_un.se_un_ctrladdr
#define se_ctrladdr4 se_un.se_un_ctrladdr4
#define se_ctrladdr6 se_un.se_un_ctrladdr6
+#define se_ctrladdr_un se_un.se_un_ctrladdr_un
socklen_t se_ctrladdr_size;
+ uid_t se_sockuid; /* Owner for unix domain socket */
+ gid_t se_sockgid; /* Group for unix domain socket */
+ mode_t se_sockmode; /* Mode for unix domain socket */
u_char se_type; /* type: normal, mux, or mux+ */
u_char se_checked; /* looked at during merge */
u_char se_accept; /* i.e., wait/nowait mode */