Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp494263rwb; Wed, 7 Dec 2022 00:59:06 -0800 (PST) X-Google-Smtp-Source: AA0mqf4w0eU5zmiNQERegQ63baMSl3dKBwRLS7hpnXhS2Zy2vanikQlselz/LkfxqIgqExOXbI4Q X-Received: by 2002:a17:906:3413:b0:7c0:e6d7:92ad with SMTP id c19-20020a170906341300b007c0e6d792admr11823034ejb.419.1670403546212; Wed, 07 Dec 2022 00:59:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670403546; cv=none; d=google.com; s=arc-20160816; b=l1Qtx0+fO6+gWUGWA4gKxd7cbsybu+2a+Rio7insXqLckI7LNK0JGSe/2RY2ZpZjEU Cu7E4E7DrHQwLYVd3b8I65fNErXc3xWCOk3DmcxmEjXASpI2j7hI1UJ4PUJllsK64U1i Nsa9IOpGLzKEssgD9GVf+sdCCtNjU9QyuGGkzjlf0TRiKOagwYd9kOU36OBQYda45tvq Bh+Y8eJXDZ2FAdO1OjUYUlUISVXZqKFQCfJhmnOlBOCef0RgAEG3RRjv1+AiPL3X7EBe hHxSKNuzQb7J1IhB+0G85TRYOp0s1p/uGDSKN1SRC7Po1RqBXWMMf9/B2N06L6cyXozt 9iQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=s4FndMcDY+FJIzTbwf9I84VaAgKMKTu1O+zAy/pAWsY=; b=cY5STY1uNVxz4j+ImcqBM1aoPt3WvUCUKHZ/irLhbMqXdRTwc0PogojOLGpzUwttfU 69M4PwlQuYZ7Omv6uyQLJb/fbd8joKCi5fRMgurp/W4ktYu84w32WMgF+sFszh9NV6hM E7rOAQrukHMJ9vKZTIG7TLG8Q1Wsp6CZmVdoZZ4RV2dkdB7pecXpm020n6/sKz9dXxNq awjvxA8kINhbKD6vyvMrmfRmRGwAgmQ8lPPmRDhAG1P2ft8h2EqTOZZIFffKoQonxgBD 7xVdHMWLZmDqYvj2V2n5uiBmcguWs3kQXLn6gA4ch9yQBAXA945ZGYfpPPKVnmdAfxBi fajA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a1-20020a509e81000000b00469bd46b090si3465574edf.261.2022.12.07.00.58.48; Wed, 07 Dec 2022 00:59:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229885AbiLGH7R (ORCPT + 76 others); Wed, 7 Dec 2022 02:59:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48352 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229787AbiLGH7P (ORCPT ); Wed, 7 Dec 2022 02:59:15 -0500 Received: from frasgout13.his.huawei.com (frasgout13.his.huawei.com [14.137.139.46]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6115417A96; Tue, 6 Dec 2022 23:59:13 -0800 (PST) Received: from mail02.huawei.com (unknown [172.18.147.228]) by frasgout13.his.huawei.com (SkyGuard) with ESMTP id 4NRqHm0zcXz9xFGy; Wed, 7 Dec 2022 15:52:04 +0800 (CST) Received: from roberto-ThinkStation-P620 (unknown [10.204.63.22]) by APP2 (Coremail) with SMTP id GxC2BwDnG_i2R5Bj6WfHAA--.59725S2; Wed, 07 Dec 2022 08:58:53 +0100 (CET) Message-ID: <7225e76c09c7ff68937e37ee041fefdd6ccac1c8.camel@huaweicloud.com> Subject: Re: [PATCH v2 2/2] lsm: Add/fix return values in lsm_hooks.h and fix formatting From: Roberto Sassu To: Paul Moore Cc: casey@schaufler-ca.com, omosnace@redhat.com, john.johansen@canonical.com, kpsingh@kernel.org, bpf@vger.kernel.org, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org, Roberto Sassu Date: Wed, 07 Dec 2022 08:58:42 +0100 In-Reply-To: References: <20221128144240.210110-1-roberto.sassu@huaweicloud.com> <20221128144240.210110-3-roberto.sassu@huaweicloud.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.5-0ubuntu1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-CM-TRANSID: GxC2BwDnG_i2R5Bj6WfHAA--.59725S2 X-Coremail-Antispam: 1UD129KBjvJXoW7Ww4Dtw17Ary5ArWfZFWxCrg_yoW8Wr48pF sxG3W3AFn5ZryIkF43X3W7Gw4S9395Gr1UJr17Ww18Z34FyrW2yFy7CF1YgFWDJrWkCFyj 9Fyagw1DuFy7A37anT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDU0xBIdaVrnRJUUUgmb4IE77IF4wAFF20E14v26r4j6ryUM7CY07I20VC2zVCF04k2 6cxKx2IYs7xG6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rwA2F7IY1VAKz4 vEj48ve4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_Jr0_JF4l84ACjcxK6xIIjxv20xvEc7Cj xVAFwI0_Jr0_Gr1l84ACjcxK6I8E87Iv67AKxVWUJVW8JwA2z4x0Y4vEx4A2jsIEc7CjxV AFwI0_Gr0_Gr1UM2AIxVAIcxkEcVAq07x20xvEncxIr21l5I8CrVACY4xI64kE6c02F40E x7xfMcIj6xIIjxv20xvE14v26r1j6r18McIj6I8E87Iv67AKxVWUJVW8JwAm72CE4IkC6x 0Yz7v_Jr0_Gr1lF7xvr2IY64vIr41l42xK82IYc2Ij64vIr41l4I8I3I0E4IkC6x0Yz7v_ Jr0_Gr1lx2IqxVAqx4xG67AKxVWUJVWUGwC20s026x8GjcxK67AKxVWUGVWUWwC2zVAF1V AY17CE14v26r1q6r43MIIYrxkI7VAKI48JMIIF0xvE2Ix0cI8IcVAFwI0_Jr0_JF4lIxAI cVC0I7IYx2IY6xkF7I0E14v26r1j6r4UMIIF0xvE42xK8VAvwI8IcIk0rVWrZr1j6s0DMI IF0xvEx4A2jsIE14v26r1j6r4UMIIF0xvEx4A2jsIEc7CjxVAFwI0_Jr0_GrUvcSsGvfC2 KfnxnUUI43ZEXa7IU1zuWJUUUUU== X-CM-SenderInfo: purev21wro2thvvxqx5xdzvxpfor3voofrz/1tbiAQATBF1jj4ZeLgACsT X-CFilter-Loop: Reflected X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2022-12-06 at 19:21 -0500, Paul Moore wrote: > On Mon, Nov 28, 2022 at 9:43 AM Roberto Sassu > wrote: > > From: Roberto Sassu > > > > Ensure that for non-void LSM hooks there is a description of the return > > values. > > > > Also, replace spaces with tab for indentation, remove empty lines between > > the hook description and the list of parameters, adjust semicolons and add > > the period at the end of the parameter description. > > > > Finally, move the description of gfp parameter of the > > xfrm_policy_alloc_security hook together with the others. > > > > Signed-off-by: Roberto Sassu > > --- > > include/linux/lsm_hooks.h | 221 ++++++++++++++++++++++++-------------- > > 1 file changed, 138 insertions(+), 83 deletions(-) > > Thanks Roberto, I've merged this into lsm/next with one small tweak (below). > > > diff --git a/include/linux/lsm_hooks.h b/include/linux/lsm_hooks.h > > index c35e260efd8c..6502a1bea93a 100644 > > --- a/include/linux/lsm_hooks.h > > +++ b/include/linux/lsm_hooks.h > > @@ -677,7 +695,7 @@ > > * indicates which of the set*uid system calls invoked this hook. If > > * @new is the set of credentials that will be installed. Modifications > > * should be made to this rather than to @current->cred. > > - * @old is the set of credentials that are being replaces > > + * @old is the set of credentials that are being replaces. > > Might as well change "replaces" to "replaced". I'll go ahead and fix > that up during the merge. Thanks a lot! Roberto