|
Message-ID: <99FC4B6EFCEFD44486C35F4C281DC6731F2B9D38@ORSMSX107.amr.corp.intel.com> Date: Wed, 3 Aug 2016 15:42:16 +0000 From: "Schaufler, Casey" <casey.schaufler@...el.com> To: "kernel-hardening@...ts.openwall.com" <kernel-hardening@...ts.openwall.com>, Kees Cook <keescook@...omium.org> CC: Jeff Vander Stoep <jeffv@...gle.com>, Ingo Molnar <mingo@...hat.com>, Arnaldo Carvalho de Melo <acme@...nel.org>, Alexander Shishkin <alexander.shishkin@...ux.intel.com>, "linux-doc@...r.kernel.org" <linux-doc@...r.kernel.org>, LKML <linux-kernel@...r.kernel.org>, "Jonathan Corbet" <corbet@....net>, "Eric W. Biederman" <ebiederm@...ssion.com> Subject: RE: Re: [PATCH 1/2] security, perf: allow further restriction of perf_event_open > -----Original Message----- > From: Peter Zijlstra [mailto:peterz@...radead.org] > Sent: Wednesday, August 03, 2016 7:41 AM > To: Kees Cook <keescook@...omium.org> > Cc: Jeff Vander Stoep <jeffv@...gle.com>; Ingo Molnar <mingo@...hat.com>; > Arnaldo Carvalho de Melo <acme@...nel.org>; Alexander Shishkin > <alexander.shishkin@...ux.intel.com>; linux-doc@...r.kernel.org; kernel- > hardening@...ts.openwall.com; LKML <linux-kernel@...r.kernel.org>; > Jonathan Corbet <corbet@....net>; Eric W. Biederman > <ebiederm@...ssion.com> > Subject: Re: [kernel-hardening] Re: [PATCH 1/2] security, perf: allow further > restriction of perf_event_open > > On Tue, Aug 02, 2016 at 01:51:47PM -0700, Kees Cook wrote: > > Let me take this another way instead. What would be a better way to > > provide a mechanism for system owners to disable perf without an LSM? > > (Since far fewer folks run with an enforcing "big" LSM: I'm seeking as > > wide a coverage as possible.) > > Could something like a new capability bit work? Yes, it could, but we don't have a real good experience with the advanced use of capabilities. The big distros and the "OS"s have yet to adopt them seriously. It's the same sort of issue, really. The granularity gets to you. > I'm thinking that applications that have network connections already > drop all possible capabilities (I know, unlikely to be true, but should > be true for most stuff I hope). This would disable perf for remote code > execution exploits, including web-browsers and the lot. > > It would keep perf working for local stuff by default, although > obviously with pam_cap you can limit this when and where needed. > > For Android this could mean the JVM explicitly dropping the cap for its > 'children' while retaining the use itself. And this would also keep perf > working on the ADB shell stuff. > > > And, I think this would allow a JIT executable to gain the cap using > file caps, even when the user using it doesn't have it, which would keep > things usable even in restricted environments. > > > Or am I misunderstanding capabilities -- which is entirely possible.
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.