Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp1216264ybh; Sat, 3 Aug 2019 20:50:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqwTKBY+i9OySQDErFX3AwEFsNA0bYXD8DsnygJQ3ClDpNX6bLeYU11NJHTzZ/ZfOljPFjsE X-Received: by 2002:a17:90a:21cc:: with SMTP id q70mr12345281pjc.56.1564890646908; Sat, 03 Aug 2019 20:50:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564890646; cv=none; d=google.com; s=arc-20160816; b=VTViqRAHVKsqcbtrn/rzzwu1dPwliitxPSdsGlVw5CBjaVKxIYWJeeYP4v0OhdtkHv 4IdhTYsYse7ILeJb0eVTJ9/gypyjwbGVbMTybpbaa2I6R1DFAmg1M1GFdFVdGtk1nHal F+oU7/LF8RUkO2jBSfLFylbn1cotCzLhu42PxAMcXXWltxCox4+kDAToZTdQ8u+WDm96 kpX+ZpCuYfTXj2SswiEgF+F4MRwKvESlE+VhLOTcaOBgAbQFLbVEN4Ppd+iIqm0lCr+k 5j0tU+hIEeDgaUA+Gn/28TZLpkXCkvrNXJQ6rajuJfT23qNMneBfG0qJs9vrzv7Ltda/ THsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:organization:references:in-reply-to:date:cc:to:from :subject:message-id; bh=3QSk9fqyvzzhKWtPPuEaK62oY/Dn8NX2RC4s4bbQbb8=; b=sMP5gXcHpaEGNGg/KNMh/fkU8D/WCVJkyk7RzNjfl7ycAqgA4ty1l7GowXEuw6yPH2 do30obz5jOgC4BYknwnenreFuUyH7rmGAMdSoDkyHOATHvRetI14QhmewB7mlDQuxl4G 9YNKrJ659eY/BFHLrkIdv3+fogi1w989xCe0C3tKztjE/ch+8ulVblxv6eLxW6KyHHzE C+aU1AGVh+W4Kc9LgX8qmJ0ATfM4++g6BjMuEFQUzlB93ayXCnGJxDVIBsgxIFWQhORY MaqV730G8N7X9GNgaRvldpmAbXrIrMI+HNfiSvlCbFbbunewyu7RVCZ0fVmANNcE5Llf KE2Q== 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 v2si9440566pjy.48.2019.08.03.20.50.31; Sat, 03 Aug 2019 20:50: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 S1726655AbfHCOoq (ORCPT + 99 others); Sat, 3 Aug 2019 10:44:46 -0400 Received: from mga14.intel.com ([192.55.52.115]:31834 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725844AbfHCOop (ORCPT ); Sat, 3 Aug 2019 10:44: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 fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Aug 2019 07:44:44 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,342,1559545200"; d="scan'208";a="164212471" Received: from xinpan-mobl1.ger.corp.intel.com ([10.249.33.239]) by orsmga007.jf.intel.com with ESMTP; 03 Aug 2019 07:44:39 -0700 Message-ID: Subject: Re: [PATCH] KEYS: trusted: allow module init if TPM is inactive or deactivated From: Jarkko Sakkinen To: Tyler Hicks Cc: Roberto Sassu , jejb@linux.ibm.com, zohar@linux.ibm.com, jgg@ziepe.ca, linux-integrity@vger.kernel.org, linux-security-module@vger.kernel.org, keyrings@vger.kernel.org, linux-kernel@vger.kernel.org, crazyt2019+lml@gmail.com, nayna@linux.vnet.ibm.com, silviu.vlasceanu@huawei.com Date: Sat, 03 Aug 2019 17:44:37 +0300 In-Reply-To: <20190802202343.GE26616@elm> References: <20190705163735.11539-1-roberto.sassu@huawei.com> <20190711194811.rfsohbfc3a7carpa@linux.intel.com> <20190801163215.mfkagoafkxscesne@linux.intel.com> <20190802142721.GA26616@elm> <20190802194226.oiztvme5klkmw6fh@linux.intel.com> <20190802202343.GE26616@elm> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.32.1-2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2019-08-02 at 15:23 -0500, Tyler Hicks wrote: > That wasn't the conclusion that I came to. I prefer Robert's proposed > change to trusted.ko. > > How do you propose that this be fixed in eCryptfs? > > Removing encrypted_key support from eCryptfs is the only way that I can > see to fix the bug in eCryptfs. That support has been there since 2011. > I'm not sure of the number of users that would be broken by removing > encrypted_key support. I don't think the number is high but I can't say > that confidently. Looking at the documentation [1] it is stated that "Encrypted keys do not depend on a TPM, and are faster, as they use AES for encryption/decryption." Why would you need to remove support for encrypted keys? Isn't it a regression in encrypted keys to hard depend on trusted keys given what the documentation says? > Roberto, what was your use case when you added encrypted_key support to > eCryptfs back then? Are you aware of any users of eCryptfs + > encrypted_keys? > > Jarkko, removing a long-standing feature is potentially more disruptive > to users than adding a workaround to trusted.ko which already requires a > similar workaround. I don't think that I agree with you on the proper > fix here. There is nothing to disagree or agree. I just try to get the picture since ecryptfs is relatively alien to me. [1] https://www.kernel.org/doc/html/v4.13/security/keys/trusted-encrypted.html /Jarkko