From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id AE816211435AC for ; Mon, 24 Sep 2018 14:12:46 -0700 (PDT) Subject: Re: [PATCH v8 02/12] libnvdimm: create keyring to store security keys References: <153549632073.4089.3609134467249378610.stgit@djiang5-desk3.ch.intel.com> <153549644916.4089.12258485183075906901.stgit@djiang5-desk3.ch.intel.com> <29624.1537823087@warthog.procyon.org.uk> From: Dave Jiang Message-ID: <2c266f87-3dba-29fa-c9e7-7f3aeb7c20b2@intel.com> Date: Mon, 24 Sep 2018 14:12:45 -0700 MIME-Version: 1.0 In-Reply-To: <29624.1537823087@warthog.procyon.org.uk> Content-Language: en-US List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: linux-nvdimm-bounces@lists.01.org Sender: "Linux-nvdimm" To: David Howells , Dan Williams Cc: "Schofield, Alison" , Kees Cook , linux-nvdimm , Eric Biggers , keyrings@vger.kernel.org List-ID: On 09/24/2018 02:04 PM, David Howells wrote: > Dan Williams wrote: > >> I think you want to use prepare_kernel_cred(), not export init_cred. > > That only works if the searching is done with the creds generated by > prepare_kernel_cred(). He probably does want init_cred, or at least > current_cred() if module loading overrides the creds with init_cred whilst > initialising the module. > > David > Can I pass in NULL or is some sort of cred is necessary? _______________________________________________ Linux-nvdimm mailing list Linux-nvdimm@lists.01.org https://lists.01.org/mailman/listinfo/linux-nvdimm