aacraid: missing capable() check in compat ioctl
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 29 Oct 2013 19:11:06 +0000 (19:11 +0000)
committerWilly Tarreau <w@1wt.eu>
Mon, 19 May 2014 05:54:35 +0000 (07:54 +0200)
commita7060b9d99974ff98d0e87f3f3fd2914db2141ea
treeb8ec6c92183ec1c1b54020349862f66b9d050c54
parente017ce714b950b8d7ec563e0843a34a6b7d0263c
aacraid: missing capable() check in compat ioctl

commit f856567b930dfcdbc3323261bf77240ccdde01f5 upstream

In commit d496f94d22d1 ('[SCSI] aacraid: fix security weakness') we
added a check on CAP_SYS_RAWIO to the ioctl.  The compat ioctls need the
check as well.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Cc: stable@kernel.org
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Willy Tarreau <w@1wt.eu>
drivers/scsi/aacraid/linit.c