Date: Fri, 10 Nov 2017 13:56:18 +1100 (AEDT) From: James Morris <james.l.morris@...cle.com> To: Djalal Harouni <tixxdz@...il.com> cc: Kees Cook <keescook@...omium.org>, Alexey Gladkov <gladkov.alexey@...il.com>, Andy Lutomirski <luto@...nel.org>, Andrew Morton <akpm@...ux-foundation.org>, linux-fsdevel@...r.kernel.org, linux-kernel@...r.kernel.org, kernel-hardening@...ts.openwall.com, linux-security-module@...r.kernel.org, linux-api@...r.kernel.org, Greg Kroah-Hartman <gregkh@...uxfoundation.org>, Alexander Viro <viro@...iv.linux.org.uk>, Akinobu Mita <akinobu.mita@...il.com>, me@...in.cc, Oleg Nesterov <oleg@...hat.com>, Jeff Layton <jlayton@...chiereds.net>, Ingo Molnar <mingo@...nel.org>, Alexey Dobriyan <adobriyan@...il.com>, ebiederm@...ssion.com, Linus Torvalds <torvalds@...ux-foundation.org>, Daniel Micay <danielmicay@...il.com>, Jonathan Corbet <corbet@....net>, bfields@...ldses.org, Stephen Rothwell <sfr@...b.auug.org.au>, solar@...nwall.com Subject: Re: [PATCH RFC v3 6/7] proc: support new 'pids=all|ptraceable' mount option 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 . > > * 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. > >  https://lkml.org/lkml/2017/4/26/646 > > Cc: Kees Cook <keescook@...omium.org> > Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org> > Suggested-by: Andy Lutomirski <luto@...nel.org> > Signed-off-by: Alexey Gladkov <gladkov.alexey@...il.com> > Signed-off-by: Djalal Harouni <tixxdz@...il.com> Reviewed-by: James Morris <james.l.morris@...cle.com> -- James Morris <james.l.morris@...cle.com>
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.