I missed this bug in commit 9ec0ea143ab5 ("libsemanage: use previous
seuser when getting the previous name").

Signed-off-by: Nicolas Iooss <nicolas.io...@m4x.org>
---
 libsemanage/src/seusers_local.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libsemanage/src/seusers_local.c b/libsemanage/src/seusers_local.c
index 5fbb09e40b69..a79e2d3d230b 100644
--- a/libsemanage/src/seusers_local.c
+++ b/libsemanage/src/seusers_local.c
@@ -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);
-- 
2.18.0

_______________________________________________
Selinux mailing list
Selinux@tycho.nsa.gov
To unsubscribe, send email to selinux-le...@tycho.nsa.gov.
To get help, send an email containing "help" to selinux-requ...@tycho.nsa.gov.

Reply via email to