try:
import portage.selinux as selinux
import portage._selinux as selinux
except OSError, e:
writemsg("!!! SELinux not loaded: %s\n" % str(e), noiselevel=-1)
del e
# 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