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=-5.2 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no 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 EE755C388F7 for ; Wed, 28 Oct 2020 21:48:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9963B2245A for ; Wed, 28 Oct 2020 21:48:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727872AbgJ1Vsk (ORCPT ); Wed, 28 Oct 2020 17:48:40 -0400 Received: from namei.org ([65.99.196.166]:38520 "EHLO namei.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727805AbgJ1Vsi (ORCPT ); Wed, 28 Oct 2020 17:48:38 -0400 Received: from localhost (localhost [127.0.0.1]) by namei.org (8.14.4/8.14.4) with ESMTP id 09S5Rmxe026811; Wed, 28 Oct 2020 05:27:49 GMT Date: Wed, 28 Oct 2020 16:27:48 +1100 (AEDT) From: James Morris To: Paul Moore cc: linux-security-module@vger.kernel.org, selinux@vger.kernel.org, Herbert Xu , netdev@vger.kernel.org Subject: Re: [RFC PATCH] lsm,selinux: pass the family information along with xfrm flow In-Reply-To: Message-ID: References: <160141647786.7997.5490924406329369782.stgit@sifl> User-Agent: Alpine 2.21 (LRH 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: On Tue, 27 Oct 2020, Paul Moore wrote: > On Wed, Sep 30, 2020 at 9:44 AM Paul Moore wrote: > > On Tue, Sep 29, 2020 at 7:09 PM James Morris wrote: > > > I'm not keen on adding a parameter which nobody is using. Perhaps a note > > > in the header instead? > > > > On Wed, Sep 30, 2020 at 6:14 AM Herbert Xu wrote: > > > Please at least change to the struct flowi to flowi_common if we're > > > not adding a family field. > > > > It did feel a bit weird adding a (currently) unused parameter, so I > > can understand the concern, I just worry that a comment in the code > > will be easily overlooked. I also thought about passing a pointer to > > the nested flowi_common struct, but it doesn't appear that this is > > done anywhere else in the stack so it felt wrong to do it here. > > With the merge window behind us, where do stand on this? I see the > ACK from Casey and some grumbling about adding an unused parameter > (which is a valid argument, I just feel the alternative is worse), but > I haven't seen any serious NACKs. > > Any objections or other strong feelings to me merging this via the > selinux/next branch? Yes, we should not add unused parameters to functions. -- James Morris