diff options
-rw-r--r-- | pym/portage/_selinux.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pym/portage/_selinux.py b/pym/portage/_selinux.py index cad5be8cc..d86dd9594 100644 --- a/pym/portage/_selinux.py +++ b/pym/portage/_selinux.py @@ -35,6 +35,9 @@ def getcontext(): return ctx +def is_selinux_enabled(): + return selinux.is_selinux_enabled() + def mkdir(target, refdir): target = _unicode_encode(target, encoding=_encodings['fs'], errors='strict') refdir = _unicode_encode(refdir, encoding=_encodings['fs'], errors='strict') |