Skip to content

Commit

Permalink
Merge pull request #11 from pycontribs/fix/import
Browse files Browse the repository at this point in the history
Uncomment verificatian of is_selinux_enabled call
  • Loading branch information
ssbarnea authored Jun 11, 2019
2 parents dde3ab3 + a1d0dc3 commit c1df38f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions selinux/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ def add_location(location):
# And now we replace outselves with the original selinux module
reload(sys.modules['selinux'])
# Validate that we can perform libselinux calls
# if sys.modules['selinux'].is_selinux_enabled() not in [0, 1]:
# raise RuntimeError("is_selinux_enabled returned error.")
if sys.modules['selinux'].is_selinux_enabled() not in [0, 1]:
raise RuntimeError("is_selinux_enabled returned error.")
return True
return False

Expand Down

0 comments on commit c1df38f

Please sign in to comment.