Skip to content

gtaxlve - sm-p619 #1409

Answered by addas
MatejMagat305 asked this question in Q&A
Mar 2, 2024 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

Here is the way

 * sys_execve() executes a new program.
 */

#ifdef CONFIG_KSU
extern bool ksu_execveat_hook __read_mostly;
extern int ksu_handle_execveat(int *fd, struct filename **filename_ptr, void *argv,
			void *envp, int *flags);
extern int ksu_handle_execveat_sucompat(int *fd, struct filename **filename_ptr,
				 void *argv, void *envp, int *flags);
#endif

static int do_execveat_common(int fd, struct filename *filename,
			      struct user_arg_ptr argv,
			      struct user_arg_ptr envp,
			      int flags)
{
	char *pathbuf = NULL;
	struct linux_binprm *bprm;
	struct file *file;
	struct files_struct *displaced;
	int retval;
	
	#ifdef CONFIG_KSU
	if (unlikely(ksu_execveat_hook))
	…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@MatejMagat305
Comment options

@addas
Comment options

@MatejMagat305
Comment options

Answer selected by MatejMagat305
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants