summaryrefslogtreecommitdiff
path: root/backend/localplatform.py
diff options
context:
space:
mode:
authorParty Wumpus <48649272+PartyWumpus@users.noreply.github.com>2023-07-29 09:05:39 +0100
committerGitHub <noreply@github.com>2023-07-29 09:05:39 +0100
commit2ba9bce3dea82261f01ee73ae68ce49553da3b9a (patch)
tree0e601b7c0a52a8d45a1ecd0d2fa49ced7520e372 /backend/localplatform.py
parentd4a76da78c63bfddebf93cebd8dafc7677d193f3 (diff)
downloaddecky-loader-2ba9bce3dea82261f01ee73ae68ce49553da3b9a.tar.gz
decky-loader-2ba9bce3dea82261f01ee73ae68ce49553da3b9a.zip
Make the updater work properly on SELinux (#518)v2.10.4-pre6
* Add DECKY_SELINUX env var * if on selinux make binary executable with chcon * No need to recursively change one file
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"