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
Closing old bugs. genhomedircon is written in C now, please open a new bug if this is still a problem.