aboutsummaryrefslogtreecommitdiff
path: root/log.c
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2021-03-20 08:42:08 +0000
committerOmar Polo <op@omarpolo.com>2021-03-20 08:42:08 +0000
commit62e001b06778c96d0deebceddf1913f7b57ab2d6 (patch)
tree086b6df9d90bb36ebc2a6a210966cc2dc158561e /log.c
parentad5301d1a00ba96c920fd89535cf9074b6e92088 (diff)
move all sandbox-related code to sandbox.c
while there, add capsicum for the logger process
Diffstat (limited to 'log.c')
-rw-r--r--log.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/log.c b/log.c
index b66aa19..2ff2158 100644
--- a/log.c
+++ b/log.c
@@ -270,10 +270,7 @@ logger_main(int fd, struct imsgbuf *ibuf)
event_set(&imsgev, fd, EV_READ | EV_PERSIST, &handle_dispatch_imsg, ibuf);
event_add(&imsgev, NULL);
-#ifdef __OpenBSD__
- if (pledge("stdio", NULL) == -1)
- err(1, "pledge");
-#endif
+ sandbox_logger_process();
event_dispatch();