artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f326bf
)
pledge() control process
author
gilles
<gilles@openbsd.org>
Tue, 13 Oct 2015 10:59:04 +0000
(10:59 +0000)
committer
gilles
<gilles@openbsd.org>
Tue, 13 Oct 2015 10:59:04 +0000
(10:59 +0000)
ok deraadt@
usr.sbin/smtpd/control.c
patch
|
blob
|
history
diff --git
a/usr.sbin/smtpd/control.c
b/usr.sbin/smtpd/control.c
index
68c2b99
..
362a8f9
100644
(file)
--- a/
usr.sbin/smtpd/control.c
+++ b/
usr.sbin/smtpd/control.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: control.c,v 1.10
5 2015/10/02 00:26:45
gilles Exp $ */
+/* $OpenBSD: control.c,v 1.10
6 2015/10/13 10:59:04
gilles Exp $ */
/*
* Copyright (c) 2012 Gilles Chehade <gilles@poolp.org>
@@
-296,6
+296,9
@@
control(void)
control_listen();
+ if (pledge("stdio unix recvfd sendfd", NULL) == -1)
+ err(1, "pledge");
+
if (event_dispatch() < 0)
fatal("event_dispatch");
control_shutdown();