diff options
| author | Kees Cook <[email protected]> | 2020-10-02 17:38:21 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2020-10-05 11:37:03 +0000 |
| commit | 4f2d99b06b73800a5fb5b33e1899272e87ed7093 (patch) | |
| tree | 34ae764d54685515a27a90b943d310191ec3cf43 /drivers/fpga/xilinx-spi.c | |
| parent | LSM: Introduce kernel_post_load_data() hook (diff) | |
| download | kernel-4f2d99b06b73800a5fb5b33e1899272e87ed7093.tar.gz kernel-4f2d99b06b73800a5fb5b33e1899272e87ed7093.zip | |
firmware_loader: Use security_post_load_data()
Now that security_post_load_data() is wired up, use it instead
of the NULL file argument style of security_post_read_file(),
and update the security_kernel_load_data() call to indicate that a
security_kernel_post_load_data() call is expected.
Wire up the IMA check to match earlier logic. Perhaps a generalized
change to ima_post_load_data() might look something like this:
return process_buffer_measurement(buf, size,
kernel_load_data_id_str(load_id),
read_idmap[load_id] ?: FILE_CHECK,
0, NULL);
Signed-off-by: Kees Cook <[email protected]>
Reviewed-by: Mimi Zohar <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/fpga/xilinx-spi.c')
0 files changed, 0 insertions, 0 deletions
