summaryrefslogtreecommitdiffstats
path: root/efi-lockdown.patch
diff options
context:
space:
mode:
authorJustin M. Forbes <jforbes@redhat.com>2017-01-16 10:06:57 -0600
committerJustin M. Forbes <jforbes@redhat.com>2017-01-16 10:06:57 -0600
commit411d3b79f725abf71004a5eb845a838c46c217ce (patch)
treed1eed4d61b6949c0cd8712fc9a84457effc19bb6 /efi-lockdown.patch
parentcf4759fc3fbe7f7009161bcd1806e7eb04dfbd1b (diff)
downloadkernel-411d3b79f725abf71004a5eb845a838c46c217ce.tar.gz
kernel-411d3b79f725abf71004a5eb845a838c46c217ce.tar.xz
kernel-411d3b79f725abf71004a5eb845a838c46c217ce.zip
Linux v4.10-rc4
Diffstat (limited to 'efi-lockdown.patch')
-rw-r--r--efi-lockdown.patch4
1 files changed, 2 insertions, 2 deletions
diff --git a/efi-lockdown.patch b/efi-lockdown.patch
index b848ee1a6..6bbc24fa1 100644
--- a/efi-lockdown.patch
+++ b/efi-lockdown.patch
@@ -1073,8 +1073,8 @@ index 5bb1985..6441d21 100644
return -EFAULT;
@@ -515,6 +518,9 @@ static ssize_t write_kmem(struct file *file, const char __user *buf,
- if (!pfn_valid(PFN_DOWN(p)))
- return -EIO;
+ char *kbuf; /* k-addr because vwrite() takes vmlist_lock rwlock */
+ int err = 0;
+ if (kernel_is_locked_down())
+ return -EPERM;