From: Arfrever Frehtes Taifersar Arahesis Date: Tue, 7 Sep 2010 15:41:04 +0000 (-0700) Subject: Bug #336350 - Add back the is_selinux_enabled() function. X-Git-Tag: v2.2_rc78~33 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=62f8d9c4f3e8c87d17145b9b508843a6eef80b9c;p=portage.git Bug #336350 - Add back the is_selinux_enabled() function. --- 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')