首页 | Linux 基础 | 资讯动态 | Linux 应用 | Linux 服务器 | Linux 开发 | Linux 安全 | 专题 | 联盟论坛
  当前位置:主页>Linux 开发>linux 内核>文章内容
Linux系统可卸载内核模块完全指南(上)
来源:www.unix5.com 作者:riechelr_hl(收集) 发布时间:2007-06-06  
int sym_link (const char *oldname, const char *newname); int sys_unlink (const char *name);

用于管理硬/软链接的函数

  int sys_rename 
(const char *oldname, 
const char *newname);

用于改变文件名

int sys_rmdir (const char* name);
int sys_mkdir (const *char filename, int mode);

用于新建已经删除目录

int sys_open (const char *filename, int mode);
int sys_close (unsigned int fd);

所有和打开文件(包括新建)有关的操作,还有关闭文件的.

int sys_read (unsigned int fd, char *buf, unsigned int count);
int sys_write (unsigned int fd, char *buf, unsigned int count);

读写文件的系统调用

  int sys_getdents
(unsigned int fd, struct dirent *dirent, 
unsigned int count);

用于取得文件列表的系统调用(ls...命令)

  int sys_readlink (const char *path, char *buf, int bufsize);

读符号链接的系统调用

int sys_selectt 
(int n, fd_set *inp,
fd_set *outp, fd_set *exp, 
struct timeval *tvp);

多路复用I/O操作

sys_socketcall (int call, unsigned long args);

socket 函数

unsigned long sys_create_module (char *name, unsigned long size);
int sys_delete_module (char *name);
int sys_query_module (const char *name, int which, void *buf, size_t bufsize,
size_t *ret);

用于模块的加载/卸载和查询。

以上就是我认为入侵者会感兴趣的系统调用。当然如果要获得系统的root权你有可能需要一些特殊的系统调用,但是作为一个hacker他很可能会拥有一个上面列出的最基本的列表。在第二部分中你会知道怎么样利用这些系统调用来实现你自己的目的。


共4页: 上一页 [1] [2] [3] 4 下一页
 
如果您对本文有任何疑问或者建议,请到论坛讨论区发表您的意见: >> 论坛入口
[收藏] [推荐] [评论(0条)] [返回顶部] [打印本页] [关闭窗口]  
  热点文章
·使用 Linux 系统调用的内核命令
·Linux 2.6.11内核文件IO系统调用
·Linux操作系统的源代码目录树结
·Linux用户态与内核态的交互讲解
·Linux内核对I/O端口的管理实现(
·深入分析 Linux操作系统的内核链
·Linux内核可装载模块对设备驱动
·概述Linux系统的驱动框架及驱动
·详解Linux 2.6内核新文件系统变
·FreeBSD手册讲解(一)--配置FreeB
·编译Linux操作系统的内核讲解
·Linux系统可卸载内核模块完全指
  相关文章
·Linux系统可卸载内核模块完全指
·Linux系统可卸载内核模块完全指
·详解Linux 2.6内核新文件系统变
·Linux系统内核模块和驱动的编写
·内核设计篇
·Linux内核对I/O端口的管理实现(
·Linux内核对I/O端口的管理实现(
·使用 Linux 系统调用的内核命令
·Linux操作系统的源代码目录树结
·Linux 和对称多处理
·使用 SystemTap 调试内核
·Linux内核入侵检测安全增强实现

本站信息源至:互联网络,均为学习,交流所用,如有版权问题,请联系我们.
站长QQ:397422079 E_mail:riechelr_hl@unix5.com
转载本站内容请注明原作者名.谢谢!