diff options
Diffstat (limited to 'kernel/kexec_file.c')
-rw-r--r-- | kernel/kexec_file.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/kexec_file.c b/kernel/kexec_file.c index 0c2df7f73792..b56a558e406d 100644 --- a/kernel/kexec_file.c +++ b/kernel/kexec_file.c | |||
@@ -19,6 +19,7 @@ | |||
19 | #include <linux/mutex.h> | 19 | #include <linux/mutex.h> |
20 | #include <linux/list.h> | 20 | #include <linux/list.h> |
21 | #include <linux/fs.h> | 21 | #include <linux/fs.h> |
22 | #include <linux/ima.h> | ||
22 | #include <crypto/hash.h> | 23 | #include <crypto/hash.h> |
23 | #include <crypto/sha.h> | 24 | #include <crypto/sha.h> |
24 | #include <linux/syscalls.h> | 25 | #include <linux/syscalls.h> |
@@ -132,6 +133,9 @@ kimage_file_prepare_segments(struct kimage *image, int kernel_fd, int initrd_fd, | |||
132 | return ret; | 133 | return ret; |
133 | image->kernel_buf_len = size; | 134 | image->kernel_buf_len = size; |
134 | 135 | ||
136 | /* IMA needs to pass the measurement list to the next kernel. */ | ||
137 | ima_add_kexec_buffer(image); | ||
138 | |||
135 | /* Call arch image probe handlers */ | 139 | /* Call arch image probe handlers */ |
136 | ret = arch_kexec_kernel_image_probe(image, image->kernel_buf, | 140 | ret = arch_kexec_kernel_image_probe(image, image->kernel_buf, |
137 | image->kernel_buf_len); | 141 | image->kernel_buf_len); |