artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b0d27b3
)
pledge() queue process
author
gilles
<gilles@openbsd.org>
Tue, 13 Oct 2015 11:03:30 +0000
(11:03 +0000)
committer
gilles
<gilles@openbsd.org>
Tue, 13 Oct 2015 11:03:30 +0000
(11:03 +0000)
ok deraadt@
usr.sbin/smtpd/queue.c
patch
|
blob
|
history
diff --git
a/usr.sbin/smtpd/queue.c
b/usr.sbin/smtpd/queue.c
index
b264347
..
66cede6
100644
(file)
--- a/
usr.sbin/smtpd/queue.c
+++ b/
usr.sbin/smtpd/queue.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: queue.c,v 1.16
6 2015/01/20 17:37:54 deraadt Exp $
*/
+/* $OpenBSD: queue.c,v 1.16
7 2015/10/13 11:03:30 gilles Exp $
*/
/*
* Copyright (c) 2008 Gilles Chehade <gilles@poolp.org>
@@
-643,6
+643,9
@@
queue(void)
tv.tv_usec = 10;
evtimer_add(&ev_qload, &tv);
+ if (pledge("stdio rpath wpath cpath recvfd sendfd", NULL) == -1)
+ err(1, "pledge");
+
if (event_dispatch() < 0)
fatal("event_dispatch");
queue_shutdown();