Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp661277rwl; Fri, 31 Mar 2023 00:02:35 -0700 (PDT) X-Google-Smtp-Source: AKy350ZRiOoAGV3dpfog/0mixQUd/3vZ1UucZFXg2Bf3A0UbNFyfnm8logPTJR81/H/f2JzZyObn X-Received: by 2002:a17:906:25d:b0:947:b966:7ab0 with SMTP id 29-20020a170906025d00b00947b9667ab0mr486712ejl.3.1680246155065; Fri, 31 Mar 2023 00:02:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680246155; cv=none; d=google.com; s=arc-20160816; b=BIpXk0YqMoFbE7v6pULr3ysazfBSq/wze/o9iIj4qp9H2obHgvnym/NP9j0d35B3ZN Bs+cRppDEiQj49IMTg5dQzk6rRiWLx4sn+r6otkIBcHR3DDhc8/gRZFL5HadoKgrBUyl LpRIeBfUVhyNAXO9ekJs2MB6a+TUgbRvkQyuYXE10VKkFTKZEnNVwRMoqaVcWhImFF/Q e4nFotmUfFZoXO0gGQlxBKP6qs6+hlxIr17nwEzTOMx3mTROpvFklP3wp4P6jbLAotz3 YbDDpaOw5Nk/e+1M5Yx++lU7s1Vg/w4Y2XEpT6tgXybM1wJVuMKQF1mzK8uBUa6k7Zuf rhjA== 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 :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=3X6WrxtEcRBB/WMuB3pzk9APL3q7bHhWzy7j8gGTtDE=; b=jrMiH6JNiOjAFMu2gFMsJda3h07iqZ9kVNw5ZIdjnBQn2Jau14GsQAf0sxBBCwvM0p r+5TbNCKBU4cIUi+7VIz9wTidqihlpE4mID0OdaEH4kr2WKxDaP2QXCe+utdR2otVibg dDf5Sqt6BlfKWh5AES4pD0to4GlYt4+ZJwkdR25wEN3BNrUvWrtfhsxhB7QFNQy2EGbO YcA5KY26zayCWlhIbGHe9Mqa483f5yAAejwISp18Dmk+d4SRElSbTilSaFGHY7KdV0y7 mJVXz/bO8B0ug6yDtK+yMZmHM3PmqV8AhjSPDpmhHOWLlpJboqqub0sgTGAHtpy0F8oH A1tw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Cn6NhV+x; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lb12-20020a170907784c00b00933a4e6a6e5si1361875ejc.220.2023.03.31.00.02.09; Fri, 31 Mar 2023 00:02:35 -0700 (PDT) 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=@kernel.org header.s=k20201202 header.b=Cn6NhV+x; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230190AbjCaGjx (ORCPT + 99 others); Fri, 31 Mar 2023 02:39:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53234 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230227AbjCaGjv (ORCPT ); Fri, 31 Mar 2023 02:39:51 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 66CE61CB95; Thu, 30 Mar 2023 23:39:44 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id E2AF86239F; Fri, 31 Mar 2023 06:39:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A66F6C4339B; Fri, 31 Mar 2023 06:39:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680244783; bh=3X6WrxtEcRBB/WMuB3pzk9APL3q7bHhWzy7j8gGTtDE=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Cn6NhV+xrbNoxG2n+kQ/ZLoeXAc87WfwyhpEqMwFAOo5idq/HvrXXc7wf+5kwB+HX k5aVcTou7QDWTchOrPIgkYpABb/udz0taFfmgbjehDDXww63gsPdgzJbJw1IZ+4a4w uzYKHaQCc4LpuiSTrQ+O5qh6IOzgainTEj9IrUz84lsig79tNb7ROs/vuWcF2nHIGx vrSNA+HAa6eO8G83hPFEYkvFUP60zMzsjgH9cOcAX9VoFx2MV7H2/hSgLXhkbxZh5y X9ukkwAKhyBrsjRsxSvAPxwXqVWvsgzNFBNxT4ETI1u6di2psCHUDep7YXgvfekSJd CkAR9zEKWV11g== Date: Thu, 30 Mar 2023 23:39:41 -0700 From: Jakub Kicinski To: Anjali Kulkarni Cc: davem@davemloft.net, edumazet@google.com, pabeni@redhat.com, zbr@ioremap.net, brauner@kernel.org, johannes@sipsolutions.net, ecree.xilinx@gmail.com, leon@kernel.org, keescook@chromium.org, socketcan@hartkopp.net, petrm@nvidia.com, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH v3 6/7] netlink: Add multicast group level permissions Message-ID: <20230330233941.70c98715@kernel.org> In-Reply-To: <20230329182543.1161480-7-anjali.k.kulkarni@oracle.com> References: <20230329182543.1161480-1-anjali.k.kulkarni@oracle.com> <20230329182543.1161480-7-anjali.k.kulkarni@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,SPF_HELO_NONE, SPF_PASS 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 Wed, 29 Mar 2023 11:25:42 -0700 Anjali Kulkarni wrote: > A new field perm_groups is added in netlink_sock to store the protocol's > multicast group access permissions. This is to allow for a more fine > grained access control than just at the protocol level. These > permissions can be supplied by the protocol via the netlink_kernel_cfg. > A new function netlink_multicast_allowed() is added, which checks if > the protocol's multicast group has non-root access before allowing bind. Is there a reason this is better than implementing .bind in the connector family and filtering there?