libsemanage: use previous seuser when getting the previous name
I missed this bug in commit 9ec0ea143ab5 ("libsemanage: use previous seuser when getting the previous name"). Signed-off-by: Nicolas Iooss <nicolas.iooss@m4x.org>
This commit is contained in:
parent
343442e99b
commit
b573f65238
|
@ -72,7 +72,7 @@ static int semanage_seuser_audit(semanage_handle_t * handle,
|
|||
int rc = -1;
|
||||
strcpy(msg, "login");
|
||||
if (previous) {
|
||||
name = semanage_seuser_get_name(seuser);
|
||||
name = semanage_seuser_get_name(previous);
|
||||
psename = semanage_seuser_get_sename(previous);
|
||||
pmls = semanage_seuser_get_mlsrange(previous);
|
||||
proles = semanage_user_roles(handle, psename);
|
||||
|
|
Loading…
Reference in New Issue