From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 239C2C48BD1 for ; Wed, 9 Jun 2021 12:49:39 +0000 (UTC) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id AED5A611C9 for ; Wed, 9 Jun 2021 12:49:38 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AED5A611C9 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=huawei.com Authentication-Results: mail.kernel.org; spf=tempfail smtp.mailfrom=linux-audit-bounces@redhat.com Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-117-aU3bOsyKPZ6uLk6lDw3V2Q-1; Wed, 09 Jun 2021 08:49:35 -0400 X-MC-Unique: aU3bOsyKPZ6uLk6lDw3V2Q-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 7A36CDF8C4; Wed, 9 Jun 2021 12:49:32 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 2C9565C1C2; Wed, 9 Jun 2021 12:49:32 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 908EC1832E71; Wed, 9 Jun 2021 12:49:30 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 1591o3s9017180 for ; Tue, 8 Jun 2021 21:50:03 -0400 Received: by smtp.corp.redhat.com (Postfix) id F3D2B2094D3C; Wed, 9 Jun 2021 01:50:02 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast04.extmail.prod.ext.rdu2.redhat.com [10.11.55.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id EFF2520962CD for ; Wed, 9 Jun 2021 01:50:00 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id B35E4101D221 for ; Wed, 9 Jun 2021 01:50:00 +0000 (UTC) Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-260-I5xPASS9N9OU0aYCoYMs-A-1; Tue, 08 Jun 2021 21:49:56 -0400 X-MC-Unique: I5xPASS9N9OU0aYCoYMs-A-1 Received: from dggemv704-chm.china.huawei.com (unknown [172.30.72.53]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4G092J3t9dz6wsf; Wed, 9 Jun 2021 09:46:48 +0800 (CST) Received: from dggpemm500006.china.huawei.com (7.185.36.236) by dggemv704-chm.china.huawei.com (10.3.19.47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Wed, 9 Jun 2021 09:49:52 +0800 Received: from [127.0.0.1] (10.174.177.72) by dggpemm500006.china.huawei.com (7.185.36.236) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Wed, 9 Jun 2021 09:49:50 +0800 Subject: Re: [PATCH 1/1] audit: remove trailing spaces and tabs To: Richard Guy Briggs References: <20210608075437.13120-1-thunder.leizhen@huawei.com> <20210608151744.GD2268484@madcap2.tricolour.ca> From: "Leizhen (ThunderTown)" Message-ID: <8f3615c5-db21-4642-8b38-459974747ec2@huawei.com> Date: Wed, 9 Jun 2021 09:49:49 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <20210608151744.GD2268484@madcap2.tricolour.ca> X-Originating-IP: [10.174.177.72] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To dggpemm500006.china.huawei.com (7.185.36.236) X-CFilter-Loop: Reflected X-Mimecast-Impersonation-Protect: Policy=CLT - Impersonation Protection Definition; Similar Internal Domain=false; Similar Monitored External Domain=false; Custom External Domain=false; Mimecast External Domain=false; Newly Observed Domain=false; Internal User Name=false; Custom Display Name List=false; Reply-to Address Mismatch=false; Targeted Threat Dictionary=false; Mimecast Threat Dictionary=false; Custom Threat Dictionary=false X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-loop: linux-audit@redhat.com X-Mailman-Approved-At: Wed, 09 Jun 2021 08:49:29 -0400 Cc: linux-audit , Eric Paris , linux-kernel X-BeenThere: linux-audit@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Linux Audit Discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-audit-bounces@redhat.com Errors-To: linux-audit-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=linux-audit-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit On 2021/6/8 23:17, Richard Guy Briggs wrote: > On 2021-06-08 15:54, Zhen Lei wrote: >> Run the following command to find and remove the trailing spaces and tabs: >> >> sed -r -i 's/[ \t]+$//' kernel/audit* > > The api header include/uapi/linux/audit.h should probably be included. OK, I will included it in v2. > >> Signed-off-by: Zhen Lei >> --- >> kernel/audit.h | 2 +- >> kernel/auditsc.c | 8 ++++---- >> 2 files changed, 5 insertions(+), 5 deletions(-) >> >> diff --git a/kernel/audit.h b/kernel/audit.h >> index 1522e100fd17..cab3e2652dab 100644 >> --- a/kernel/audit.h >> +++ b/kernel/audit.h >> @@ -1,5 +1,5 @@ >> /* SPDX-License-Identifier: GPL-2.0-or-later */ >> -/* audit -- definition of audit_context structure and supporting types >> +/* audit -- definition of audit_context structure and supporting types >> * >> * Copyright 2003-2004 Red Hat, Inc. >> * Copyright 2005 Hewlett-Packard Development Company, L.P. >> diff --git a/kernel/auditsc.c b/kernel/auditsc.c >> index 0a9a1569f1ea..679a43fd342a 100644 >> --- a/kernel/auditsc.c >> +++ b/kernel/auditsc.c >> @@ -343,13 +343,13 @@ static int audit_compare_uid(kuid_t uid, >> { >> struct audit_names *n; >> int rc; >> - >> + >> if (name) { >> rc = audit_uid_comparator(uid, f->op, name->uid); >> if (rc) >> return rc; >> } >> - >> + >> if (ctx) { >> list_for_each_entry(n, &ctx->names_list, list) { >> rc = audit_uid_comparator(uid, f->op, n->uid); >> @@ -367,13 +367,13 @@ static int audit_compare_gid(kgid_t gid, >> { >> struct audit_names *n; >> int rc; >> - >> + >> if (name) { >> rc = audit_gid_comparator(gid, f->op, name->gid); >> if (rc) >> return rc; >> } >> - >> + >> if (ctx) { >> list_for_each_entry(n, &ctx->names_list, list) { >> rc = audit_gid_comparator(gid, f->op, n->gid); >> -- >> 2.25.1 > > - RGB > > -- > Richard Guy Briggs > Sr. S/W Engineer, Kernel Security, Base Operating Systems > Remote, Ottawa, Red Hat Canada > IRC: rgb, SunRaycer > Voice: +1.647.777.2635, Internal: (81) 32635 > > > . > -- Linux-audit mailing list Linux-audit@redhat.com https://listman.redhat.com/mailman/listinfo/linux-audit