From mboxrd@z Thu Jan 1 00:00:00 1970 From: joeyli Subject: Re: [PATCH 5/5] PM / hibernate: An option to request that snapshot image must be authenticated Date: Thu, 13 Sep 2018 16:37:09 +0800 Message-ID: <20180913083709.GD3593@linux-l9pv.suse> References: <20180912142337.21955-1-jlee@suse.com> <20180912142337.21955-6-jlee@suse.com> <0ee402c0-bd0e-ea84-9def-f6355b83b4f5@infradead.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <0ee402c0-bd0e-ea84-9def-f6355b83b4f5@infradead.org> Sender: linux-kernel-owner@vger.kernel.org To: Randy Dunlap Cc: "Lee, Chun-Yi" , "Rafael J . Wysocki" , Pavel Machek , linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, "Rafael J. Wysocki" , Chen Yu , Oliver Neukum , Ryan Chen , David Howells , Giovanni Gherdovich List-Id: linux-pm@vger.kernel.org Hi Randy, On Wed, Sep 12, 2018 at 09:24:38AM -0700, Randy Dunlap wrote: > Hi, > > On 9/12/18 7:23 AM, Lee, Chun-Yi wrote: > > diff --git a/kernel/power/Kconfig b/kernel/power/Kconfig > > index 7c5c30149dbc..3c998fd6dc4c 100644 > > --- a/kernel/power/Kconfig > > +++ b/kernel/power/Kconfig > > @@ -90,6 +90,17 @@ config HIBERNATION_ENC_AUTH > > master key of hibernation. The TPM trusted key depends on TPM. The > > security of user defined key relies on user space. > > > > +config HIBERNATION_ENC_AUTH_FORCE > > + bool "Require hibernate snapshot image to be validly signed" > > + depends on HIBERNATION_ENC_AUTH > > + help > > + This option will prevent that a snapshot image without (valid) > > + signature be restored. Without this option, a unauthenticated > > an > > > + snapshot image can be restored but the restored kernel will be > > + tainted. Which also means that the hibernation can be triggered > > s/Which/This/ > > or like this: > tainted, which also > Thanks for your review and suggestion! I will update the description in next version. Regards Joey Lee