Bug 139202

Summary: system-security-level applet crash
Product: [Fedora] Fedora Reporter: P Jones <deerfieldtech>
Component: system-config-securitylevelAssignee: Paul Nasrat <nobody+pnasrat>
Status: CLOSED DUPLICATE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 3   
Target Milestone: ---   
Target Release: ---   
Hardware: athlon   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-02-21 19:07:00 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:
Attachments:
Description Flags
system-config-securitylevel patch none

Description P Jones 2004-11-13 22:48:57 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5)
Gecko/20041111 Firefox/1.0

Description of problem:
On a fresh and updated install of FC3, the system-config-securitylevel
applet crashes with this as its output in a terminal:

Traceback (most recent call last):
  File
"/usr/share/system-config-securitylevel/system-config-securitylevel.py",line
18, in ?
    app.stand_alone()
  File "/usr/share/system-config-securitylevel/securitylevel.py", line
427, in stand_alone
    self.selinuxPage = selinuxPage.selinuxPage()
  File "/usr/share/system-config-securitylevel/selinuxPage.py", line
329, in __init__
    self.refreshTunables(self.initialtype)
  File "/usr/share/system-config-securitylevel/selinuxPage.py", line
427, in refreshTunables
    self.loadBooleans()
  File "/usr/share/system-config-securitylevel/selinuxPage.py", line
418, in loadBooleans
    on=rec[3]=="1"
IndexError: list index out of range


Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. To see the error, run from a root terminal
2.
3.
    

Additional info:

Comment 1 P Jones 2004-11-13 23:00:41 UTC
Sorry, should have been more specific; system-config-securitylevel
crashes when run from the menu or when run from a terminal in KDE (not
sure about GNOME or XFCE). system-config-securitylevel-tui works fine.

Comment 2 Glen 2004-11-14 02:22:06 UTC
Looks like an update to libselinux's getsebool utility broke this.

To fix it change line 418 in
/usr/share/system-config-securitylevel/selinuxPage.py from this:
on=rec[3]=="1"
to this:
on=rec[2]=="active"

I'll also attached a patch for the system-config-securitylevel package.

Comment 3 Glen 2004-11-14 02:30:08 UTC
Created attachment 106656 [details]
system-config-securitylevel patch

Changes the system-config-securitylevel package to accomodate a change to
libselinux's getsebool utility.

Comment 4 Glen 2004-11-14 02:36:02 UTC
Good thing I forgot to check for duplicates.  This is a duplicate of
bug 139155.

Comment 5 Paul Nasrat 2004-11-15 13:53:51 UTC

*** This bug has been marked as a duplicate of 139155 ***

Comment 6 Red Hat Bugzilla 2006-02-21 19:07:00 UTC
Changed to 'CLOSED' state since 'RESOLVED' has been deprecated.