projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ba3e00
)
Bug #336350 - Add back the is_selinux_enabled() function.
author
Arfrever Frehtes Taifersar Arahesis
<Arfrever@Gentoo.Org>
Tue, 7 Sep 2010 15:41:04 +0000
(08:41 -0700)
committer
Zac Medico
<zmedico@gentoo.org>
Tue, 7 Sep 2010 15:41:04 +0000
(08:41 -0700)
pym/portage/_selinux.py
patch
|
blob
|
history
diff --git
a/pym/portage/_selinux.py
b/pym/portage/_selinux.py
index cad5be8cc8efaadefe9887c23e0264e3c2cea1cc..d86dd95944e92f8c942655b7199235dd37b1d103 100644
(file)
--- 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')