Bug 235306 - system-config-selinux fails to start
system-config-selinux fails to start
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: policycoreutils (Show other bugs)
rawhide
All Linux
medium Severity high
: ---
: ---
Assigned To: Daniel Walsh
Ben Levenson
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2007-04-04 19:14 EDT by Stephanos Manos
Modified: 2007-11-30 17:12 EST (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2007-04-18 07:52:55 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Stephanos Manos 2007-04-04 19:14:28 EDT
Description of problem:
when starting system-config-selinux i get the following
/usr/share/system-config-selinux/system-config-selinux.py:69: Warning:
IA__g_object_get_valist: object class `GnomeProgram' has no property named
`default-icon'
  xml = gtk.glade.XML
("/usr/share/system-config-selinux/system-config-selinux.glade", domain=PROGNAME)
Traceback (most recent call last):
  File "/usr/share/system-config-selinux/system-config-selinux.py", line 168, in
<module>
    app = childWindow()
  File "/usr/share/system-config-selinux/system-config-selinux.py", line 87, in
__init__
    self.add_page(modulesPage.modulesPage(xml)) # modules
  File "/usr/share/system-config-selinux/modulesPage.py", line 68, in __init__
    self.load()
  File "/usr/share/system-config-selinux/modulesPage.py", line 88, in load
    module, ver = i.split('\t')
ValueError: need more than 1 value to unpack


Version-Release number of selected component (if applicable):
policycoreutils-gui-2.0.7-9.fc7

How reproducible:
always

Steps to Reproduce:
1. from a terminal start system-config-selinux
2.
3.
  
Actual results:
the error message

Expected results:
the program to load

Additional info:
Comment 1 Daniel Walsh 2007-04-05 09:30:23 EDT
What does semodule -i list?
Comment 2 Daniel Walsh 2007-04-05 10:10:08 EDT
Actually semodule -l
Comment 3 Stephanos Manos 2007-04-05 10:37:58 EDT
[root@ghost ~]# semodule -l
No modules.
[root@ghost ~]# 
Comment 4 Stephanos Manos 2007-04-05 16:47:23 EDT
The problem was with seedit. Removimg it the problem was fixed (?)
Comment 5 Will Woods 2007-04-08 21:06:00 EDT
Confirmed here. The following patch is a possible workaround: 

--- /usr/share/system-config-selinux/modulesPage.py.orig        2007-04-08
20:57:23.000000000 -0400
+++ /usr/share/system-config-selinux/modulesPage.py     2007-04-08
20:54:13.000000000 -0400
@@ -85,6 +85,8 @@
         l = fd.readlines()
         fd.close()
         for i in l:
+            if '\t' not in i: 
+                continue
             module, ver = i.split('\t')
             iter = self.store.append()
             self.store.set_value(iter, 0, module.strip())

And, obviously, removing seedit works too.
Comment 6 Daniel Walsh 2007-04-09 10:16:25 EDT
Fixed in policycoreutils-2_0_7-10
Comment 7 Stephanos Manos 2007-04-18 03:00:22 EDT
Yes. It works now.

Note You need to log in before you can comment on or make changes to this bug.