aacraid: missing capable() check in compat ioctl
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 29 Oct 2013 19:11:06 +0000 (22:11 +0300)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 28 Nov 2013 14:02:06 +0000 (14:02 +0000)
commita88f5ccd2ac9798c046609a8aec18c3f522a6334
treedeaa52e4ccdce318d0ec1dc5071174f8a91acc31
parent02c54b6cf2b7bd1089bef485d7a81bdf0c5999d8
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/scsi/aacraid/linit.c