From 371ee5167ce5e6fccc5a2a159343658f01ba74f7 Mon Sep 17 00:00:00 2001 From: "kali kaneko (leap communications)" Date: Wed, 8 Dec 2021 19:47:02 +0100 Subject: [feat] whitelist log file --- helpers/bitmask-root | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'helpers') diff --git a/helpers/bitmask-root b/helpers/bitmask-root index 6bb97e2..d33091c 100644 --- a/helpers/bitmask-root +++ b/helpers/bitmask-root @@ -89,7 +89,7 @@ def is_ipv6_disabled(): def tostr(s): return s.decode('utf-8') -VERSION = "15" +VERSION = "16" SCRIPT = "bitmask-root" NAMESERVER_TCP = "10.41.0.1" NAMESERVER_UDP = "10.42.0.1" @@ -167,7 +167,7 @@ ALLOWED_FLAGS = { "--verb": ["NUMBER"], "--management-client": [], "--tun-ipv6": [], - "--float: [], + "--log": ["LOGFILE"], } PARAM_FORMATS = { @@ -181,7 +181,8 @@ PARAM_FORMATS = { "DIR": lambda s: os.path.isdir(os.path.split(s)[0]), "UNIXSOCKET": lambda s: s == "unix", "NETGW": lambda s: s == "net_gateway", - "UID": lambda s: re.match("^[a-zA-Z0-9]+$", s) + "UID": lambda s: re.match("^[a-zA-Z0-9]+$", s), + "LOGFILE": lambda s: s == "/tmp/leap-vpn.log", } # Determine Qubes OS version, if any -- cgit v1.2.3