diff options
Diffstat (limited to 'backend/localplatform.py')
| -rw-r--r-- | backend/localplatform.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/backend/localplatform.py b/backend/localplatform.py index 9b05510b..43043ad0 100644 --- a/backend/localplatform.py +++ b/backend/localplatform.py @@ -43,4 +43,10 @@ def get_log_level() -> int: ] def get_selinux() -> bool: - return os.getenv("DECKY_SELINUX", "0") == "1" + if ON_LINUX: + from subprocess import check_output + try: + if (check_output("getenforce").decode("ascii").strip("\n") == "Enforcing"): return True + except FileNotFoundError: + pass + return False |
