Message ID | 20190306235913.6631-10-matthewgarrett@google.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [PULL,REQUEST] Kernel lockdown patches for 5.2 | expand |
On Wed, 6 Mar 2019 15:58:55 -0800 Matthew Garrett <matthewgarrett@google.com> wrote: > From: Josh Boyer <jwboyer@fedoraproject.org> > > There is currently no way to verify the resume image when returning > from hibernate. This might compromise the signed modules trust model, > so until we can work with signed hibernate images we disable it when the > kernel is locked down. That one is a bit worrying since whilst the other stuff may be useful in some business environments, mandatory hibernate not suspend to RAM is a common corporate IT policy because of concerns about theft and recovery of memory contents. Alan
On Thu, Mar 7, 2019 at 6:55 AM Alan Cox <gnomes@lxorguk.ukuu.org.uk> wrote: > > On Wed, 6 Mar 2019 15:58:55 -0800 > Matthew Garrett <matthewgarrett@google.com> wrote: > > > From: Josh Boyer <jwboyer@fedoraproject.org> > > > > There is currently no way to verify the resume image when returning > > from hibernate. This might compromise the signed modules trust model, > > so until we can work with signed hibernate images we disable it when the > > kernel is locked down. > > That one is a bit worrying since whilst the other stuff may be useful in > some business environments, mandatory hibernate not suspend to RAM is a > common corporate IT policy because of concerns about theft and recovery > of memory contents. Suse have a solution for this that I'd like to see pushed again, but from a practical perspective enterprise distributions have been shipping this for some time without significant obvious customer complaint.
> Suse have a solution for this that I'd like to see pushed again, but > from a practical perspective enterprise distributions have been > shipping this for some time without significant obvious customer > complaint. Probably because their IT department hasn't noticed 8) Alan
diff --git a/kernel/power/hibernate.c b/kernel/power/hibernate.c index abef759de7c8..802795becb88 100644 --- a/kernel/power/hibernate.c +++ b/kernel/power/hibernate.c @@ -70,7 +70,7 @@ static const struct platform_hibernation_ops *hibernation_ops; bool hibernation_available(void) { - return (nohibernate == 0); + return nohibernate == 0 && !kernel_is_locked_down("Hibernation"); } /**