mirror of
https://github.com/SELinuxProject/selinux
synced 2025-02-06 12:53:03 +00:00
genhomedircon: generate contexts for logins mapped to the default user
Removes a test in get_users() which excludes any logins that are explicitly mapped to the default user from file context generation, which results in logins mapped to the fallback user with home directories outside of LU_HOMEDIRECTORY (in the absence of usepasswd=True) having no matching file_contexts.homedirs entries. Signed-off-by: Gary Tierney <gary.tierney@gmx.com>
This commit is contained in:
parent
0dce00d72e
commit
83ab9e258f
@ -853,9 +853,6 @@ static genhomedircon_user_entry_t *get_users(genhomedircon_settings_t * s,
|
||||
seuname = semanage_seuser_get_sename(seuser_list[i]);
|
||||
name = semanage_seuser_get_name(seuser_list[i]);
|
||||
|
||||
if (strcmp(name,"root") && strcmp(seuname, s->fallback->sename) == 0)
|
||||
continue;
|
||||
|
||||
if (strcmp(name, DEFAULT_LOGIN) == 0)
|
||||
continue;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user