aboutsummaryrefslogtreecommitdiff
path: root/sandbox.c
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2021-06-15 08:06:10 +0000
committerOmar Polo <op@omarpolo.com>2021-06-15 08:06:10 +0000
commite952c5052a0c524eee6d8151b1af96ce2c94ca18 (patch)
tree3c665c8c70aea37cf73c6ea38463552a5f6d8ec7 /sandbox.c
parent0f2124e29194b42209e879a539e35d295f525311 (diff)
allow sending fd to log on to the logger process
the logger process now can receive a file descriptor to write logs to. At the moment the logic is simple, if it receives a file it logs there, otherwise it logs to syslog. This will allow to log on custom log files.
Diffstat (limited to 'sandbox.c')
-rw-r--r--sandbox.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sandbox.c b/sandbox.c
index d2236d7..345edae 100644
--- a/sandbox.c
+++ b/sandbox.c
@@ -344,7 +344,7 @@ sandbox_executor_process(void)
void
sandbox_logger_process(void)
{
- if (pledge("stdio", NULL) == -1)
+ if (pledge("stdio recvfd", NULL) == -1)
err(1, "pledge");
}