semanage: close the selabel handle
Close the selabel handle to update the file_context. This means that the file_context will be remmaped and used by selabel_lookup() to return the appropriate context to label the home folder. Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1993081 Signed-off-by: Iker Pedrosa <ipedrosa@redhat.com>
This commit is contained in:
@ -293,6 +293,7 @@ int set_seuser (const char *login_name, const char *seuser_name)
|
||||
}
|
||||
|
||||
ret = 0;
|
||||
reset_selinux_handle();
|
||||
|
||||
done:
|
||||
semanage_seuser_key_free (key);
|
||||
|
Reference in New Issue
Block a user