Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp244rwb; Tue, 6 Dec 2022 16:23:27 -0800 (PST) X-Google-Smtp-Source: AA0mqf6GZ3jcP9bd+cArbdgaeayie6xFW2tY9Ts+BOqglh92uf7iVm17Wgxp7EV1fOBnb8IFTNVK X-Received: by 2002:a05:6a00:2342:b0:575:1df5:4207 with SMTP id j2-20020a056a00234200b005751df54207mr45862581pfj.4.1670372607222; Tue, 06 Dec 2022 16:23:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670372607; cv=none; d=google.com; s=arc-20160816; b=zfxkaMEGye4JphzHjz6Jd8Rdn30oS5AC84W0IcbrMEhGSOR/xReAMzo7rj//oHgcoU 2D9NAcjQcvZ+oW8zgXiagz0RYI9Ao4xq3aHl3xpjrP9zMOylQh75Q0s4eqqnhs9bV4/H yYRnNopSFtaPYfsDLGiU8r14RMCb/OL7xOdL/fnUNVrpmuLxvIjuRTimbW5bjVV/mdf0 C9sjj9jhS9v4qGnkRamg7Tfb2PsjI/wLLaSWYFndZuGn+H068gDG2qsv7kF5M+WjU0er iPo2EGaVgNeMyk33la4LwZivDCkGzCTt5V8j6OUo0E8fAR6mr4bHNKGXV0rdzFll56FV aIjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=nZhJ0nE0ZA5jKgN6BxcI03RxJNuTqmjNb4Wo31gNIu8=; b=y55qRTJUc1Ur3xADZnf4OrQHuLw5fwDxnJoFdeQoUV5mvu9gqyECIcY6S3W8kUnQrB O3ENEQBeYi9wOBRZgDKhzrTPGW25w2rURRoGPnNz1ldoXrBycUxFGxh5Z6yhvfbO2WHr HPeN8lpcCYt9sFTzCv3PJc4rDmh7AHqdM396+Du23sJcT8Zet/KzeIHid055F9qS1bMZ 1/tpLSGHIlpYdrLS8LVFWchxiSsciMhtwzwgWBWVodaUf8AW8zB/JKCrqkIYpBjXDcq0 9Bx4i2TBEoQBPFPelk1fyZaKUhuZCctML4fHb2jVvQphdCrhQy7A8MrACV476zWAZFBX RPIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@paul-moore-com.20210112.gappssmtp.com header.s=20210112 header.b=edSzeXol; 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 t17-20020a63f351000000b0047815413184si18859123pgj.707.2022.12.06.16.23.09; Tue, 06 Dec 2022 16:23:27 -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; dkim=pass header.i=@paul-moore-com.20210112.gappssmtp.com header.s=20210112 header.b=edSzeXol; 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 S229605AbiLGAWO (ORCPT + 78 others); Tue, 6 Dec 2022 19:22:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35720 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229562AbiLGAWH (ORCPT ); Tue, 6 Dec 2022 19:22:07 -0500 Received: from mail-pl1-x62e.google.com (mail-pl1-x62e.google.com [IPv6:2607:f8b0:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C4BA4B98F for ; Tue, 6 Dec 2022 16:22:03 -0800 (PST) Received: by mail-pl1-x62e.google.com with SMTP id p24so15568309plw.1 for ; Tue, 06 Dec 2022 16:22:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paul-moore-com.20210112.gappssmtp.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=nZhJ0nE0ZA5jKgN6BxcI03RxJNuTqmjNb4Wo31gNIu8=; b=edSzeXolpnKR8kADHnUK5zDys8w7c/jQPn2qCC6ekRSfaXbFtqBwv0XoZxBORA0zTl ChqrF6t4xh14HtTCdCUDCNhISCwfi/5unLVxR43QJ9F4+06QN81+fejH9KA76DnF/GcK SiQk4RONCboetv53VudXNWYOI9arbADgrCvt1c/z0xcGdj9k7pyXNFrWlMW9ICDAaOey otqVF9lR2b5yofFVCsI10JLo3NZU9eqHGlbKkUsvFpHBHXpuvKWVAl6ipTmhgIgp336s 0G+bm6I69oD22pqtkxqRrnnBcnYLrrlrc7WAm0MqWDyxEbOfQgALUIRQtRyh4v3ucelw HZZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=nZhJ0nE0ZA5jKgN6BxcI03RxJNuTqmjNb4Wo31gNIu8=; b=LDFLDOzE5rwAaEPCcI/3/oN6cN9Utu5dIKaNYOKjh9JTNMnsZ9THPNdNvPagx6IzU5 EEZuCOfqWjX31J/dwE3/c7WSFw6gQAgKqatt+fULXwWiBHn2AWRaIkY208A5wm5caRGd 0sG5Af+lUghSWzmi5GPfQmw8PlWBZmy9B2vFzZqf0gLvOa+wP6BVl7bxpHNWyIPCTCuT KBvRBxs5VEHYA1GbgNIdEmjh4YlNrS1qO/wavdwojGeBIPHoVRSLQZMT3FaBfnREFICx 1vE5JXtV/Nj0OWDdW3alaXicbnzKNAxLsu3PmT8iWoejxBP7y5fBYVEiljYrjhaxk/OG a1zg== X-Gm-Message-State: ANoB5plzTyTQ+cNiAGIpymfaDsmmMUG2qK3E1T/2zz2zcF5tQYiolLxG rBhjbUg+gfmNH9rUvPqlOuAmbkex4KsK759LEIeN X-Received: by 2002:a17:902:9892:b0:186:c3b2:56d1 with SMTP id s18-20020a170902989200b00186c3b256d1mr73317153plp.15.1670372522573; Tue, 06 Dec 2022 16:22:02 -0800 (PST) MIME-Version: 1.0 References: <20221128144240.210110-1-roberto.sassu@huaweicloud.com> <20221128144240.210110-3-roberto.sassu@huaweicloud.com> In-Reply-To: <20221128144240.210110-3-roberto.sassu@huaweicloud.com> From: Paul Moore Date: Tue, 6 Dec 2022 19:21:50 -0500 Message-ID: Subject: Re: [PATCH v2 2/2] lsm: Add/fix return values in lsm_hooks.h and fix formatting To: Roberto Sassu 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 Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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 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. -- paul-moore.com