diff options
author | Omar Polo <op@omarpolo.com> | 2021-06-15 08:06:10 +0000 |
---|---|---|
committer | Omar Polo <op@omarpolo.com> | 2021-06-15 08:06:10 +0000 |
commit | e952c5052a0c524eee6d8151b1af96ce2c94ca18 (patch) | |
tree | 3c665c8c70aea37cf73c6ea38463552a5f6d8ec7 /sandbox.c | |
parent | 0f2124e29194b42209e879a539e35d295f525311 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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"); } |