Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp4053811imm; Mon, 14 May 2018 01:44:07 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpTwWvyY/D+BA6veCF7wHIEup4YFGt6riJ4rumO+61/LEFqJ91gXcGZUjj8Lj0DmE9K6qbL X-Received: by 2002:a17:902:b94a:: with SMTP id h10-v6mr9094362pls.321.1526287446952; Mon, 14 May 2018 01:44:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526287446; cv=none; d=google.com; s=arc-20160816; b=FyasC6bwJ6JATODIBR3kn7R7hLLMuuLAcgd22Uhmu4p74jK6PXYCiTudB4htYsnNc5 Jdq3WgJDMRUHASndfG2sK4V5FKZIZcCywjWYMGYFYNkVRjXHLuuqlbYpg4r9jmOG2Bud 0VQBtAtpSb6S7UrrMVBrqqo0GqUcLKtNpb/u19vhcUMOMxkZjtjPD/Wi9PiFKzm3+5eU VC0aomt8d5wXvn2Fjb/l0W1iWghVQt015alAysiAUVsTWFzLH8RbopKUk7Czx8vpKXRE h26iA4gTozgzb7TyMhGddMMhcA8s6qvPCIJ3OKd2pdeC1OGX/GrXqaea2sD7QFZHnEVp pt/A== 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 :arc-authentication-results; bh=hQ+i1SL4SGgthRcsZrr3zz/yuX3DjWcplSjNmv6n2vg=; b=xeiLsVpbn92UUQhFH0eFUkMbIIydsxPu5UichKp+v3TBpK3scvrhPweSqack+CMkmP FS1H0KiOZUoFPC5I2/GUsZ/KzgCoMYQWTvQ5MUK/yfPh7FaQuvZ5Uf2rZq/gJZmowgdf awVfostn48PgpZGEpB3dtEz+B1d9DQaBMDe4l6CTqqEfH+ykIjmiY5wj1mhvWbxyUXxj IWoGeHmLvTrj7rIeXf13o749VcVup46UvIDulCvvJtOrxEobFbPBNDaQkOzH7R2gJX/7 PSDvGbz4gwLFwwpghyBWofxPHjB5EP3oecfIZ6L2Cz8YBxAV8OuaxkH2HaUgIiWJ3ndi Jh5Q== 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; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d37-v6si9073877plb.125.2018.05.14.01.43.51; Mon, 14 May 2018 01:44:06 -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; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752079AbeENImf (ORCPT + 99 others); Mon, 14 May 2018 04:42:35 -0400 Received: from monster.unsafe.ru ([5.9.28.80]:45118 "EHLO mail.unsafe.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750810AbeENImd (ORCPT ); Mon, 14 May 2018 04:42:33 -0400 Received: from comp-core-i7-2640m-0182e6 (nat-pool-brq-t.redhat.com [213.175.37.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.unsafe.ru (Postfix) with ESMTPSA id BDAD4C6180C; Mon, 14 May 2018 08:42:29 +0000 (UTC) Date: Mon, 14 May 2018 10:34:39 +0200 From: Alexey Gladkov To: Randy Dunlap Cc: 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, 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 Subject: Re: [PATCH v5 5/7] proc: instantiate only pids that we can ptrace on 'limit_pids=1' mount option Message-ID: <20180514083439.GB28179@comp-core-i7-2640m-0182e6> References: <20180511093613.GA1330@comp-core-i7-2640m-0182e6> <7c638a92-8c40-fa15-8c63-777232588137@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7c638a92-8c40-fa15-8c63-777232588137@infradead.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 11, 2018 at 09:09:04AM -0700, Randy Dunlap wrote: > 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)? The documentation is not ready yet. It will be added in the next version of the patchset. -- Rgrds, legion