[PATCH v10 3/9] firmware: add request_partial_firmware_into_buf
scott.branden at broadcom.com
Wed Jul 8 04:07:04 UTC 2020
On 2020-07-07 4:58 p.m., Kees Cook wrote:
> On Mon, Jul 06, 2020 at 04:23:03PM -0700, Scott Branden wrote:
>> Add request_partial_firmware_into_buf to allow for portions
>> of firmware file to be read into a buffer. Necessary where firmware
>> needs to be loaded in portions from file in memory constrained systems.
> Just tear out the differing "id" and just use FW_OPT_PARTIAL and I think
> if Luis is happy, you're all set.
I hope so. Also, I will need to call
kernel_pread_file_from_path_initns() if FW_OPT_PARTIAL is set
and kernel_read_file_from_path_initns() otherwise to avoid a swiss
army-knife approach of calling a common function with multiple parameters.
More information about the Linux-security-module-archive