首页 | 官方网站   微博 | 高级检索  
     

LINUX文件系统实时监控方法
引用本文:王跃,于书举.LINUX文件系统实时监控方法[J].北京工业大学学报,2004,30(4):494-499.
作者姓名:王跃  于书举
作者单位:北京工业大学,计算机学院,北京,100022;北京工业大学,计算机学院,北京,100022
摘    要:为了保证LINUX操作系统的安全性,通过对其文件系统进行实时监控来阻止恶意程序的入侵.使用内核可加载模块修改LINUX内核,通过修改内核中的系统调用表拦截对文件系统的系统调用;使用PROC文件系统进行内核与用户进程的信息传递;使用用户进程对内核拦截到的文件信息进行处理,实现实时监控.讨论了PROC文件的注册方法,给出了在内核中通过文件句柄获取文件全路径的方法.为了实现对并行文件操作的实时监控,利用等待队列和信号机制给出了一个内核和守护进程进行同步与通信的解决方案.给出了对LINUX文件系统实时监控的一个完整的方法,并为实际编程提供了框架程序.

关 键 词:实时监控  内核可加载模块  等待队列
文章编号:0254-0037(2004)04-0494-06
修稿时间:2003年7月3日

The Method of Real-time Monitoring the LINUX File System
WANG Yue,YU Shu-ju College of Computer Science,Beijing University of Technology,Beijing ,China.The Method of Real-time Monitoring the LINUX File System[J].Journal of Beijing Polytechnic University,2004,30(4):494-499.
Authors:WANG Yue  YU Shu-ju College of Computer Science  Beijing University of Technology  Beijing  China
Affiliation:WANG Yue,YU Shu-ju College of Computer Science,Beijing University of Technology,Beijing 100022,China
Abstract:For the security of LINUX operation system, it is necessary to monitor the file system of LINUX to prevent the invasion of malevolent programs. Accordingly, the authors modify the kernel of LINUX by loading LKM (loadable kernel module) to hold up system calls of file system by modifing the system_call_table; the PROC file system is used to realize the correspondence between the kernel and the user process; Finally, the user process can deal with the files which are holded up by kernel. The authors discuss how to register a PROC file in linux kernel and offer a method for getting file' s absolute path in LINUX kernel. To solve the problem of real-time monitoring parallel file opreations, the authors use wait queues and signals to implement the synchronization and interaction between kernel and user process. A complete solution to real-time monitoring the file system of LINUX is given, and then a skeleton of programs to realize the solution is provided.
Keywords:real-time monitor  LKM (loadable kernel module)  wait queue
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司    京ICP备09084417号-23

京公网安备 11010802026262号