Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp4538278imm; Mon, 17 Sep 2018 16:06:31 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZzIdsWUzF+nKz2O+M7SDBQXL1608H1OVhdWdKzqtxikZU0WpFFFPTbdr20wQ0NtO7iu00D X-Received: by 2002:a62:4299:: with SMTP id h25-v6mr27669885pfd.73.1537225590405; Mon, 17 Sep 2018 16:06:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537225589; cv=none; d=google.com; s=arc-20160816; b=gvmh64SdjPDK2wPCwS5+ZdAztj6VPKUB9wF8vGUGhAP0lgh3wjljOOgibOI+yw4FQY Ou4mYxO8ewKjdH4PCMkZxnzrUo00xjRZ5OMgsdgZbMm2AwHsVtgid+rIMiwVSmrIjRbb N5SSVdOMMKGoh0ctrj6906J6JEI6GCqhEmDO5rrkdf6bU+a4KBuKUj08ILZWfLS7MgH1 jMn8lteXx2DjCG3WZDAqYw/cCzA9OZ+LnWjAmfKrx5+8XJ5lbEz7AcyG7Lh+0bQxFbxU Jwx6Dhy++AVBEaTMf1l6qG0nLqz5UkU3CJWKj48P3Y28nf0f0tR3uoUoOlQSB+gWF6ot o8ZQ== 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; bh=fAkObJutguK85Qmi3J6Da120d4ObIy4GR9fYP3odyx8=; b=SuK661TJkoFwfQuix6tlnlsR3ees/P2ISapm/wGbcFyWWjm6J7VfcBMzgtZzIfnEWL LhtQv3mlR2CHZ+2/+oFS8R5M2js/8xM5ClcPZZnMvk7bscNZGAz0w/8lVQLfQOej3uih 9QBLskw29lcyituvYsDa89AO0jRC5TSvlmUd3ylkWGLfmH6UpzUfec78vrv/tLJPyWyH A7DRmy+K+EMAgtXkiOrH0Vtie4/E/kMO5cplcYWB5dfXMSlhiIO0s4eclnDecDwmW4Gj cERCZdtQ3AP2gpfiYg088O9WJbHWDMvbPmbD3q21HTP9MKMm2B0ZJ1kMrULRwgbbhsfi J5RQ== ARC-Authentication-Results: i=1; mx.google.com; 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 w26-v6si15238113pgl.340.2018.09.17.16.06.14; Mon, 17 Sep 2018 16:06:29 -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; 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 S1730921AbeIREeT (ORCPT + 99 others); Tue, 18 Sep 2018 00:34:19 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:49210 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730358AbeIREeT (ORCPT ); Tue, 18 Sep 2018 00:34:19 -0400 Received: from localhost (li1825-44.members.linode.com [172.104.248.44]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 18601C03; Mon, 17 Sep 2018 23:04:49 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, "netdev@vger.kernel.org, stable@vger.kernel.org, edumazet@google.com, Nikolay Borisov" , Eric Dumazet , "David S. Miller" , Nikolay Borisov Subject: [PATCH 4.14 098/126] ipv6: export ip6 fragments sysctl to unprivileged users Date: Tue, 18 Sep 2018 00:42:26 +0200 Message-Id: <20180917211710.344524676@linuxfoundation.org> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20180917211703.481236999@linuxfoundation.org> References: <20180917211703.481236999@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.14-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 @@ -649,10 +649,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);