⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 kernel_execve.s

📁 linux 内核源代码
💻 S
字号:
/* in-kernel program execution * * Copyright (C) 2006 Red Hat, Inc. All Rights Reserved. * Written by David Howells (dhowells@redhat.com) * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version * 2 of the License, or (at your option) any later version. */#include <linux/linkage.h>#include <asm/unistd.h>################################################################################# Do a system call from kernel instead of calling sys_execve so we end up with# proper pt_regs.## int kernel_execve(const char *filename, char *const argv[], char *const envp[])## On entry: GR8/GR9/GR10: arguments to function# On return: GR8: syscall return.################################################################################	.globl		kernel_execve	.type		kernel_execve,@functionkernel_execve:	setlos		__NR_execve,gr7	tira		gr0,#0	bralr	.size		kernel_execve,.-kernel_execve

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -