diff options
| author | Roy Marples <roy@marples.name> | 2020-12-26 15:58:46 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2020-12-26 15:58:46 +0000 |
| commit | 111fb8364c07cc9bf0c432eabb9582c346378649 (patch) | |
| tree | a1a7104d1393c9c405df31f6cd05dd9341a49712 /src/privsep.c | |
| parent | e1c846907c2e5de49590d66761a841004c5f0cac (diff) | |
| download | dhcpcd-111fb8364c07cc9bf0c432eabb9582c346378649.tar.xz | |
privsep: log sandbox when not daemonising
Diffstat (limited to 'src/privsep.c')
| -rw-r--r-- | src/privsep.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/privsep.c b/src/privsep.c index 55bb3c42..d5c7c562 100644 --- a/src/privsep.c +++ b/src/privsep.c @@ -581,7 +581,9 @@ ps_mastersandbox(struct dhcpcd_ctx *ctx, const char *_pledge) } logerr("%s: %s", __func__, sandbox); return -1; - } else if (ctx->options & DHCPCD_LAUNCHER) + } else if (ctx->options & DHCPCD_LAUNCHER || + ((!(ctx->options & DHCPCD_DAEMONISE)) && + ctx->options & DHCPCD_MASTER)) logdebugx("sandbox: %s", sandbox); return 0; } |
