Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5298610ybi; Tue, 11 Jun 2019 23:44:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqxhIR+wkJv+9DdmXsh+gvHt00ipVKJWaSyGn24GCE8/2z4GgsKPKwUsktxBegA8ltXKx7rp X-Received: by 2002:a17:90a:338b:: with SMTP id n11mr18029103pjb.21.1560321871428; Tue, 11 Jun 2019 23:44:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560321871; cv=none; d=google.com; s=arc-20160816; b=XyFENtQVnvkusa5o74vLn6AbOOro8GbtsEGNckKaeZKUJZunpk6loZQkwnGdbhFmwu 47oWu/lwsp1erium5a+T8s1iXbcIkpY9UthPtYCY4d55qfRjKeyqJxTjMDoVmRclyboQ Gjm+xhKKQk4eckisw8a53xoOCAG7BR2blW1zODzbiyLYtpHjhKPMc3xKoA0wm5OuP+WZ fm+JOKQAfJoEJ7uD9K0a0Cc3H7/U9KI33ZPLh1lNjQ105OBkDY3HtJi9Y6/wqlECJ0av LfMG4qalLH+8xJy9YCdxpdFq4gIANtvZaqhBVdG2/HMp+qG5i9dPpzyve2viasWYB2dU kCzg== 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=XZDDJxA+4JsSDSqHBo7haZ9VunXYNtth3INS8fC8/ew=; b=E5cTVKmPCZN4p4onDSIk5enjZGNrWH4GMlbhQ9OuJ0Jqx4hOQ3mkvsCN2/ay3WoiH2 eEyX0k/pPAfj7yoElV8WiekGVakSv/ueZ0pNW0GwwTPZ4xpa38VxnUtI6CZ25NSyGSjn scxW2DXzLn1MLti004AmWGjw3Yi+CQdaDNGlWmucCob65KG54pj7fUXco/il2iO0rCgU WrfZ/UGUD+tHeKZ3fGLi9ZtnWT3YxLsiNB6m5g7KRa/vfKNodwwKuWQvUBaXjNmldQTE d6a9tl+uuEYX43ffeXBm8O3SOV1SOc1qZIE1u6WdPTkj8BBsEyIJqdIAFxsZ51kqLgYX +phA== 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 q2si8789626pfh.127.2019.06.11.23.44.05; Tue, 11 Jun 2019 23:44:31 -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 S2436964AbfFKWzp (ORCPT + 99 others); Tue, 11 Jun 2019 18:55:45 -0400 Received: from mga18.intel.com ([134.134.136.126]:47106 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2436750AbfFKWzp (ORCPT ); Tue, 11 Jun 2019 18:55:45 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Jun 2019 15:55:44 -0700 X-ExtLoop1: 1 Received: from orsmsx106.amr.corp.intel.com ([10.22.225.133]) by orsmga007.jf.intel.com with ESMTP; 11 Jun 2019 15:55:44 -0700 Received: from orsmsx115.amr.corp.intel.com (10.22.240.11) by ORSMSX106.amr.corp.intel.com (10.22.225.133) with Microsoft SMTP Server (TLS) id 14.3.408.0; Tue, 11 Jun 2019 15:55:44 -0700 Received: from orsmsx116.amr.corp.intel.com ([169.254.7.166]) by ORSMSX115.amr.corp.intel.com ([169.254.4.229]) with mapi id 14.03.0415.000; Tue, 11 Jun 2019 15:55:43 -0700 From: "Xing, Cedric" To: Stephen Smalley , "linux-security-module@vger.kernel.org" , "selinux@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-sgx@vger.kernel.org" CC: "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/YaaW7RmA///+7GA= Date: Tue, 11 Jun 2019 22:55:42 +0000 Message-ID: <960B34DE67B9E140824F1DCDEC400C0F65502A85@ORSMSX116.amr.corp.intel.com> References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiZTYzZDA3ZGYtZTk5ZS00OGE1LWI0YzctNjQzMDNmNjkyOGMyIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoib1FobnpwRWxYcWtxZWZYK0RjWTZZbk9QeEc1TGJTYW05K2VrWE9JdWZPWEdMbXdQOXZWY3dZbjA3WlVMZXFIVyJ9 x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-originating-ip: [10.22.254.139] 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 PiBGcm9tOiBsaW51eC1zZ3gtb3duZXJAdmdlci5rZXJuZWwub3JnIFttYWlsdG86bGludXgtc2d4 LQ0KPiBvd25lckB2Z2VyLmtlcm5lbC5vcmddIE9uIEJlaGFsZiBPZiBTdGVwaGVuIFNtYWxsZXkN Cj4gU2VudDogVHVlc2RheSwgSnVuZSAxMSwgMjAxOSA2OjQwIEFNDQo+IA0KPiA+DQo+ID4gKyNp ZmRlZiBDT05GSUdfSU5URUxfU0dYDQo+ID4gKwlyYyA9IHNneHNlY19tcHJvdGVjdCh2bWEsIHBy b3QpOw0KPiA+ICsJaWYgKHJjIDw9IDApDQo+ID4gKwkJcmV0dXJuIHJjOw0KPiANCj4gV2h5IGFy ZSB5b3Ugc2tpcHBpbmcgdGhlIGZpbGVfbWFwX3Byb3RfY2hlY2soKSBjYWxsIHdoZW4gcmMgPT0g MD8NCj4gV2hhdCB3b3VsZCBTRUxpbnV4IGNoZWNrIGlmIHlvdSBkaWRuJ3QgZG8gc28gLQ0KPiBG SUxFX19SRUFEfEZJTEVfX1dSSVRFfEZJTEVfX0VYRUNVVEUgdG8gL2Rldi9zZ3gvZW5jbGF2ZT8g I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