that 'from portage import selinux' never fails inside vartree.py.
svn path=/main/trunk/; revision=14025
shutil = _unicode_module_wrapper(_shutil)
# Imports below this point rely on the above unicode wrapper definitions.
-
+_selinux = None
+selinux = None
try:
import portage._selinux
selinux = _unicode_module_wrapper(_selinux)
if getattr(self, "_selinux_enabled", None) is None:
self._selinux_enabled = 0
if "selinux" in self["USE"].split():
- if "selinux" in globals():
+ if selinux:
if selinux.is_selinux_enabled() == 1:
self._selinux_enabled = 1
else: