summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <Arfrever@Gentoo.Org>2010-09-07 08:41:04 -0700
committerZac Medico <zmedico@gentoo.org>2010-09-07 08:41:04 -0700
commit62f8d9c4f3e8c87d17145b9b508843a6eef80b9c (patch)
tree84792b98aedb3e1e5541e12d8e0a75ba67fb5c18
parent8ba3e00107cae56cfb8acbc4d9e0f94d89acdfe8 (diff)
downloadportage-62f8d9c4f3e8c87d17145b9b508843a6eef80b9c.tar.gz
portage-62f8d9c4f3e8c87d17145b9b508843a6eef80b9c.tar.bz2
portage-62f8d9c4f3e8c87d17145b9b508843a6eef80b9c.zip
Bug #336350 - Add back the is_selinux_enabled() function.
-rw-r--r--pym/portage/_selinux.py3
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')