[master] 2f07246f2 Elevate privileges to acquire the CLI file
Dridi Boukelmoune
dridi.boukelmoune at gmail.com
Fri Nov 2 16:56:07 UTC 2018
commit 2f07246f2dee2d90a0f79b8df1af68db56209e5b
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date: Fri Nov 2 17:54:48 2018 +0100
Elevate privileges to acquire the CLI file
diff --git a/bin/varnishd/mgt/mgt_main.c b/bin/varnishd/mgt/mgt_main.c
index 237fb0f7f..efca546cd 100644
--- a/bin/varnishd/mgt/mgt_main.c
+++ b/bin/varnishd/mgt/mgt_main.c
@@ -622,10 +622,12 @@ main(int argc, char * const *argv)
case 'I':
if (I_fd >= 0)
ARGV_ERR("\tOnly one -I allowed\n");
+ VJ_master(JAIL_MASTER_FILE);
I_fd = open(optarg, O_RDONLY);
if (I_fd < 0)
ARGV_ERR("\tCant open %s: %s\n",
optarg, strerror(errno));
+ VJ_master(JAIL_MASTER_LOW);
break;
case 'l':
av = VAV_Parse(optarg, NULL, ARGV_COMMA);
More information about the varnish-commit
mailing list