Line
Link Here
|
0 |
-- __init__.py.orig 2008-09-22 15:18:03.000000000 -0400 |
0 |
++ __init__.py 2008-09-22 15:32:49.000000000 -0400 |
Lines 139-150
Link Here
|
139 |
|
139 |
|
140 |
|
140 |
|
141 |
try: |
141 |
try: |
142 |
import portage.selinux as selinux |
142 |
import portage._selinux as selinux |
143 |
except OSError, e: |
143 |
except OSError, e: |
144 |
writemsg("!!! SELinux not loaded: %s\n" % str(e), noiselevel=-1) |
144 |
writemsg("!!! SELinux not loaded: %s\n" % str(e), noiselevel=-1) |
145 |
del e |
145 |
del e |
146 |
except ImportError: |
146 |
except ImportError, e: |
147 |
pass |
147 |
writemsg("!!! SELinux could not be imported: %s\n" % str(e), noiselevel=-1) |
|
|
148 |
del e |
148 |
|
149 |
|
149 |
# =========================================================================== |
150 |
# =========================================================================== |
150 |
# END OF IMPORTS -- END OF IMPORTS -- END OF IMPORTS -- END OF IMPORTS -- END |
151 |
# END OF IMPORTS -- END OF IMPORTS -- END OF IMPORTS -- END OF IMPORTS -- END |
151 |
-- selinux.py 1969-12-31 19:00:00.000000000 -0500 |
152 |
++ _selinux.py 2008-08-20 12:11:17.000000000 -0400 |
Line 0
Link Here
|
|
|
1 |
# Copyright 1999-2006 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: $ |
4 |
|
5 |
import selinux |
6 |
from selinux import is_selinux_enabled |
7 |
from selinux_aux import setexec, secure_symlink, secure_rename, \ |
8 |
secure_copy, secure_mkdir, getcontext, get_sid, get_lsid |