Skip to content

Commit 0baaa4a

Browse files
keesgregkh
authored andcommitted
fs/kernel_read_file: Remove FIRMWARE_EFI_EMBEDDED enum
commit 06e67b8 upstream. The "FIRMWARE_EFI_EMBEDDED" enum is a "where", not a "what". It should not be distinguished separately from just "FIRMWARE", as this confuses the LSMs about what is being loaded. Additionally, there was no actual validation of the firmware contents happening. Fixes: e4c2c0f ("firmware: Add new platform fallback mechanism and firmware_request_platform()") Signed-off-by: Kees Cook <keescook@chromium.org> Reviewed-by: Luis Chamberlain <mcgrof@kernel.org> Acked-by: Scott Branden <scott.branden@broadcom.com> Cc: stable@vger.kernel.org Link: https://lore.kernel.org/r/20201002173828.2099543-3-keescook@chromium.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 5a91009 commit 0baaa4a

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

drivers/base/firmware_loader/fallback_platform.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ int firmware_fallback_platform(struct fw_priv *fw_priv, u32 opt_flags)
1717
if (!(opt_flags & FW_OPT_FALLBACK_PLATFORM))
1818
return -ENOENT;
1919

20-
rc = security_kernel_load_data(LOADING_FIRMWARE_EFI_EMBEDDED);
20+
rc = security_kernel_load_data(LOADING_FIRMWARE);
2121
if (rc)
2222
return rc;
2323

include/linux/fs.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2862,7 +2862,6 @@ extern int do_pipe_flags(int *, int);
28622862
id(UNKNOWN, unknown) \
28632863
id(FIRMWARE, firmware) \
28642864
id(FIRMWARE_PREALLOC_BUFFER, firmware) \
2865-
id(FIRMWARE_EFI_EMBEDDED, firmware) \
28662865
id(MODULE, kernel-module) \
28672866
id(KEXEC_IMAGE, kexec-image) \
28682867
id(KEXEC_INITRAMFS, kexec-initramfs) \

0 commit comments

Comments
 (0)