forked from mirrors/kore
pledge keymgr process on openbsd
This commit is contained in:
parent
b957d26335
commit
993c5d2ac2
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue