]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
privsep: log sandbox when not daemonising
authorRoy Marples <roy@marples.name>
Sat, 26 Dec 2020 15:58:46 +0000 (15:58 +0000)
committerRoy Marples <roy@marples.name>
Sat, 26 Dec 2020 15:58:46 +0000 (15:58 +0000)
src/privsep.c

index 55bb3c4295ceacfa602afbfb5db731de11f23807..d5c7c5627c43d1e967691dc7e33454d2f86122c1 100644 (file)
@@ -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;
 }