Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp5452402imm; Tue, 16 Oct 2018 10:25:59 -0700 (PDT) X-Google-Smtp-Source: ACcGV63rmSzzJO8awLShhJXAoCxlI7ZY01YU2L0AweMyUCxlv9dfopOF2rrFZjkk5ZlzU4z3uFNN X-Received: by 2002:a17:902:2de4:: with SMTP id p91-v6mr22086136plb.148.1539710759527; Tue, 16 Oct 2018 10:25:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539710759; cv=none; d=google.com; s=arc-20160816; b=lOQQ9So0oWi6B1qr72lYODsJFKczrFptt3VvKP07S6mYihh9/ltKNBxl18v50N8w4R mxle5vMHVuujS8hc+IxDhshOjpLGGuS7jLkh7S5QBRepFHyyCAPlhRbNN7tDgEzgD1S/ 1uASQotGXw/gJdyDc+9fxMU8Vhs5Nez8n3+fG7lukisRjiZ8IkbNz9ZWdyn+rJHNgM37 5lNVIUwmQtRodp9BO0ZqC98i3HyJNMuNGHE7fBSQSZn2b1gtxoFIivy/vjgtZeS8cxVt qUYQKMmfXa4GjHHTnSPyhlKmQRdUQRhBfJvWKdmreYmyaf2mIjeXmVchwda80vGJv+Y9 EQwg== 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=/CMxAStHx6r/o4Yu7ZeaQYdt5tqFz9KI+wy63c7h+dw=; b=O93xcETxnUQshomBWuswz0kIPsHqsJ6VSz3eTb7FZVe1jroWtzKChjI41pZuYvc4rE EAn3kadPtpoJ82tksHXL2TyCPvk3dBiabIsYUuRfeXFAGuHCBJ5eZsjgV20k3E3x0yy+ IVc4AzOHN2AQOAssDr9MhE9BLmr9aim4RNGBXiprLFLotpxkDMxrZceSJYFBwOWDQgLo k2YHlNInDZCQCC9bIeVZ4TK5up9CK6Z8Ipl//vTil62hgZmDfsCoHFprnLzRksH8OYne VtB7wf7XnvCBWj17jDJWXPahyPbOCSkW22hiCX209yiX3b3MW+WTCHokg+hMtk2smmiG w5RQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=SzTLUhIF; 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 bh4-v6si14172804plb.386.2018.10.16.10.25.43; Tue, 16 Oct 2018 10:25:59 -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=SzTLUhIF; 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 S1731969AbeJQBQt (ORCPT + 99 others); Tue, 16 Oct 2018 21:16:49 -0400 Received: from mail.kernel.org ([198.145.29.99]:35558 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730396AbeJQBQs (ORCPT ); Tue, 16 Oct 2018 21:16:48 -0400 Received: from localhost (ip-213-127-77-176.ip.prioritytelecom.net [213.127.77.176]) (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 255B0204EC; Tue, 16 Oct 2018 17:25:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1539710722; bh=UkcKJUFDKgeh8ygd4qM4YRLO02Rjz67L+pMZnmu96tc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SzTLUhIFPNkiyqCylu58GyngiRquSCwkY3ruijmL/i9VlkgI4J7mjEs8MzX+gZEjX DjlaANEXKZmsoRgEKXEX/0qKsUxTEOU5+yiAnK5HVoOrt7FfRL18np8QCRUDqOQf3k H3GDG2u6RuTpPUhceK6dOtuySOhyMhCQ5MiPwbxo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org, netdev@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Eric Dumazet , Nikolay Borisov , "David S. Miller" Subject: [PATCH 4.9 48/71] ipv6: export ip6 fragments sysctl to unprivileged users Date: Tue, 16 Oct 2018 19:09:45 +0200 Message-Id: <20181016170541.783944414@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181016170539.315587743@linuxfoundation.org> References: <20181016170539.315587743@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review 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 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Eric Dumazet IPv4 was changed in commit 52a773d645e9 ("net: Export ip fragment sysctl to unprivileged users") The only sysctl that is not per-netns is not used : ip6frag_secret_interval Signed-off-by: Eric Dumazet Cc: Nikolay Borisov Signed-off-by: David S. Miller (cherry picked from commit 18dcbe12fe9fca0ab825f7eff993060525ac2503) Signed-off-by: Greg Kroah-Hartman --- net/ipv6/reassembly.c | 4 ---- 1 file changed, 4 deletions(-) --- a/net/ipv6/reassembly.c +++ b/net/ipv6/reassembly.c @@ -643,10 +643,6 @@ static int __net_init ip6_frags_ns_sysct table[1].data = &net->ipv6.frags.low_thresh; table[1].extra2 = &net->ipv6.frags.high_thresh; table[2].data = &net->ipv6.frags.timeout; - - /* Don't export sysctls to unprivileged users */ - if (net->user_ns != &init_user_ns) - table[0].procname = NULL; } hdr = register_net_sysctl(net, "net/ipv6", table);