summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorJoerg Jung <jung@cvs.openbsd.org>2016-01-04 13:36:33 +0000
committerJoerg Jung <jung@cvs.openbsd.org>2016-01-04 13:36:33 +0000
commit384f887650b934216a7e97e4492109e729232baf (patch)
treefd9e3bda2931abe12046b287a74e1930e1e6f219 /usr.sbin
parent0ebe3fc40a673c11fda9e80f3e19e2552dd8b498 (diff)
add proc and exec to pledge in lka, required to run external add-ons outside of
the daemon memory space, makes -extras tables work again reported by Tim van der Molen on misc@opensmtpd.org verified together with sunil ok gilles
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/smtpd/lka.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/lka.c b/usr.sbin/smtpd/lka.c
index 099e617199a..654897fcf25 100644
--- a/usr.sbin/smtpd/lka.c
+++ b/usr.sbin/smtpd/lka.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lka.c,v 1.190 2015/12/28 22:08:30 jung Exp $ */
+/* $OpenBSD: lka.c,v 1.191 2016/01/04 13:36:32 jung Exp $ */
/*
* Copyright (c) 2008 Pierre-Yves Ritschard <pyr@openbsd.org>
@@ -449,7 +449,7 @@ lka(void)
/* Ignore them until we get our config */
mproc_disable(p_pony);
- if (pledge("stdio rpath inet dns getpw recvfd", NULL) == -1)
+ if (pledge("stdio rpath inet dns getpw recvfd proc exec", NULL) == -1)
err(1, "pledge");
if (event_dispatch() < 0)