summaryrefslogtreecommitdiffstats
path: root/usr.sbin/inetd
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2015-11-01 00:31:18 +0000
committerderaadt <deraadt@openbsd.org>2015-11-01 00:31:18 +0000
commit435901367936bde15352f38cf51461a754ad9982 (patch)
tree5259066440eb6fd58f69cece61d8b67ee066886a /usr.sbin/inetd
parentoops, forgot pselect! crazy how many interface the kernel has here. (diff)
downloadwireguard-openbsd-435901367936bde15352f38cf51461a754ad9982.tar.xz
wireguard-openbsd-435901367936bde15352f38cf51461a754ad9982.zip
inetd needs pledge "unix" to bind AF_UNIX sockets
Diffstat (limited to 'usr.sbin/inetd')
-rw-r--r--usr.sbin/inetd/inetd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/inetd/inetd.c b/usr.sbin/inetd/inetd.c
index e86dc041985..01cd6cc286f 100644
--- a/usr.sbin/inetd/inetd.c
+++ b/usr.sbin/inetd/inetd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: inetd.c,v 1.147 2015/10/22 12:34:25 deraadt Exp $ */
+/* $OpenBSD: inetd.c,v 1.148 2015/11/01 00:31:18 deraadt Exp $ */
/*
* Copyright (c) 1983,1991 The Regents of the University of California.
@@ -346,7 +346,7 @@ main(int argc, char *argv[])
(void) setlogin("");
}
- if (pledge("stdio rpath getpw dns inet proc exec id", NULL) == -1)
+ if (pledge("stdio rpath getpw dns inet unix proc exec id", NULL) == -1)
err(1, "pledge");
if (uid == 0) {