pledge keymgr process on openbsd

This commit is contained in:
Joris Vink 2018-07-14 21:14:02 +02:00
parent b957d26335
commit 993c5d2ac2
1 changed files with 5 additions and 0 deletions

View File

@ -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) {