summaryrefslogtreecommitdiff
path: root/backend/localplatform.py
diff options
context:
space:
mode:
Diffstat (limited to 'backend/localplatform.py')
-rw-r--r--backend/localplatform.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/backend/localplatform.py b/backend/localplatform.py
index 5febfcaf..9b05510b 100644
--- a/backend/localplatform.py
+++ b/backend/localplatform.py
@@ -40,4 +40,7 @@ def get_keep_systemd_service() -> bool:
def get_log_level() -> int:
return {"CRITICAL": 50, "ERROR": 40, "WARNING": 30, "INFO": 20, "DEBUG": 10}[
os.getenv("LOG_LEVEL", "INFO")
- ] \ No newline at end of file
+ ]
+
+def get_selinux() -> bool:
+ return os.getenv("DECKY_SELINUX", "0") == "1"