2017-03-14 23:32:11 +00:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
|
2017-03-18 13:32:24 +00:00
|
|
|
try:
|
2017-03-18 17:38:20 +00:00
|
|
|
import warnings
|
|
|
|
with warnings.catch_warnings():
|
|
|
|
warnings.filterwarnings("ignore", category=PendingDeprecationWarning)
|
|
|
|
import selinux
|
2017-03-14 23:32:11 +00:00
|
|
|
|
2017-03-18 13:32:24 +00:00
|
|
|
if selinux.is_selinux_enabled():
|
|
|
|
print(selinux.security_policyvers())
|
|
|
|
except ImportError:
|
|
|
|
exit(0)
|