From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757069AbbE2TPl (ORCPT ); Fri, 29 May 2015 15:15:41 -0400 Received: from mx1.redhat.com ([209.132.183.28]:53770 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756443AbbE2TPd (ORCPT ); Fri, 29 May 2015 15:15:33 -0400 From: Paul Moore To: Richard Guy Briggs Cc: linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org, linux-audit@redhat.com, sgrubb@redhat.com, eparis@parisplace.org, jmorris@namei.org Subject: Re: [PATCH] lsm: rename duplicate labels in LSM_AUDIT_DATA_TASK audit message type Date: Fri, 29 May 2015 15:15:31 -0400 Message-ID: <1678145.1EicOmLJQ4@sifl> Organization: Red Hat User-Agent: KMail/4.14.8 (Linux/3.16.7-gentoo; KDE/4.14.8; x86_64; ; ) In-Reply-To: <096df9441c4492ab31851eba63fee4408872d06f.1429121009.git.rgb@redhat.com> References: <096df9441c4492ab31851eba63fee4408872d06f.1429121009.git.rgb@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wednesday, April 15, 2015 02:08:25 PM Richard Guy Briggs wrote: > The LSM_AUDIT_DATA_TASK pid= and comm= labels are duplicates of those at the > start of this function with different values. Rename them to their object > counterparts opid= and ocomm= to disambiguate. > > Signed-off-by: Richard Guy Briggs > --- > security/lsm_audit.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) Applied, thanks. > diff --git a/security/lsm_audit.c b/security/lsm_audit.c > index b526ddc..3323144 100644 > --- a/security/lsm_audit.c > +++ b/security/lsm_audit.c > @@ -282,7 +282,7 @@ static void dump_common_audit_data(struct audit_buffer > *ab, pid_t pid = task_pid_nr(tsk); > if (pid) { > char comm[sizeof(tsk->comm)]; > - audit_log_format(ab, " pid=%d comm=", pid); > + audit_log_format(ab, " opid=%d ocomm=", pid); > audit_log_untrustedstring(ab, > memcpy(comm, tsk->comm, sizeof(comm))); > } -- paul moore security @ redhat