forked from rubenslte/android_kernel_samsung_msm8226
msm: adsprpc: add stub for FASTRPC_IOCTL_CONTROL
An STS test checks for this ioctl and fails if it is not implemented in the kernel, so just add a stub for it so that the tests passes. Issue: SEC-1837 Issue: SEC-2373 Test: run sts-engbuild-no-spl-lock -m StsHostTestCases -t android.security.sts.Poc19_04#testPocCVE_2018_11967 Change-Id: I8a025c10cf1028294f305868f861d25f4856e3ea
This commit is contained in:
committed by
Francescodario Cuzzocrea
parent
833cfbd8b1
commit
c00f729b38
@@ -1462,6 +1462,11 @@ static long fastrpc_device_ioctl(struct file *file, unsigned int ioctl_num,
|
||||
break;
|
||||
}
|
||||
break;
|
||||
// Handle FASTRPC_IOCTL_CONTROL so a STS test passes, we don't have most functionality of this driver in 3.4
|
||||
// #define FASTRPC_IOCTL_CONTROL _IOWR('R', 12, struct fastrpc_ioctl_control)
|
||||
case _IOC(_IOC_READ|_IOC_WRITE, 'R', 12, 12):
|
||||
pr_info("adsprpc: FASTRPC_IOCTL_CONTROL is a stub!\n");
|
||||
break;
|
||||
default:
|
||||
err = -ENOTTY;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user