From mboxrd@z Thu Jan 1 00:00:00 1970 From: Miloslav =?UTF-8?Q?Trma=C4=8D?= Subject: [PATCH] Make the records output by audit_log_semanage_message() consistent Date: Mon, 24 Mar 2008 03:31:14 +0100 Message-ID: <1206325874.17164.32.camel@amilo> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-w6oYXTbQ+eX0Zfi86cGt" Return-path: Received: from [10.32.4.3] (vpn-4-3.str.redhat.com [10.32.4.3]) by pobox.stuttgart.redhat.com (8.13.1/8.13.1) with ESMTP id m2O2VGVc009823 for ; Sun, 23 Mar 2008 22:31:17 -0400 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-audit-bounces@redhat.com Errors-To: linux-audit-bounces@redhat.com To: linux-audit@redhat.com List-Id: linux-audit@redhat.com --=-w6oYXTbQ+eX0Zfi86cGt Content-Type: text/plain Content-Transfer-Encoding: 7bit Hello, the attached patch fixes an inconsistency in audit_log_semanage_message(): It uses "old-seuser=" etc. if the name parameter is provided, but "old seuser=" etc. otherwise. Mirek --=-w6oYXTbQ+eX0Zfi86cGt Content-Disposition: inline; filename=audit-1.6.9-semanage_message.patch Content-Type: text/x-patch; name=audit-1.6.9-semanage_message.patch; charset=UTF-8 Content-Transfer-Encoding: 7bit diff -ur audit/lib/audit_logging.c audit-1.6.9/lib/audit_logging.c --- audit/lib/audit_logging.c 2008-03-09 19:33:51.000000000 +0100 +++ audit-1.6.9/lib/audit_logging.c 2008-03-24 03:13:51.000000000 +0100 @@ -562,7 +562,7 @@ ); } else snprintf(buf, sizeof(buf), - "op=%s id=%u old seuser=%s old role=%s old range=%s new seuser=%s new role=%s new range=%s exe=%s (hostname=%s, addr=%s, terminal=%s res=%s)", + "op=%s id=%u old-seuser=%s old-role=%s old-range=%s new-seuser=%s new-role=%s new-range=%s exe=%s (hostname=%s, addr=%s, terminal=%s res=%s)", op, id, old_seuser && strlen(old_seuser) ? old_seuser : "?", old_role && strlen(old_role) ? old_role : "?", --=-w6oYXTbQ+eX0Zfi86cGt Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --=-w6oYXTbQ+eX0Zfi86cGt--