Commit d0ab4b70 authored by Josh Boyer's avatar Josh Boyer Committed by Tim Gardner

hibernate: Disable in a signed modules environment

BugLink: http://bugs.launchpad.net/bugs/1566221

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 in
a secure modules environment.
Signed-off-by: default avatarJosh Boyer <jwboyer@fedoraproject.org>
Signed-off-by: default avatarTim Gardner <tim.gardner@canonical.com>
parent 495686a2
......@@ -29,6 +29,7 @@
#include <linux/ctype.h>
#include <linux/genhd.h>
#include <linux/ktime.h>
#include <linux/module.h>
#include <trace/events/power.h>
#include "power.h"
......@@ -66,7 +67,7 @@ static const struct platform_hibernation_ops *hibernation_ops;
bool hibernation_available(void)
{
return (nohibernate == 0);
return ((nohibernate == 0) && !secure_modules());
}
/**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment