File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
drivers/base/firmware_loader Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -651,6 +651,8 @@ static bool fw_force_sysfs_fallback(enum fw_opt opt_flags)
651
651
652
652
static bool fw_run_sysfs_fallback (enum fw_opt opt_flags )
653
653
{
654
+ int ret ;
655
+
654
656
if (fw_fallback_config .ignore_sysfs_fallback ) {
655
657
pr_info_once ("Ignoring firmware sysfs fallback due to sysctl knob\n" );
656
658
return false;
@@ -659,6 +661,11 @@ static bool fw_run_sysfs_fallback(enum fw_opt opt_flags)
659
661
if ((opt_flags & FW_OPT_NOFALLBACK ))
660
662
return false;
661
663
664
+ /* Also permit LSMs and IMA to fail firmware sysfs fallback */
665
+ ret = security_kernel_load_data (LOADING_FIRMWARE );
666
+ if (ret < 0 )
667
+ return ret ;
668
+
662
669
return fw_force_sysfs_fallback (opt_flags );
663
670
}
664
671
You can’t perform that action at this time.
0 commit comments