aboutsummaryrefslogtreecommitdiff
path: root/net/unix
diff options
context:
space:
mode:
authorKees Cook <[email protected]>2022-12-09 11:54:57 -0800
committerKees Cook <[email protected]>2022-12-14 14:34:18 -0800
commit1a17e5b513ceebf21100027745b8731b4728edf7 (patch)
treec8b4e4ff42a436eb5eada8b3d0da9ad240746ee0 /net/unix
parentd272e01fa0a2f15c5c331a37cd99c6875c7b7186 (diff)
LoadPin: Ignore the "contents" argument of the LSM hooks
LoadPin only enforces the read-only origin of kernel file reads. Whether or not it was a partial read isn't important. Remove the overly conservative checks so that things like partial firmware reads will succeed (i.e. reading a firmware header). Fixes: 2039bda1fa8d ("LSM: Add "contents" flag to kernel_read_file hook") Cc: Paul Moore <[email protected]> Cc: James Morris <[email protected]> Cc: "Serge E. Hallyn" <[email protected]> Cc: [email protected] Signed-off-by: Kees Cook <[email protected]> Acked-by: Serge Hallyn <[email protected]> Tested-by: Ping-Ke Shih <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'net/unix')
0 files changed, 0 insertions, 0 deletions