From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from merlin.infradead.org ([205.233.59.134]:60346 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750746AbeEKQLo (ORCPT ); Fri, 11 May 2018 12:11:44 -0400 Subject: Re: [PATCH v5 5/7] proc: instantiate only pids that we can ptrace on 'limit_pids=1' mount option To: Alexey Gladkov , Kees Cook , Andy Lutomirski , Andrew Morton , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-hardening@lists.openwall.com, linux-security-module@vger.kernel.org, linux-api@vger.kernel.org Cc: Greg Kroah-Hartman , Alexander Viro , Akinobu Mita , Oleg Nesterov , Jeff Layton , Ingo Molnar , Alexey Dobriyan , "Eric W. Biederman" , Linus Torvalds , aniel Micay , Jonathan Corbet , bfields@fieldses.org, Stephen Rothwell , solar@openwall.com, "Dmitry V. Levin" , Djalal Harouni References: <20180511093613.GA1330@comp-core-i7-2640m-0182e6> From: Randy Dunlap Message-ID: <7c638a92-8c40-fa15-8c63-777232588137@infradead.org> Date: Fri, 11 May 2018 09:09:04 -0700 MIME-Version: 1.0 In-Reply-To: <20180511093613.GA1330@comp-core-i7-2640m-0182e6> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On 05/11/2018 02:36 AM, Alexey Gladkov wrote: > From: Djalal Harouni > > If "limit_pids=1" mount option is set then do not instantiate pids that > we can not ptrace. "limit_pids=1" means that procfs should only contain > pids that the caller can ptrace. Where can I find documentation on these mount options (pidonly, limit_pids)? Thanks. > Cc: Kees Cook > Cc: Andy Lutomirski > Signed-off-by: Djalal Harouni > --- > fs/proc/base.c | 9 +++++++++ > 1 file changed, 9 insertions(+) -- ~Randy