block: ublk: switch to ioctl command encoding
[linux-block.git] / drivers / block / Kconfig
index f79f20430ef7a403a52d513f038316815a98b100..5b9d4aaebb81d48550db8b09cb6a2ce9fe38e6b2 100644 (file)
@@ -385,6 +385,23 @@ config BLK_DEV_UBLK
          can handle batch more effectively, but task_work_add() isn't exported
          for module, so ublk has to be built to kernel.
 
+config BLKDEV_UBLK_LEGACY_OPCODES
+       bool "Support legacy command opcode"
+       depends on BLK_DEV_UBLK
+       default y
+       help
+         ublk driver started to take plain command encoding, which turns out
+         one bad way. The traditional ioctl command opcode encodes more
+         info and basically defines each code uniquely, so opcode conflict
+         is avoided, and driver can handle wrong command easily, meantime it
+         may help security subsystem to audit io_uring command.
+
+         Say Y if your application still uses legacy command opcode.
+
+         Say N if you don't want to support legacy command opcode. It is
+         suggested to enable N if your application(ublk server) switches to
+         ioctl command encoding.
+
 source "drivers/block/rnbd/Kconfig"
 
 endif # BLK_DEV