Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 634010 Details for
Bug 869642
kernel: resume from disk must be disabled in Secure Boot mode
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
disable hibernate in sb environment
0001-hibernate-Disable-in-a-Secure-Boot-environment.patch (text/plain), 2.29 KB, created by
Josh Boyer
on 2012-10-26 18:57:38 UTC
(
hide
)
Description:
disable hibernate in sb environment
Filename:
MIME Type:
Creator:
Josh Boyer
Created:
2012-10-26 18:57:38 UTC
Size:
2.29 KB
patch
obsolete
>From d037dc552a62b1dd39b457e10c133a4509b0efc3 Mon Sep 17 00:00:00 2001 >From: Josh Boyer <jwboyer@redhat.com> >Date: Fri, 26 Oct 2012 14:02:09 -0400 >Subject: [PATCH] hibernate: Disable in a Secure Boot environment > >There is currently no way to verify the resume image when returning >from hibernate. This might compromise the secure boot trust model, >so until we can work with signed hibernate images we disable it in >a Secure Boot environment. > >Signed-off-by: Josh Boyer <jwboyer@redhat.com> >--- > kernel/power/hibernate.c | 14 +++++++++++++- > kernel/power/main.c | 4 +++- > 2 files changed, 16 insertions(+), 2 deletions(-) > >diff --git a/kernel/power/hibernate.c b/kernel/power/hibernate.c >index b26f5f1..f04343b 100644 >--- a/kernel/power/hibernate.c >+++ b/kernel/power/hibernate.c >@@ -632,6 +632,10 @@ int hibernate(void) > { > int error; > >+ if (!capable(CAP_COMPROMISE_KERNEL)) { >+ return -EPERM; >+ } >+ > lock_system_sleep(); > /* The snapshot device should not be opened while we're running */ > if (!atomic_add_unless(&snapshot_device_available, -1, 0)) { >@@ -723,7 +727,7 @@ static int software_resume(void) > /* > * If the user said "noresume".. bail out early. > */ >- if (noresume) >+ if (noresume || !capable(CAP_COMPROMISE_KERNEL)) > return 0; > > /* >@@ -889,6 +893,11 @@ static ssize_t disk_show(struct kobject *kobj, struct kobj_attribute *attr, > int i; > char *start = buf; > >+ if (!capable(CAP_COMPROMISE_KERNEL)) { >+ buf += sprintf(buf, "[%s]\n", "disabled"); >+ return buf-start; >+ } >+ > for (i = HIBERNATION_FIRST; i <= HIBERNATION_MAX; i++) { > if (!hibernation_modes[i]) > continue; >@@ -923,6 +932,9 @@ static ssize_t disk_store(struct kobject *kobj, struct kobj_attribute *attr, > char *p; > int mode = HIBERNATION_INVALID; > >+ if (!capable(CAP_COMPROMISE_KERNEL)) >+ return -EPERM; >+ > p = memchr(buf, '\n', n); > len = p ? p - buf : n; > >diff --git a/kernel/power/main.c b/kernel/power/main.c >index f458238..72580c1 100644 >--- a/kernel/power/main.c >+++ b/kernel/power/main.c >@@ -301,7 +301,9 @@ static ssize_t state_show(struct kobject *kobj, struct kobj_attribute *attr, > } > #endif > #ifdef CONFIG_HIBERNATION >- s += sprintf(s, "%s\n", "disk"); >+ if (capable(CAP_COMPROMISE_KERNEL)) { >+ s += sprintf(s, "%s\n", "disk"); >+ } > #else > if (s != buf) > /* convert the last space to a newline */ >-- >1.7.12.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 869642
:
634010
|
636264