git: f0e59ecff85d - main - CTL: READ(6) should be allowed on CD devices
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 26 Apr 2024 03:13:53 UTC
The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=f0e59ecff85d4b9e875464199e065a269c9c2530 commit f0e59ecff85d4b9e875464199e065a269c9c2530 Author: HP van Braam <hp@tmm.cx> AuthorDate: 2024-04-26 02:31:12 +0000 Commit: Warner Losh <imp@FreeBSD.org> CommitDate: 2024-04-26 02:31:14 +0000 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 --- sys/cam/ctl/ctl_cmd_table.c | 1 + 1 file changed, 1 insertion(+) 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}},