Skip to content

Commit

Permalink
Tentative fix for get_selinux
Browse files Browse the repository at this point in the history
  • Loading branch information
RodoMa92 authored Aug 26, 2023
1 parent e3a2cfc commit df785ab
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion backend/localplatform.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,8 @@ def get_log_level() -> int:
]

def get_selinux() -> bool:
return os.getenv("DECKY_SELINUX", "0") == "1"
if ON_LINUX:
from subprocess import check_output
check_output("getenforce").decode('ascii').strip("\n") == "Enforcing" ? True : False
else:
return False

0 comments on commit df785ab

Please sign in to comment.