aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/fpga/xilinx-spi.c
diff options
context:
space:
mode:
authorKees Cook <[email protected]>2020-10-02 17:38:25 +0000
committerGreg Kroah-Hartman <[email protected]>2020-10-05 11:37:04 +0000
commit0fa8e084648779eeb8929ae004301b3acf3bad84 (patch)
treeebfed647c8f2a43a0967ba127c7e75df36909cba /drivers/fpga/xilinx-spi.c
parentIMA: Add support for file reads without contents (diff)
downloadkernel-0fa8e084648779eeb8929ae004301b3acf3bad84.tar.gz
kernel-0fa8e084648779eeb8929ae004301b3acf3bad84.zip
fs/kernel_file_read: Add "offset" arg for partial reads
To perform partial reads, callers of kernel_read_file*() must have a non-NULL file_size argument and a preallocated buffer. The new "offset" argument can then be used to seek to specific locations in the file to fill the buffer to, at most, "buf_size" per call. Where possible, the LSM hooks can report whether a full file has been read or not so that the contents can be reasoned about. Signed-off-by: Kees Cook <[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