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:
Nicolas Iooss 2018-09-05 22:06:35 +02:00
parent 343442e99b
commit b573f65238
No known key found for this signature in database
GPG Key ID: C191415F340DAAA0
1 changed files with 1 additions and 1 deletions

View File

@ -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);