Bug 191285

Summary: Traceback in genhomediricon
Product: [Fedora] Fedora Reporter: Orion Poplawski <orion>
Component: policycoreutilsAssignee: Daniel Walsh <dwalsh>
Status: CLOSED CURRENTRELEASE QA Contact: Ben Levenson <benl>
Severity: medium Docs Contact:
Priority: medium    
Version: 5CC: dwalsh, elsmorian, pgraner, rollercow, sitsofe
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 1.30.10-1.fc5 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-08-09 22:00:52 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 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