Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp17192ybp; Thu, 3 Oct 2019 14:06:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqwIEvI7FAJ52TllhocIfF7qS42xrmZ1BsaOCWv4DDeppBzZ3p/6/HjTYCYxcx/73+LaStT0 X-Received: by 2002:aa7:d7c9:: with SMTP id e9mr11736171eds.237.1570136787136; Thu, 03 Oct 2019 14:06:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570136787; cv=none; d=google.com; s=arc-20160816; b=f9qvv02cQTJLLMGDw8liUYKhHaeYCvHbrdU9CQsYB10+0sBDGcSOk0S/COZeXF55gC 6RADLj9M95NtiAzX+tlaFGGvC7wYJGo3u7PJwKq1gtouJ3uJ4T88SdIFMu5gEBdVGHcv +3O4jVHaG+/0pjlv/64v32DDOtoQrVV6MLL5kwkfyG/8q9ZFYvPtqHmxKBzWTsj8/O98 DttfVSMuThJ1AzErsK8SduZwhHf10qiGkhUTQi7U0R5/FBpSjTB6nz8Fyvqmzbc4ktK/ DikXQQwIp8BSQcZpstswLblPxjpBUTCqIbo0J3Ii9AIGQEnNUgtE3GtG4QcPwAJo6rIS sPWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=EiltBEq6njqGNMiV0WVZrSDJVepz/r4bkWK6+Mlhtls=; b=0OIkaO2n/LRuqTUue13YNlFiwXA4VM5eKfAFng8b9K77fREomGRcHmFwJ9CmJSq5Pt cxPl2LrNFiO+B7dr0pHaTXJz2lfH+qJhUtxjdhwphiz1lS5koT+Q102vcJqfBmGqPsap Yildgkf44YzpOvkxGQdSaozwsknqfntBFsMBT4Nb/0C+L2/Js5Z4ua0fHt2K2zIgCdax t6J4x838rMqprJtIUQ4SwFj4WddHduskE9BM0yDs0zsOaYs9xoLQZVVjoqYNTTXr93Zu JLxSXDHAoQvVfW0tl4SsFgz90Lc3QbzPf/d/YfOX034o7YU3a839GY9u7y2gIR2YFLsS qZXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=h15edSAO; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l2si1904048ejh.389.2019.10.03.14.06.02; Thu, 03 Oct 2019 14:06:27 -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=@chromium.org header.s=google header.b=h15edSAO; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729216AbfJCVF2 (ORCPT + 99 others); Thu, 3 Oct 2019 17:05:28 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:42532 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727326AbfJCVF2 (ORCPT ); Thu, 3 Oct 2019 17:05:28 -0400 Received: by mail-pf1-f194.google.com with SMTP id q12so2499627pff.9 for ; Thu, 03 Oct 2019 14:05:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=EiltBEq6njqGNMiV0WVZrSDJVepz/r4bkWK6+Mlhtls=; b=h15edSAOeAVO6+isDrz0W6jcs1RlAD347T43CXwfP6aj516mFy9O19/PPmYCkrcFAy 8ZZDObjG8qPgpYcPLivDmXHq0y38Rv2EarhS2mGFXA16kD4oew1n/UDzu96ifq0sZWd0 QwgfPrCQlt2u9uAiDHKRaued1dnb7vheuPGGc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=EiltBEq6njqGNMiV0WVZrSDJVepz/r4bkWK6+Mlhtls=; b=sGefiKYbPL6xr7tRO6CWXD4gkOn3mEojoubIjkLdzkdnj0Dxwk1alVTAhgpMlsMQSg /BU5qWtqs46YnXiXYpPQ+jdndpdiSAo91JfLY/gAs9OKgnaqTI26rjeLBpvYwTViWcwS FEZEITkCQ1AjsHcLOMsG05yJy3qcgHLY0toOvUHILS/jIsxRbbHAWDiKj6J4SVc8Nd+3 0UgeEoDbQe8glQRvzT7MZaWl7Qa+ISbQo1/JIeGnKZzfOckxCE3yyDRf+D+Dm6kUANtM Rfst+2jMRgh4MNJ68Xn3VGGqpId1JqOpwLk41OTzqC6CD38xZXnBqa99WudWtzvlt4Qd MVRA== X-Gm-Message-State: APjAAAXhZPLKx68RWuzGL2cF7n8ZhlKtvA1lmcry76RiRI5eB5iE3Boy zzQP5qLoqU/WzgR/w2c6bHF7mA== X-Received: by 2002:a62:3585:: with SMTP id c127mr13074356pfa.18.1570136726099; Thu, 03 Oct 2019 14:05:26 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id y17sm5554361pfo.171.2019.10.03.14.05.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Oct 2019 14:05:25 -0700 (PDT) Date: Thu, 3 Oct 2019 14:05:24 -0700 From: Kees Cook To: "Eric W. Biederman" Cc: Florian Weimer , linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-api@vger.kernel.org, Jann Horn , Arnd Bergmann , Helge Deller Subject: Re: [REPOST][RFC][PATCH] sysctl: Remove the sysctl system call Message-ID: <201910031404.C30A0F16@keescook> References: <8736gcjosv.fsf@x220.int.ebiederm.org> <201910011140.EA0181F13@keescook> <87y2y271ws.fsf@mid.deneb.enyo.de> <87tv8pftjj.fsf_-_@x220.int.ebiederm.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87tv8pftjj.fsf_-_@x220.int.ebiederm.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 03, 2019 at 03:44:32PM -0500, Eric W. Biederman wrote: > > This system call has been deprecated almost since it was introduced, and none > of the common distributions enable it. The only indication that I can find that > anyone might care is that a few of the defconfigs in the kernel enable it. However > that is a small fractions of the defconfigs so I suspect it just a lack of care > rather than a reflection of software using the the sysctl system call. > > As there appear to be no users of the sysctl system call, remove the > code so that the proc filesystem can be simplified. nitpick: line lengths near 80 characters > Signed-off-by: "Eric W. Biederman" But, yes, I would love to see this gone. :) Reviewed-by: Kees Cook -- Kees Cook