Bug 191285 - Traceback in genhomediricon
Summary: Traceback in genhomediricon
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: policycoreutils
Version: 5
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-05-10 14:49 UTC by Orion Poplawski
Modified: 2007-11-30 22:11 UTC (History)
5 users (show)

Fixed In Version: 1.30.10-1.fc5
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-08-09 22:00:52 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Orion Poplawski 2006-05-10 14:49:33 UTC
Description of problem:

While updating to policycoreutils.i386 0:1.30.8-1.fc5 selinux-policy.noarch
0:2.2.38-1.fc5 selinux-policy-targeted.noarch 0:2.2.38-1.fc5 from updates-testing:

Traceback (most recent call last):
  File "/usr/sbin/genhomedircon", line 373, in ?
    selconf.write()
  File "/usr/sbin/genhomedircon", line 334, in write
    fd.write(self.genoutput())
  File "/usr/sbin/genhomedircon", line 321, in genoutput
    for h in self.getHomeDirs():
  File "/usr/sbin/genhomedircon", line 311, in getHomeDirs
    if self.checkExists(homedir) == 1:
  File "/usr/sbin/genhomedircon", line 287, in checkExists
    regex = i.split()[0]
IndexError: list index out of range
libsemanage.semanage_install_sandbox: genhomedircon returned error code 1.

Does it each time I run genhomedircon on this machine, but doesn't happen on all
of our mchines.

Comment 1 Daniel Walsh 2006-05-10 18:30:34 UTC
Do you have a strange entry in your passwd file for a uid > 500?  Perhaps a
service that genhomedircon thinks is a user?

Dan

Comment 2 Orion Poplawski 2006-05-10 18:38:12 UTC
Yup:

sgeadmin:x:501:4:Sun Grid Engine Admin:/opt/local/sge:/bin/tcsh

/opt/local/ is an automounted NFS dir.

Comment 3 Daniel Walsh 2006-05-10 19:14:20 UTC
If that is not a login account, change its shell to /sbin/nologin
There is a bug in genhomedircon which will be fixed in tonights rawhide, and I
will through out on ftp://people.redhat.com/dwalsh/SELinux/Fedora

Fixed in 1.30.8-2


Comment 4 Sitsofe Wheeler 2006-05-30 21:32:22 UTC
I've got this problem too in FC5.

Comment 5 Daniel Walsh 2006-06-06 19:55:52 UTC
Should be fixed in	policycoreutils-1.30.10-1.fc5


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