projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ccdc407
)
Use the well know selinux_aux functions for bug #134743.
author
Zac Medico
<zmedico@gentoo.org>
Mon, 29 May 2006 11:45:55 +0000
(11:45 -0000)
committer
Zac Medico
<zmedico@gentoo.org>
Mon, 29 May 2006 11:45:55 +0000
(11:45 -0000)
svn path=/main/trunk/; revision=3438
pym/portage_selinux.py
patch
|
blob
|
history
diff --git
a/pym/portage_selinux.py
b/pym/portage_selinux.py
index 4cc265a52e5f038e51dc9c9b7e2093b634b04683..e4d80fa1e42640645124873627eb0b2d23b04681 100644
(file)
--- 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