aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHP van Braam <hp@tmm.cx>2024-04-26 02:31:12 +0000
committerWarner Losh <imp@FreeBSD.org>2024-04-26 02:31:14 +0000
commitf0e59ecff85d4b9e875464199e065a269c9c2530 (patch)
treebcf5855544267e4ad0be0f20ea8288cff6c92d52
parentce3b53ffcc3ecc00fa6283542c60ff1fe697d853 (diff)
downloadsrc-f0e59ecff85d4b9e875464199e065a269c9c2530.tar.gz
src-f0e59ecff85d4b9e875464199e065a269c9c2530.zip
CTL: READ(6) should be allowed on CD devices
DOS ASPI drivers use this, with this change applied it is possible to load a DOS ASPI CDROM driver and run the Windows 98 installer. Signed-off-by: HP van Braam <hp@tmm.cx> Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/1202
-rw-r--r--sys/cam/ctl/ctl_cmd_table.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/cam/ctl/ctl_cmd_table.c b/sys/cam/ctl/ctl_cmd_table.c
index 8b81ea7e56b3..a62c5e8c1e81 100644
--- a/sys/cam/ctl/ctl_cmd_table.c
+++ b/sys/cam/ctl/ctl_cmd_table.c
@@ -944,6 +944,7 @@ const struct ctl_cmd_entry ctl_cmd_table[256] =
/* 08 READ(6) */
{ctl_read_write, CTL_SERIDX_READ, CTL_CMD_FLAG_OK_ON_DIRECT |
CTL_FLAG_DATA_IN |
+ CTL_CMD_FLAG_OK_ON_CDROM |
CTL_CMD_FLAG_ALLOW_ON_PR_WRESV,
CTL_LUN_PAT_READ | CTL_LUN_PAT_RANGE, 6, {0x1f, 0xff, 0xff, 0xff, 0x07}},