[master] 6cb15bf emit a warning if sandboxing test failed
Nils Goroll
nils.goroll at uplex.de
Thu Feb 12 10:35:31 CET 2015
commit 6cb15bfbe2bca915c018c4a1168288807d9bb5aa
Author: Nils Goroll <nils.goroll at uplex.de>
Date: Thu Feb 12 10:15:13 2015 +0100
emit a warning if sandboxing test failed
diff --git a/bin/varnishd/mgt/mgt_sandbox.c b/bin/varnishd/mgt/mgt_sandbox.c
index 276fc73..340a0bc 100644
--- a/bin/varnishd/mgt/mgt_sandbox.c
+++ b/bin/varnishd/mgt/mgt_sandbox.c
@@ -274,8 +274,13 @@ mgt_sandbox_init(void)
sb = VSB_new_auto();
subs = VSUB_run(sb, run_sandbox_test, NULL, "SANDBOX-test", 10);
VSB_delete(sb);
- if (subs)
+ if (subs) {
+ REPORT0(LOG_INFO, "Warning: init of platform-specific sandbox "
+ "failed - sandboxing disabled");
+ REPORT0(LOG_INFO, "Warning: Varnish might run with elevated "
+ "privileges");
mgt_sandbox = mgt_sandbox_null;
+ }
MCF_AddParams(mgt_parspec_sandbox);
More information about the varnish-commit
mailing list