]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - drivers/scsi/eata.c
UBUNTU: SAUCE: (efi-lockdown) scsi: Lock down the eata driver
[mirror_ubuntu-artful-kernel.git] / drivers / scsi / eata.c
index 227dd2c2ec2f16d1cec7e7b2bb5894fa84862b5e..5c036d10c18b8a97a8efdaf4e8842b8505a196fc 100644 (file)
@@ -1552,8 +1552,13 @@ static int eata2x_detect(struct scsi_host_template *tpnt)
 
        tpnt->proc_name = "eata2x";
 
-       if (strlen(boot_options))
+       if (strlen(boot_options)) {
+               if (kernel_is_locked_down()) {
+                       pr_err("Command line-specified device addresses, irqs and dma channels are not permitted when the kernel is locked down\n");
+                       return -EPERM;
+               }
                option_setup(boot_options);
+       }
 
 #if defined(MODULE)
        /* io_port could have been modified when loading as a module */