summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-05-29 11:45:55 +0000
committerZac Medico <zmedico@gentoo.org>2006-05-29 11:45:55 +0000
commit24ef47a7da523d4c3a307122763af8c3c6a13e55 (patch)
tree7d993e865715508d605ee084d4bd408296fd3b88
parentRevert patch for r3426 for bug 134466 and add warnings to docs. (diff)
downloadportage-multirepo-24ef47a7da523d4c3a307122763af8c3c6a13e55.tar.gz
portage-multirepo-24ef47a7da523d4c3a307122763af8c3c6a13e55.tar.bz2
portage-multirepo-24ef47a7da523d4c3a307122763af8c3c6a13e55.zip
Use the well know selinux_aux functions for bug #134743.
svn path=/main/trunk/; revision=3438
-rw-r--r--pym/portage_selinux.py11
1 files changed, 1 insertions, 10 deletions
diff --git a/pym/portage_selinux.py b/pym/portage_selinux.py
index 4cc265a5..e4d80fa1 100644
--- a/pym/portage_selinux.py
+++ b/pym/portage_selinux.py
@@ -5,13 +5,4 @@
import selinux
from selinux import is_selinux_enabled
from selinux_aux import setexec, secure_symlink, secure_rename, \
- secure_copy, secure_mkdir
-
-def getcontext():
- return selinux.getcon()[1]
-
-def get_sid(filename):
- return selinux.getfilecon(filename)[1]
-
-def get_lsid(filename):
- return selinux.lgetfilecon(filename)[1]
+ secure_copy, secure_mkdir, getcontext, get_sid, get_lsid