Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2684512rwl; Sat, 1 Apr 2023 12:23:01 -0700 (PDT) X-Google-Smtp-Source: AKy350bDWeYsyDoaQX1YvsZkKaQiUOijbc/7A1ZX+0J0M5uX/UprLtPDnGcz+NitMUuIkP3BSYAH X-Received: by 2002:aa7:d658:0:b0:4bc:f925:5dbe with SMTP id v24-20020aa7d658000000b004bcf9255dbemr28622302edr.42.1680376980864; Sat, 01 Apr 2023 12:23:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680376980; cv=none; d=google.com; s=arc-20160816; b=O3/Sm666uYC8E5s04CwE/aVKW40wwVrJTOPkj0d3WLL7hanlmOR4lbiVD6TxfflJyD y8GpKiNcgiQYzMdVEIGQhZyv1+H6ygkRjOelZSzwUtJAKwIN7J9oViU68uEMDYi57cyM rNURyk+/pw/quvpWon7yi5xMTCyIxplLc9CdfYmUY5xZ/RJOXPEdDq5drduB4c2SMNwd PQ8C2v30hDaSHcsQbS3Z+5F8xXPteyFGua/UeaD3zbubZZx88xMEeLQtTyUTzw9yEXpW eaytOo60b6nNOw8WvxaX2He17U4+yg7671TKMX4lGmLyFBvndhdHrmnzsxk67C/dSIgo Hutg== 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=G1XH4FaH+5wGnK2ORsT0OY/YBuzhwG6om293bJUY0SY=; b=UEU0TLiPykrNnfxxS9y6u6RSUz1+UMvV1g86O3GT8EuhBfReI0jaA6OUNL0HP2NMfK 42TZG1JLAmFcdjWgJTnDaEgKVlXGpBrOJmCYdNmll7STb9Ud9cs4JoxrmLywU6FvuKfY fE71qny22nGl8iPYV3p/LcXdX9TVhfjGAeYNuycY8EwWX9+PvSPOUqtgFdCtQNoQrWSC E3ABDEXJXiB4JCRJpcGsBdIZ6IhpIrBeK+OFnBh+GVFGn0sH/xh+rDtMKL2JYqSZLXZd w3+slkhhZ9gJHmRAKHUe/HwbCBHKp9E5tovVYLZXcCNh3cGLNCQ4NQqHsnOFG0r6xbUU wCMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=smderBX8; 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 p8-20020a170906b20800b0093d1bbf9fdcsi4578015ejz.926.2023.04.01.12.22.31; Sat, 01 Apr 2023 12:23:00 -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=smderBX8; 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 S229867AbjDATMR (ORCPT + 99 others); Sat, 1 Apr 2023 15:12:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43228 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229583AbjDATMP (ORCPT ); Sat, 1 Apr 2023 15:12:15 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DDA3CB767; Sat, 1 Apr 2023 12:12:14 -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 65E3960F92; Sat, 1 Apr 2023 19:12:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1C12EC433EF; Sat, 1 Apr 2023 19:12:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680376333; bh=QtwyPrGEdHyQPr04TPdFEBNu5kDohW2eNusKx77tLHM=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=smderBX8iFt85qDNjnQBDPzcBY7d8v47qr9nmrovmfpcAD6H40UujiTjN5OhRpmYN A6yEMfOjqO7UYgAxc4iO3cPNOTaJAlYUZL6lTOjvPLYeue3u8RFe2Zvk38VBEhSaVV sBaBJNIXvKSb568j3U5A/20L7/cxonIJTcm1JhL42XCM+biMJEM0PbIIyFFPw0RNIl kP+e2CAUQz7xbz0WLzAGYLSi5NxLEg1ZSKLtu7UqXT32C6aoDAQX3Sc9pyzLioTCAI PnNKjvJFv606wMKLDLaRZ/eab4l7QDgp61xYiRCR4UkRTknBJDr5zEve+/c1313IVE OPbUhF9A0zEqg== Date: Sat, 1 Apr 2023 12:12:12 -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 v4 1/6] netlink: Reverse the patch which removed filtering Message-ID: <20230401121212.454abf11@kernel.org> In-Reply-To: <88FD5EFE-6946-42C4-881B-329C3FE01D26@oracle.com> References: <20230331235528.1106675-1-anjali.k.kulkarni@oracle.com> <20230331235528.1106675-2-anjali.k.kulkarni@oracle.com> <20230331210920.399e3483@kernel.org> <88FD5EFE-6946-42C4-881B-329C3FE01D26@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 Sat, 1 Apr 2023 18:24:11 +0000 Anjali Kulkarni wrote: > > nit: slight divergence between __u32 and u32 types, something to clean > > up if you post v5 > > Thanks so much! Will do. Any comments on the connector patches? patch 3 looks fine as far as I can read thru the ugly in place casts patch 5 looks a bit connector specific, no idea :S patch 6 does seem to lift the NET_ADMIN for group 0 and from &init_user_ns, CAP_NET_ADMIN to net->user_ns, CAP_NET_ADMIN whether that's right or not I have no idea :( Also, BTW, on the coding level: +static int cn_bind(struct net *net, int group) +{ + unsigned long groups = 0; + groups = (unsigned long) group; + + if (test_bit(CN_IDX_PROC - 1, &groups)) Why not just +static int cn_bind(struct net *net, int group) +{ + if (group == CN_IDX_PROC) ? Who are you hoping will merge this?