From 2ba9bce3dea82261f01ee73ae68ce49553da3b9a Mon Sep 17 00:00:00 2001 From: Party Wumpus <48649272+PartyWumpus@users.noreply.github.com> Date: Sat, 29 Jul 2023 09:05:39 +0100 Subject: Make the updater work properly on SELinux (#518) * Add DECKY_SELINUX env var * if on selinux make binary executable with chcon * No need to recursively change one file --- backend/localplatform.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'backend/localplatform.py') 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" -- cgit v1.2.3