@@ -199,7 +199,7 @@ int ksu_handle_execveat_ksud(int *fd, struct filename **filename_ptr,
199199 const char __user * p = get_user_arg_ptr (* argv , 1 );
200200 if (p && !IS_ERR (p )) {
201201 char first_arg [16 ];
202- ksu_strncpy_from_user_nofault (first_arg , p , sizeof (first_arg ));
202+ strncpy_from_user_nofault (first_arg , p , sizeof (first_arg ));
203203 pr_info ("/system/bin/init first arg: %s\n" , first_arg );
204204 if (!strcmp (first_arg , "second_stage" )) {
205205 pr_info ("/system/bin/init second_stage executed\n" );
@@ -221,7 +221,7 @@ int ksu_handle_execveat_ksud(int *fd, struct filename **filename_ptr,
221221 const char __user * p = get_user_arg_ptr (* argv , 1 );
222222 if (p && !IS_ERR (p )) {
223223 char first_arg [16 ];
224- ksu_strncpy_from_user_nofault (first_arg , p , sizeof (first_arg ));
224+ strncpy_from_user_nofault (first_arg , p , sizeof (first_arg ));
225225 pr_info ("/init first arg: %s\n" , first_arg );
226226 if (!strcmp (first_arg , "--second-stage" )) {
227227 pr_info ("/init second_stage executed\n" );
@@ -243,7 +243,7 @@ int ksu_handle_execveat_ksud(int *fd, struct filename **filename_ptr,
243243 }
244244 char env [256 ];
245245 // Reading environment variable strings from user space
246- if (ksu_strncpy_from_user_nofault (env , p , sizeof (env )) < 0 )
246+ if (strncpy_from_user_nofault (env , p , sizeof (env )) < 0 )
247247 continue ;
248248 // Parsing environment variable names and values
249249 char * env_name = env ;
@@ -488,7 +488,7 @@ static int sys_execve_handler_pre(struct kprobe *p, struct pt_regs *regs)
488488 return 0 ;
489489
490490 memset (path , 0 , sizeof (path ));
491- ksu_strncpy_from_user_nofault (path , * filename_user , 32 );
491+ strncpy_from_user_nofault (path , * filename_user , 32 );
492492 filename_in .name = path ;
493493
494494 filename_p = & filename_in ;
0 commit comments