Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.

Bug 455774

Summary: genhomedircon does not filter out conflicts
Product: [Fedora] Fedora Reporter: Jeff Moyer <jmoyer>
Component: policycoreutilsAssignee: Daniel Walsh <dwalsh>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: 9   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-09-17 18:34:56 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Jeff Moyer 2008-07-17 17:25:01 UTC
Description of problem:
I had a passwd entry that used /var/crash as its home directory, and a login
shell of /bin/bash.  I ended up getting a lot of message like this:

/etc/selinux/targeted/contexts/files/file_contexts: Multiple same specifications
for /var/lost\+found/.*.

<dwalsh>genhomedircon labels the parent directory home_root_t and the child
<dwalsh> So /var -> home_root_t. crash user_home_dir_t
<dwalsh> Confined domains are not allowed in users homedir.
<dwalsh> useradd -d /var/dwalsh1 dwalsh1
<dwalsh> genhomedircon 
<dwalsh> matchpathcon /var/dwalsh1
<dwalsh> /etc/selinux/targeted/contexts/files/file_contexts: Multiple same
specifications for /var/lost\+found/.*.
<dwalsh> /etc/selinux/targeted/contexts/files/file_contexts: Multiple different
specifications for /var  (system_u:object_r:home_root_t:s0 and
<dwalsh> /etc/selinux/targeted/contexts/files/file_contexts: Multiple same
specifications for /var/\.journal.
<dwalsh> /etc/selinux/targeted/contexts/files/file_contexts: Multiple same
specifications for /var/lost\+found.
<dwalsh> /var/dwalsh1 system_u:object_r:user_home_dir_t:s0
<dwalsh> The genhomedircon should have complained and not added the entries.

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

Comment 1 Daniel Walsh 2008-07-17 18:54:55 UTC
Fixed in libsemanage-2.0.25-3.fc9