diff options
author | Scott Branden <[email protected]> | 2020-10-02 10:38:24 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2020-10-05 13:37:04 +0200 |
commit | 34736daeecd1608bee21e3bf5170cd4c95143109 (patch) | |
tree | 4a9ef1ccc777e0f278eab20ffd39e53ff7a1fb19 /drivers/base/firmware_loader/main.c | |
parent | 2039bda1fa8dad3f4275b29eeaffef545bcbc85d (diff) |
IMA: Add support for file reads without contents
When the kernel_read_file LSM hook is called with contents=false, IMA
can appraise the file directly, without requiring a filled buffer. When
such a buffer is available, though, IMA can continue to use it instead
of forcing a double read here.
Signed-off-by: Scott Branden <[email protected]>
Link: https://lore.kernel.org/lkml/[email protected]/
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/base/firmware_loader/main.c')
0 files changed, 0 insertions, 0 deletions