Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 169776 - genhomedircon doesn't handle homedir's trailing slash
Summary: genhomedircon doesn't handle homedir's trailing slash
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Hardened (show other bugs)
Hardware: All Linux
: High normal
Assignee: Chris PeBenito (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-07 14:56 UTC by Arturas
Modified: 2009-08-21 19:58 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.