[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20190510223228.9966-4-prsriva02@gmail.com>
Date: Fri, 10 May 2019 15:32:28 -0700
From: Prakhar Srivastava <prsriva02@...il.com>
To: linux-integrity@...r.kernel.org,
inux-security-module@...r.kernel.org, linux-kernel@...r.kernel.org
Cc: zohar@...ux.ibm.com, ebiederm@...ssion.com, vgoyal@...hat.com,
prsriva@...rosoft.com, Prakhar Srivastava <prsriva02@...il.com>
Subject: [PATCH 3/3 v5] call ima_kexec_cmdline from kexec_file_load path
From: Prakhar Srivastava <prsriva02@...il.com>
Signed-off-by: Prakhar Srivastava <prsriva02@...il.com>
---
kernel/kexec_file.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/kernel/kexec_file.c b/kernel/kexec_file.c
index f1d0e00a3971..e779bcf674a0 100644
--- a/kernel/kexec_file.c
+++ b/kernel/kexec_file.c
@@ -241,6 +241,8 @@ kimage_file_prepare_segments(struct kimage *image, int kernel_fd, int initrd_fd,
ret = -EINVAL;
goto out;
}
+
+ ima_kexec_cmdline(image->cmdline_buf, image->cmdline_buf_len - 1);
}
/* Call arch image load handlers */
--
2.20.1
Powered by blists - more mailing lists