Bug 221402

Summary: system-config-securitylevel fails to start
Product: [Fedora] Fedora Reporter: Joseph Sacco <jsacco>
Component: system-config-securitylevelAssignee: Chris Lumens <clumens>
Status: CLOSED RAWHIDE QA Contact:
Severity: high Docs Contact:
Priority: medium    
Version: rawhide   
Target Milestone: ---   
Target Release: ---   
Hardware: powerpc   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-01-04 19:26:46 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Joseph Sacco 2007-01-04 14:57:12 UTC
system-config-securitylevel fails to start because of a missing module:

# system-config-securitylevel
Traceback (most recent call last):
  File "/usr/share/system-config-securitylevel/system-config-securitylevel.py",
line 11, in <module>
    import securitylevel 
  File "/usr/share/system-config-securitylevel/securitylevel.py", line 33, in
<module>
    import selinuxPage
  File "/usr/share/system-config-securitylevel/selinuxPage.py", line 27, in <module>
    from Conf import *
ImportError: No module named Conf

From what I can see Conf.py was installed as part of rhpl:

    /usr/lib/python2.5/site-packages/rhpl/Conf.py


-Joseph

Comment 1 Joseph Sacco 2007-01-04 16:06:53 UTC
This is a PYTHONPATH issue... 

I hammered the code into submission adding

    sys.path.append('/usr/lib/python2.5/site-packages/rhpl')

to the top of /usr/share/system-config-securitylevel/securitylevel.py, which
allows the application to run.  This is *not* the right way to fix this problem. 

Defining and exporting a PYTHONPATH that contained rhpl didn't work [wonder why???].

-Joseph

Comment 2 Chris Lumens 2007-01-04 19:26:46 UTC
Should be:

from rhpl.Conf import *

Thanks for the bug report.  I'll rush out a new version to fix this item.