kore

a fork of the worlds most advanced web framework
Log | Files | Refs | README | LICENSE

commit 993c5d2ac23adf6554ee34324a2e63977fc94fdf
parent b957d263354e9679259fe91d09b5eb6df2fa796e
Author: Joris Vink <joris@coders.se>
Date:   Sat, 14 Jul 2018 21:14:02 +0200

pledge keymgr process on openbsd

Diffstat:
Msrc/keymgr.c | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/keymgr.c b/src/keymgr.c @@ -116,6 +116,11 @@ kore_keymgr_run(void) RAND_poll(); last_seed = 0; +#if defined(__OpenBSD__) + if (pledge("stdio", NULL) == -1) + fatal("failed to pledge keymgr process"); +#endif + kore_log(LOG_NOTICE, "key manager started"); while (quit != 1) {