From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthew Garrett Subject: Re: Trusted kernel patchset for Secure Boot lockdown Date: Thu, 13 Mar 2014 21:32:42 +0000 Message-ID: <1394746362.27846.5.camel@x230> References: <1393445473-15068-1-git-send-email-matthew.garrett@nebula.com> <1394686919.25122.2.camel@x230> <1394726363.25122.16.camel@x230> <20140313212450.67f1de8e@alan.etchedpixels.co.uk> <532222E1.2020405@zytor.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Return-path: In-Reply-To: <532222E1.2020405-YMNOUZJC4hwAvxtiuMwx3w@public.gmane.org> Content-Language: en-US Content-ID: Sender: linux-efi-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: "hpa-YMNOUZJC4hwAvxtiuMwx3w@public.gmane.org" Cc: "linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , "jmorris-gx6/JNMH7DfYtjvyW6yDsg@public.gmane.org" , "keescook-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org" , "linux-security-module-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , "akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org" , "jwboyer-rxtnV0ftBwyoClj4AeEUq9i2O/JbrIOy@public.gmane.org" , "gnomes-qBU/x9rampVanCEyBjwyrvXRex20P6io@public.gmane.org" , "linux-efi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , "gregkh-hQyY1W1yCW8ekmWlsbkhG0B+6BGkLq7r@public.gmane.org" List-Id: linux-efi@vger.kernel.org T24gVGh1LCAyMDE0LTAzLTEzIGF0IDE0OjI4IC0wNzAwLCBILiBQZXRlciBBbnZpbiB3cm90ZToN Cj4gT24gMDMvMTMvMjAxNCAwMjoyNCBQTSwgT25lIFRob3VzYW5kIEdub21lcyB3cm90ZToNCj4g PiANCj4gPiBJZiBJIGhhdmUgQ0FQX1NZU19SQVdJTyBJIGNhbiBtYWtlIGFyYml0YXJ5IHJpbmcg MCBjYWxscyBmcm9tIHVzZXJzcGFjZSwNCj4gPiB0cml2aWFsbHkgYW5kIGluIGEgZmFzaGlvbiB3 ZWxsIGtub3duIGFuZCBkb2N1bWVudGVkLg0KPiA+IA0KPiANCj4gLi4uIGFuZCBvbmNlIHdlIGVs aW1pbmF0ZSBDQVBfU1lTX1JBV0lPIGEgYnVuY2ggb2YgdGhlIHBhdGNoZXMgYmVjb21lDQo+IHJl ZHVuZGFudC4NCg0KV2UgY2FuIG9ubHkgZHJvcCBDQVBfU1lTX1JBV0lPIGlmIHdlIGNoYW5nZSBh IGJ1bmNoIG9mIHRoZSBleGlzdGluZw0KQ0FQX1NZU19SQVdJTyBjaGVja3MgdG8gc29tZXRoaW5n IGVsc2UuIEhvdyBkbyB3ZSBkbyB0aGF0IHdpdGhvdXQNCmJyZWFraW5nIGV4aXN0aW5nIHVzZXJz cGFjZT8NCg0KLS0gDQpNYXR0aGV3IEdhcnJldHQgPG1hdHRoZXcuZ2FycmV0dEBuZWJ1bGEuY29t Pg0K From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754354AbaCMVcy (ORCPT ); Thu, 13 Mar 2014 17:32:54 -0400 Received: from mail-bn1lp0145.outbound.protection.outlook.com ([207.46.163.145]:6241 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753060AbaCMVcw (ORCPT ); Thu, 13 Mar 2014 17:32:52 -0400 From: Matthew Garrett To: "hpa@zytor.com" CC: "linux-kernel@vger.kernel.org" , "jmorris@namei.org" , "keescook@chromium.org" , "linux-security-module@vger.kernel.org" , "akpm@linux-foundation.org" , "jwboyer@fedoraproject.org" , "gnomes@lxorguk.ukuu.org.uk" , "linux-efi@vger.kernel.org" , "gregkh@linuxfoundation.org" Subject: Re: Trusted kernel patchset for Secure Boot lockdown Thread-Topic: Trusted kernel patchset for Secure Boot lockdown Thread-Index: AQHPPwKqgdFEpLbAD0ahQ2OJgthmsZrfiDOAgAABTwA= Date: Thu, 13 Mar 2014 21:32:42 +0000 Message-ID: <1394746362.27846.5.camel@x230> References: <1393445473-15068-1-git-send-email-matthew.garrett@nebula.com> <1394686919.25122.2.camel@x230> <1394726363.25122.16.camel@x230> <20140313212450.67f1de8e@alan.etchedpixels.co.uk> <532222E1.2020405@zytor.com> In-Reply-To: <532222E1.2020405@zytor.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [2001:470:1f07:1371:6267:20ff:fec3:2318] x-forefront-prvs: 01494FA7F7 x-forefront-antispam-report: SFV:NSPM;SFS:(10009001)(6009001)(428001)(377424004)(51704005)(377454003)(479174003)(24454002)(189002)(199002)(47736001)(81816001)(81686001)(83322001)(4396001)(47976001)(19580395003)(49866001)(50986001)(80022001)(80976001)(86362001)(95416001)(74706001)(93516002)(94946001)(94316002)(97186001)(74366001)(81342001)(95666003)(33646001)(69226001)(19580405001)(79102001)(65816001)(87266001)(92726001)(93136001)(92566001)(53806001)(54356001)(74662001)(2656002)(56776001)(74876001)(47446002)(76796001)(76786001)(85852003)(83072002)(56816005)(90146001)(85306002)(63696002)(51856001)(46102001)(33716001)(77096001)(31966008)(59766001)(87936001)(74502001)(97336001)(81542001)(77982001)(76482001);DIR:OUT;SFP:1101;SCL:1;SRVR:BN1PR05MB454;H:BN1PR05MB423.namprd05.prod.outlook.com;CLIP:2001:470:1f07:1371:6267:20ff:fec3:2318;FPR:76097075.710CD09.41D21FA8.50D9117C.20124;MLV:sfv;PTR:InfoNoRecords;MX:1;A:1;LANG:en; Content-Type: text/plain; charset="utf-8" Content-ID: MIME-Version: 1.0 X-OriginatorOrg: nebula.com Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by mail.home.local id s2DLX4eB012390 On Thu, 2014-03-13 at 14:28 -0700, H. Peter Anvin wrote: > On 03/13/2014 02:24 PM, One Thousand Gnomes wrote: > > > > If I have CAP_SYS_RAWIO I can make arbitary ring 0 calls from userspace, > > trivially and in a fashion well known and documented. > > > > ... and once we eliminate CAP_SYS_RAWIO a bunch of the patches become > redundant. We can only drop CAP_SYS_RAWIO if we change a bunch of the existing CAP_SYS_RAWIO checks to something else. How do we do that without breaking existing userspace? -- Matthew Garrett {.n++%ݶw{.n+{G{ayʇڙ,jfhz_(階ݢj"mG?&~iOzv^m ?I