Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp282596ybi; Thu, 13 Jun 2019 16:04:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqwyw9Q457nlpZ0o5iGQ2w5oAqfdPBsPVM4IWKqE5wOSVfZ33LsVZ2DX1meYp4TeS79FG9ZK X-Received: by 2002:aa7:914e:: with SMTP id 14mr43988746pfi.136.1560467086962; Thu, 13 Jun 2019 16:04:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560467086; cv=none; d=google.com; s=arc-20160816; b=zUyqobvXoRr6I5HD62FljGFUx9cM7NCuXTIE2JxY2ynjGp923TNDG0cM5m6i0LFWHH yH2iCi2KgnKDwHc6sCb5HrftELUYDL2As4V6LP5iSxmEcsZl8LgxT7Juh5MqoOQmLdgJ 7smaFIi3fBJFx3McV0KJ/lgll+J7bpeTiIMUAR/Ebx2awxHFK+ZCb9yGZ+HsD6//ieuU 4353NdEe+OFQceZGD+LXNqVHR828Udqp1khtwMoPOzNkg25vZTdTKHHRKb2eOEDNAyR8 RWWCTw/3183X2eMXbxRRZ7/TeZR3VW7X7XISZ+lXuhb7eL4F4LD2I2jKSiMwfNqQrdq+ Ym3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :dlp-reaction:dlp-version:dlp-product:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from; bh=BVBZWzHib/DOYCIILafFAi3DbbrEBYDGtIyzdAleygw=; b=F3k1yoEw1Q3f5jDjxlSy5qwOIJNt1j1NHw/9627n9b0xmcacXUXoBwNWGPHBivvyJa ewcftrV+bgSh8LDrFFQH0ix5oSndiiLjqktqN5JiK5X1LMFVU5ezQ5QHem+6c2SLozgZ 4y8MG+GhdGthCKjYQBbjZcWhOHYdqCK+6AlokszvYz44OBDBDEU0S9Tbn3u2UzRICL7F PleHuCiwXzUm2TbBx3eOgSv6+LoOg3S93QaWxmLeDUmWGN7nUal2XHQfw1EYot2RQtkG MPKqOXKT+NCIiynXF5eLzgdQ5bDa2ibaxZMj+SwO+nAwWqV9wR+tcP60fh757oIiodF6 L0jg== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y138si675128pfb.3.2019.06.13.16.04.31; Thu, 13 Jun 2019 16:04:46 -0700 (PDT) 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726734AbfFMXD0 (ORCPT + 99 others); Thu, 13 Jun 2019 19:03:26 -0400 Received: from mga05.intel.com ([192.55.52.43]:63438 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725842AbfFMXD0 (ORCPT ); Thu, 13 Jun 2019 19:03:26 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Jun 2019 16:03:25 -0700 X-ExtLoop1: 1 Received: from orsmsx110.amr.corp.intel.com ([10.22.240.8]) by fmsmga004.fm.intel.com with ESMTP; 13 Jun 2019 16:03:24 -0700 Received: from orsmsx116.amr.corp.intel.com ([169.254.7.166]) by ORSMSX110.amr.corp.intel.com ([169.254.10.60]) with mapi id 14.03.0415.000; Thu, 13 Jun 2019 16:03:24 -0700 From: "Xing, Cedric" To: Stephen Smalley , "Christopherson, Sean J" CC: "linux-security-module@vger.kernel.org" , "selinux@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-sgx@vger.kernel.org" , "jarkko.sakkinen@linux.intel.com" , "luto@kernel.org" , "jmorris@namei.org" , "serge@hallyn.com" , "paul@paul-moore.com" , "eparis@parisplace.org" , "jethro@fortanix.com" , "Hansen, Dave" , "tglx@linutronix.de" , "torvalds@linux-foundation.org" , "akpm@linux-foundation.org" , "nhorman@redhat.com" , "pmccallum@redhat.com" , "Ayoun, Serge" , "Katz-zamir, Shay" , "Huang, Haitao" , "andriy.shevchenko@linux.intel.com" , "Svahn, Kai" , "bp@alien8.de" , "josh@joshtriplett.org" , "Huang, Kai" , "rientjes@google.com" , "Roberts, William C" , "Tricca, Philip B" Subject: RE: [RFC PATCH v1 2/3] LSM/x86/sgx: Implement SGX specific hooks in SELinux Thread-Topic: [RFC PATCH v1 2/3] LSM/x86/sgx: Implement SGX specific hooks in SELinux Thread-Index: AQHVH1ilvNGS2ZisK0eWTCWidam/YaaW7RmAgACMWICAAtC5gP//6xkw Date: Thu, 13 Jun 2019 23:03:24 +0000 Message-ID: <960B34DE67B9E140824F1DCDEC400C0F65503EDD@ORSMSX116.amr.corp.intel.com> References: <20190611220243.GB3416@linux.intel.com> <8d99d8fb-a921-286a-8cf0-cd522e09b37c@tycho.nsa.gov> In-Reply-To: <8d99d8fb-a921-286a-8cf0-cd522e09b37c@tycho.nsa.gov> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiYzIwNzkwOGItNTg5MS00YjVhLThkNGItNzhhYTA5OTBkNzRhIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiQVVNblBBT0NWcVVSWWNPb3ViRDRrTE5EbDVtSk1tRGRNRWRzTkZRYmRmajVoc01KZUJaak5BQm5tT0dLNjhwQyJ9 x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-originating-ip: [10.22.254.140] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org PiBGcm9tOiBTdGVwaGVuIFNtYWxsZXkgW21haWx0bzpzZHNAdHljaG8ubnNhLmdvdl0NCj4gU2Vu dDogVGh1cnNkYXksIEp1bmUgMTMsIDIwMTkgMTA6MDIgQU0NCj4gDQo+IE9uIDYvMTEvMTkgNjow MiBQTSwgU2VhbiBDaHJpc3RvcGhlcnNvbiB3cm90ZToNCj4gPiBPbiBUdWUsIEp1biAxMSwgMjAx OSBhdCAwOTo0MDoyNUFNIC0wNDAwLCBTdGVwaGVuIFNtYWxsZXkgd3JvdGU6DQo+ID4+IEkgaGF2 ZW4ndCBsb29rZWQgYXQgdGhpcyBjb2RlIGNsb3NlbHksIGJ1dCBpdCBmZWVscyBsaWtlIGEgbG90 IG9mDQo+ID4+IFNHWC1zcGVjaWZpYyBsb2dpYyBlbWJlZGRlZCBpbnRvIFNFTGludXggdGhhdCB3 aWxsIGhhdmUgdG8gYmUNCj4gPj4gcmVwZWF0ZWQgb3IgcmV1c2VkIGZvciBldmVyeSBzZWN1cml0 eSBtb2R1bGUuICBEb2VzIFNHWCBub3QgdHJhY2sNCj4gdGhpcyBzdGF0ZSBp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