Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3284488ybb; Tue, 31 Mar 2020 02:05:05 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvO3pfEhkNeOz1ahWJoUNHOccaqSQEuqN5fUqeP9L/SAZQZcloqtglXV2tBGAR0A4r4fxP/ X-Received: by 2002:a9d:2c48:: with SMTP id f66mr2331858otb.32.1585645505087; Tue, 31 Mar 2020 02:05:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585645505; cv=none; d=google.com; s=arc-20160816; b=yJrNb4sOp3KuDnaNvgce3oobAK9re8DjvfwqL+C6KtqT1ex+Tp8QYA73r88J6N+R7B Oqn5V8CH7MS1uIw3meMHpmZXdg8Jw/pQiVGZkN7ezqqsDNU1KD9+spvSRXYjS5vedyC/ 63t21+bOqFNXk7VlaskXflf/E59TatJVIL0FsR9VxXjQRLKu3c0bWT7r3g5eyQV7UFvL lZjlPh51yLFZIczUi526CCxw+t+4FFBw1YnAJf2OpkSsVJWiczt6NVBUI7yam2nJZXMJ k5kDT3lyFRWfVwfM9cgyDuuApLtasooOYe/1LVpuN40SySpQ8tnhdLM1cYvXdsfLdGGP LygQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=cLws/+HJiRgZjjVpX37oO6KpuisCFqIA8QquqU8FRTQ=; b=ibrB/yzU9Brwh+VK9rQ53lJRTQmL56lGIL5NoArcg93toLnC2swK1JfsPpEH13nk4Y SBckKnu16pFFSZmS9pfY/7Iy+X0DQ1B86lw0sg2weOCnoKjGQW65Sxo6r22QOut4Ljj0 Nv/Adfr/qD6CAEFJTkoHg1UTli66ZwkAgQjcmlbScp85Is3Cl1pNLJh//RhGHUz84sVg mCCetck4e3wQzS3sKbrvPgaCgYmWFl/HHavUvt/q0Zbj8HrJpHjy3YRY0hMxyhOFMMgW 4v5dBNNW1zo4adjLl2vz/d7bAHVaKer7DKk8zNwzZmw+Gw0hJMfqGMhbRncWSFE4Grmq qxWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=fIrc1RNQ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y7si8626674ote.303.2020.03.31.02.04.53; Tue, 31 Mar 2020 02:05:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=fIrc1RNQ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730912AbgCaJEH (ORCPT + 99 others); Tue, 31 Mar 2020 05:04:07 -0400 Received: from mail.kernel.org ([198.145.29.99]:43888 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730697AbgCaJEE (ORCPT ); Tue, 31 Mar 2020 05:04:04 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2B4A120848; Tue, 31 Mar 2020 09:04:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1585645443; bh=lPv5/SVxRUsJE9C6iPhlGEWnmckp85fixzSHFBBxPAU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fIrc1RNQWaz6rSTlT1e1wIQPwH5IQqtp15OSz53mZofw2MQnG3enHj1aVZ+O/oDDE kM/HsoThHJlpALXs/eOFK62ENcMrzBVLLPliRDO5p9CmrVwXElVJu5LifwZb64ExP6 9LU7/JytBeE11mECkbcz2BcNP0i7/octK1SvAFxA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Taehee Yoo , "David S. Miller" Subject: [PATCH 5.5 055/170] hsr: set .netnsok flag Date: Tue, 31 Mar 2020 10:57:49 +0200 Message-Id: <20200331085430.483056576@linuxfoundation.org> X-Mailer: git-send-email 2.26.0 In-Reply-To: <20200331085423.990189598@linuxfoundation.org> References: <20200331085423.990189598@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Taehee Yoo [ Upstream commit 09e91dbea0aa32be02d8877bd50490813de56b9a ] The hsr module has been supporting the list and status command. (HSR_C_GET_NODE_LIST and HSR_C_GET_NODE_STATUS) These commands send node information to the user-space via generic netlink. But, in the non-init_net namespace, these commands are not allowed because .netnsok flag is false. So, there is no way to get node information in the non-init_net namespace. Fixes: f421436a591d ("net/hsr: Add support for the High-availability Seamless Redundancy protocol (HSRv0)") Signed-off-by: Taehee Yoo Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- net/hsr/hsr_netlink.c | 1 + 1 file changed, 1 insertion(+) --- a/net/hsr/hsr_netlink.c +++ b/net/hsr/hsr_netlink.c @@ -470,6 +470,7 @@ static struct genl_family hsr_genl_famil .version = 1, .maxattr = HSR_A_MAX, .policy = hsr_genl_policy, + .netnsok = true, .module = THIS_MODULE, .ops = hsr_ops, .n_ops = ARRAY_SIZE(hsr_ops),