diff -Nru audit-2.6.6/debian/changelog audit-2.6.6/debian/changelog --- audit-2.6.6/debian/changelog 2016-09-06 12:37:46.000000000 +0000 +++ audit-2.6.6/debian/changelog 2017-10-17 20:00:47.000000000 +0000 @@ -1,3 +1,10 @@ +audit (1:2.6.6-1ubuntu1.1) zesty; urgency=medium + + * debian/patches/02-print-loginuid-in-login-report.patch: Display the + loginuid when using aureport to display a login report (LP: #1724152) + + -- Tyler Hicks Tue, 17 Oct 2017 20:00:47 +0000 + audit (1:2.6.6-1ubuntu1) yakkety; urgency=medium * Merge with Debian; remaining changes: diff -Nru audit-2.6.6/debian/patches/02-print-loginuid-in-login-report.patch audit-2.6.6/debian/patches/02-print-loginuid-in-login-report.patch --- audit-2.6.6/debian/patches/02-print-loginuid-in-login-report.patch 1970-01-01 00:00:00.000000000 +0000 +++ audit-2.6.6/debian/patches/02-print-loginuid-in-login-report.patch 2017-10-17 20:00:39.000000000 +0000 @@ -0,0 +1,31 @@ +From 25097d64344828a80acf681da5c1dacc4ea3c069 Mon Sep 17 00:00:00 2001 +From: Steve Grubb +Date: Sun, 7 May 2017 08:48:18 -0700 +Subject: [PATCH] Aureport's login report was corrected to print the loginuid + +Bug-Ubuntu: https://launchpad.net/bugs/1724152 +--- + src/aureport-output.c | 5 +++-- + 2 files changed, 4 insertions(+), 2 deletions(-) + +index 4477aaa..68623d5 100644 +--- a/src/aureport-output.c ++++ b/src/aureport-output.c +@@ -1,6 +1,6 @@ + /* + * aureport-output.c - Print the report +-* Copyright (c) 2005-06,2008,2014 Red Hat Inc., Durham, North Carolina. ++* Copyright (c) 2005-06,2008,2014,2017 Red Hat Inc., Durham, North Carolina. + * All Rights Reserved. + * + * This software may be freely redistributed and/or modified under the +@@ -542,7 +542,8 @@ void print_per_event_item(llist *l) + // on failed logins, loginuid is not set. + safe_print_string(((l->s.success == S_FAILED) && + l->s.acct) ? l->s.acct : +- aulookup_uid(l->s.uid, name, sizeof(name)), 0); ++ aulookup_uid(l->s.loginuid, ++ name, sizeof(name)), 0); + printf(" %s %s %s %s %lu\n", + l->s.hostname, l->s.terminal, + l->s.exe, aulookup_success(l->s.success), diff -Nru audit-2.6.6/debian/patches/series audit-2.6.6/debian/patches/series --- audit-2.6.6/debian/patches/series 2016-08-15 11:43:06.000000000 +0000 +++ audit-2.6.6/debian/patches/series 2017-10-17 20:00:11.000000000 +0000 @@ -1 +1,2 @@ 01-no-refusemanualstop.patch +02-print-loginuid-in-login-report.patch