From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.5 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS,USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 30D6FC43381 for ; Thu, 21 Mar 2019 14:32:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 01F6D218E2 for ; Thu, 21 Mar 2019 14:32:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728069AbfCUOcT (ORCPT ); Thu, 21 Mar 2019 10:32:19 -0400 Received: from mga11.intel.com ([192.55.52.93]:36091 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727934AbfCUOcT (ORCPT ); Thu, 21 Mar 2019 10:32:19 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 Mar 2019 07:32:19 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,253,1549958400"; d="scan'208";a="133528055" Received: from dilu-mobl2.ccr.corp.intel.com (HELO localhost) ([10.249.254.184]) by fmsmga008.fm.intel.com with ESMTP; 21 Mar 2019 07:32:09 -0700 Date: Thu, 21 Mar 2019 16:32:08 +0200 From: Jarkko Sakkinen To: "Huang, Kai" Cc: "Christopherson, Sean J" , "Svahn, Kai" , "nhorman@redhat.com" , "jmorris@namei.org" , "rientjes@google.com" , "josh@joshtriplett.org" , "tglx@linutronix.de" , "Ayoun, Serge" , "Huang, Haitao" , "linux-security-module@vger.kernel.org" , "x86@kernel.org" , "akpm@linux-foundation.org" , "npmccallum@redhat.com" , "linux-sgx@vger.kernel.org" , "luto@kernel.org" , "Katz-zamir, Shay" , "Hansen, Dave" , "bp@alien8.de" , "serge@hallyn.com" , "andriy.shevchenko@linux.intel.com" Subject: Re: [PATCH v19 17/27] x86/sgx: Add provisioning Message-ID: <20190321143208.GL4603@linux.intel.com> References: <20190317211456.13927-1-jarkko.sakkinen@linux.intel.com> <20190317211456.13927-18-jarkko.sakkinen@linux.intel.com> <20190319200912.GH25575@linux.intel.com> <1553134108.1952.4.camel@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1553134108.1952.4.camel@intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-sgx-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sgx@vger.kernel.org On Thu, Mar 21, 2019 at 02:08:36AM +0000, Huang, Kai wrote: > On Tue, 2019-03-19 at 13:09 -0700, Sean Christopherson wrote: > > On Sun, Mar 17, 2019 at 11:14:46PM +0200, Jarkko Sakkinen wrote: > > > In order to provide a mechanism for devilering provisoning rights: > > > > > > 1. Add a new file to the securityfs file called sgx/provision that works > > > as a token for allowing an enclave to have the provisioning privileges. > > > 2. Add a new ioctl called SGX_IOC_ENCLAVE_SET_ATTRIBUTE that accepts the > > > following data structure: > > > > > > struct sgx_enclave_set_attribute { > > > __u64 addr; > > > __u64 token_fd; > > > }; > > Would you elaborate why the name is "token_fd"? I think *token* in SGX > has more specific meaning? I'm open for other names. /Jarkko