artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ee59291
)
pledge("stdio") the RSA-privsep process
author
gilles
<gilles@openbsd.org>
Tue, 13 Oct 2015 08:07:35 +0000
(08:07 +0000)
committer
gilles
<gilles@openbsd.org>
Tue, 13 Oct 2015 08:07:35 +0000
(08:07 +0000)
usr.sbin/smtpd/ca.c
patch
|
blob
|
history
diff --git
a/usr.sbin/smtpd/ca.c
b/usr.sbin/smtpd/ca.c
index
ccfae18
..
0332fc2
100644
(file)
--- a/
usr.sbin/smtpd/ca.c
+++ b/
usr.sbin/smtpd/ca.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: ca.c,v 1.1
4 2015/01/20 17:37:54 deraadt Exp $
*/
+/* $OpenBSD: ca.c,v 1.1
5 2015/10/13 08:07:35 gilles Exp $
*/
/*
* Copyright (c) 2014 Reyk Floeter <reyk@openbsd.org>
@@
-137,6
+137,9
@@
ca(void)
/* Ignore them until we get our config */
mproc_disable(p_pony);
+ if (pledge("stdio", NULL) == -1)
+ err(1, "pledge");
+
if (event_dispatch() < 0)
fatal("event_dispatch");
ca_shutdown();