Received: by 10.223.164.202 with SMTP id h10csp992679wrb; Thu, 9 Nov 2017 18:57:54 -0800 (PST) X-Google-Smtp-Source: ABhQp+TlHxeDmzWDKT1oDTx66SpniY2w8J+hXCVmjoFksFZgTre3+/UKz196dGZprm6OJCigJj4R X-Received: by 10.84.178.131 with SMTP id z3mr2505332plb.165.1510282674610; Thu, 09 Nov 2017 18:57:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510282674; cv=none; d=google.com; s=arc-20160816; b=hOXZzMnr24Umz/QGs243O3/c6bb7X5UGF1ClISOrWV77Fgf2GyoODQjn3XbH6nGVSo vtGrhnWf6jxJwm5mDjMM1BXDu3B/eBL062/7eGJERcyZfaVSliKB4GRoWkf5St6+hH0v jk1fEx0juhR58oUKQRO3bGmTufl7KOeweAnF3vmc/Utrbe9Ut9LaGGb8crYY2H5yKXkl 40eSDG7z8tAWwSfX9ExCtjanokF9UpsO2fpe3V1LqiDcVZWZbRZzMUYB5eDG1LT6N34m mX0mqAuc47M2IIxjV1bSxU4US6ywMOsNkkim8hI+LPJ1cMrN9iNk+/jfOTG+0bjo74KV ckWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date :arc-authentication-results; bh=7RfPTYW64Q7Ku2H3UF7Uy/DSiLg8byBL33kPTQIqsA4=; b=mMKs8gzDsDR03jEkPls/QZCGR4v7jTl++fbppxRkjXHdZP/l+Lpgg+8zMPoWzgxSMR +X0nqpB6YSBSQSGhMhHNRs/CGy/mdeVWp/yLsPwg1bSrnfUmBTmWw195+NfetOnjZb0c fR9ArtU3egJ8QHchqe1ZDG5E50lCTihB2k8/7eFgNp337DV3mwXUoROdmigoc653LAvT BKJr9l/nqarvtVmB9Anaru1yLf29dvmmZSbsNvNpKEPNjX7NGIBaYMHiRN/i2eV1LtoA x6PyfQejQvcNWWbCZ0qfcdlve4bRjUH0fhHBn214n5u/ubYGAS7wHIKT6+FyixOQY1AX MOeQ== 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=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m6si8146338pff.205.2017.11.09.18.57.43; Thu, 09 Nov 2017 18:57:54 -0800 (PST) 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=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755805AbdKJC5E (ORCPT + 83 others); Thu, 9 Nov 2017 21:57:04 -0500 Received: from userp1040.oracle.com ([156.151.31.81]:31750 "EHLO userp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755728AbdKJC5C (ORCPT ); Thu, 9 Nov 2017 21:57:02 -0500 Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id vAA2uSUR025059 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 10 Nov 2017 02:56:28 GMT Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id vAA2uRs4013929 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 10 Nov 2017 02:56:27 GMT Received: from abhmp0015.oracle.com (abhmp0015.oracle.com [141.146.116.21]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id vAA2uRtf030951; Fri, 10 Nov 2017 02:56:27 GMT Received: from t440 (/58.166.67.31) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 09 Nov 2017 18:56:26 -0800 Date: Fri, 10 Nov 2017 13:56:18 +1100 (AEDT) From: James Morris X-X-Sender: james.l.morris@localhost To: Djalal Harouni cc: Kees Cook , Alexey Gladkov , 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 , me@tobin.cc, Oleg Nesterov , Jeff Layton , Ingo Molnar , Alexey Dobriyan , ebiederm@xmission.com, Linus Torvalds , Daniel Micay , Jonathan Corbet , bfields@fieldses.org, Stephen Rothwell , solar@openwall.com Subject: Re: [PATCH RFC v3 6/7] proc: support new 'pids=all|ptraceable' mount option In-Reply-To: <1510244046-3256-7-git-send-email-tixxdz@gmail.com> Message-ID: References: <1510244046-3256-1-git-send-email-tixxdz@gmail.com> <1510244046-3256-7-git-send-email-tixxdz@gmail.com> User-Agent: Alpine 2.20 (LFD 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Source-IP: userv0021.oracle.com [156.151.31.71] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 9 Nov 2017, Djalal Harouni wrote: > This patch introduces the new 'pids' mount option, as it was discussed > and suggested by Andy Lutomirski [1]. > > * If 'pids=' is passed without 'newinstance' then it has no effect. > > * If 'newinstance,pids=all' then all processes will be shown in proc. > > * If 'newinstance,pids=ptraceable' then only ptraceable processes will be > shown. > > * 'pids=' takes precendence over 'hidepid=' since 'hidepid=' can be > ignored if "gid=" was set and caller has the "gid=" set in its groups. > We want to guarantee that LSM have a security path there that can not > be disabled with "gid=". > > This allows to support lightweight sandboxes in Embedded Linux. > > Later Yama LSM can be updated to check that processes are able only > able to see their children inside /proc/, allowing to support more tight > cases. > > [1] https://lkml.org/lkml/2017/4/26/646 > > Cc: Kees Cook > Cc: Greg Kroah-Hartman > Suggested-by: Andy Lutomirski > Signed-off-by: Alexey Gladkov > Signed-off-by: Djalal Harouni Reviewed-by: James Morris -- James Morris From 1583645026175667560@xxx Fri Nov 10 02:39:47 +0000 2017 X-GM-THRID: 1583605822042825994 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread