From 34f9f1f2cad39b6c2725f1f98a2d99fe65b98f1c Mon Sep 17 00:00:00 2001 From: eric Date: Thu, 21 Sep 2023 16:26:50 -0400 Subject: [PATCH] fix option to override st_dev_mask --- picosnitch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/picosnitch.py b/picosnitch.py index fe7d1b5..5ac8e67 100755 --- a/picosnitch.py +++ b/picosnitch.py @@ -417,7 +417,7 @@ def read_snitch() -> dict: if key in snitch_record: data[key] = snitch_record[key] assert all(type(data[key]) == type(template[key]) for key in template), "Invalid json files" - assert all(key == "Set RLIMIT_NOFILE" or type(data["Config"][key]) == type(template["Config"][key]) for key in template["Config"]), "Invalid config" + assert all(key in ["Set RLIMIT_NOFILE", "Set st_dev mask"] or type(data["Config"][key]) == type(template["Config"][key]) for key in template["Config"]), "Invalid config" if write_config: write_snitch(data, write_config=True) return data