@@ -2085,16 +2085,6 @@ static int fastrpc_req_mem_map(struct fastrpc_user *fl, char __user *argp)
2085
2085
return err ;
2086
2086
}
2087
2087
2088
- static int is_attach_rejected (struct fastrpc_user * fl )
2089
- {
2090
- /* Check if the device node is non-secure */
2091
- if (!fl -> is_secure_dev ) {
2092
- dev_dbg (& fl -> cctx -> rpdev -> dev , "untrusted app trying to attach to privileged DSP PD\n" );
2093
- return - EACCES ;
2094
- }
2095
- return 0 ;
2096
- }
2097
-
2098
2088
static long fastrpc_device_ioctl (struct file * file , unsigned int cmd ,
2099
2089
unsigned long arg )
2100
2090
{
@@ -2107,19 +2097,13 @@ static long fastrpc_device_ioctl(struct file *file, unsigned int cmd,
2107
2097
err = fastrpc_invoke (fl , argp );
2108
2098
break ;
2109
2099
case FASTRPC_IOCTL_INIT_ATTACH :
2110
- err = is_attach_rejected (fl );
2111
- if (!err )
2112
- err = fastrpc_init_attach (fl , ROOT_PD );
2100
+ err = fastrpc_init_attach (fl , ROOT_PD );
2113
2101
break ;
2114
2102
case FASTRPC_IOCTL_INIT_ATTACH_SNS :
2115
- err = is_attach_rejected (fl );
2116
- if (!err )
2117
- err = fastrpc_init_attach (fl , SENSORS_PD );
2103
+ err = fastrpc_init_attach (fl , SENSORS_PD );
2118
2104
break ;
2119
2105
case FASTRPC_IOCTL_INIT_CREATE_STATIC :
2120
- err = is_attach_rejected (fl );
2121
- if (!err )
2122
- err = fastrpc_init_create_static_process (fl , argp );
2106
+ err = fastrpc_init_create_static_process (fl , argp );
2123
2107
break ;
2124
2108
case FASTRPC_IOCTL_INIT_CREATE :
2125
2109
err = fastrpc_init_create_process (fl , argp );
0 commit comments