diff options
author | Zac Medico <zmedico@gentoo.org> | 2008-09-22 20:28:15 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2008-09-22 20:28:15 +0000 |
commit | 23a3278f3f0b861a81836a819fd9f55cbb37ed1e (patch) | |
tree | 75cd4df8d792c3f1cef2c2b1890e6f0748aa2aab /pym/portage/_selinux.py | |
parent | 38321cf8c4a34703b2e5cb6ec2aa3251f4090ae2 (diff) | |
download | portage-23a3278f3f0b861a81836a819fd9f55cbb37ed1e.tar.gz portage-23a3278f3f0b861a81836a819fd9f55cbb37ed1e.tar.bz2 portage-23a3278f3f0b861a81836a819fd9f55cbb37ed1e.zip |
Bug #230975 - Rename the portage.selinux module to portage._selinux in order
to avoid a relative import issue which caused portage.selinux to attempt to
import itself instead of the real 'selinux' module. Thanks to Michael
Edenfield for this patch.
svn path=/main/trunk/; revision=11535
Diffstat (limited to 'pym/portage/_selinux.py')
-rw-r--r-- | pym/portage/_selinux.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pym/portage/_selinux.py b/pym/portage/_selinux.py new file mode 100644 index 000000000..e4d80fa1e --- /dev/null +++ b/pym/portage/_selinux.py @@ -0,0 +1,8 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +import selinux +from selinux import is_selinux_enabled +from selinux_aux import setexec, secure_symlink, secure_rename, \ + secure_copy, secure_mkdir, getcontext, get_sid, get_lsid |