Add basic pledge/unveil sandbox on OpenBSD
[tinc] / test / integration / testlib / feature.py
diff --git a/test/integration/testlib/feature.py b/test/integration/testlib/feature.py
new file mode 100755 (executable)
index 0000000..44dd7b1
--- /dev/null
@@ -0,0 +1,9 @@
+"""Some hardcoded constants."""
+
+from .proc import Feature, Tinc
+
+# True if tincd has sandbox support
+HAVE_SANDBOX = Feature.SANDBOX in Tinc().features
+
+# Maximum supported sandbox level
+SANDBOX_LEVEL = "high" if Feature.SANDBOX in Tinc().features else "off"