Return-path: Received: from mga01.intel.com ([192.55.52.88]) by Galois.linutronix.de with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1fE0aH-0003XT-A7 for speck@linutronix.de; Thu, 03 May 2018 00:50:49 +0200 Date: Wed, 2 May 2018 15:50:46 -0700 From: Andi Kleen Subject: [MODERATED] Re: [PATCH SSBv9 3/3] seccomp Message-ID: <20180502225046.GU75137@tassilo.jf.intel.com> References: <20180501234135.GE32640@outflux.net> MIME-Version: 1.0 In-Reply-To: <20180501234135.GE32640@outflux.net> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit To: speck@linutronix.de List-ID: On Tue, May 01, 2018 at 04:41:35PM -0700, speck for Kees Cook wrote: > From: Kees Cook > Subject: [PATCH SSBv9 seccomp 3/3] seccomp: Enable speculation flaw > mitigations > > When speculation flaw mitigations are opt-in (via prctl), using seccomp > will automatically opt-in to these protections, since using seccomp > indicates at least some level of sandboxing is desired. Hi Kees, We had this in our original patches. But after some discussion with various people we decided it's actually not a good idea and a separate prctl is better. - For web browsers which use seccomp today the right fix is to use site isolation, so they don't need this and it would be overkill and slow them down unnecessarily. - Applications have to be maintained for security problems (otherwise they will have lots of other problems, like variant 1), so adding the extra prctl after a proper security shouldn't be that big a burden. - The extra prctl is needed anyways because it's quite a bit of work to enable seccomp for an application, and also forbids execing any suid tasks. -Andi