summaryrefslogtreecommitdiffstats
path: root/usr.sbin/inetd/inetd.h
diff options
context:
space:
mode:
authordwmalone <dwmalone@FreeBSD.org>2001-06-16 18:54:54 +0000
committerdwmalone <dwmalone@FreeBSD.org>2001-06-16 18:54:54 +0000
commit229831d19f3c3478e62ef382202f3da4cee2b0c1 (patch)
tree26042e92d7262a06440395c55be13a2795624e5d /usr.sbin/inetd/inetd.h
parent68be106995a68a6e76ce3951bb8742dde6f57485 (diff)
downloadFreeBSD-src-229831d19f3c3478e62ef382202f3da4cee2b0c1.zip
FreeBSD-src-229831d19f3c3478e62ef382202f3da4cee2b0c1.tar.gz
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
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 f54447f..7790880 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 */
OpenPOWER on IntegriCloud