Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 169776

Summary: genhomedircon doesn't handle homedir's trailing slash
Product: Gentoo Linux Reporter: Arturas <arturas>
Component: HardenedAssignee: Chris PeBenito (RETIRED) <pebenito>
Status: RESOLVED INVALID    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Arturas 2007-03-07 14:56:00 UTC
If user's homedir ends with slash, then genhomedircon creates two sections: one with user_u and second good as should be by selinux user.

Reproducible: Always

Steps to Reproduce:
1. create user and set homedir with trailing slash
2. assign sysadm_u selinux user to that user
3. cat /etc/selinux/strict/contexts/files/file_contexts.homedirs

Actual Results:  
two sections with different selinux users

Expected Results:  
one section with right selinux user
Comment 1 Chris PeBenito (RETIRED) gentoo-dev 2009-08-21 19:58:22 UTC
Closing old bugs.  genhomedircon is written in C now, please open a new bug if this is still a problem.