Linux Kernel instant intrusion detection security enhancement-Background
Source: Internet
Author: User
Linux Kernel real-time Intrusion Detection security enhancement-Background-general Linux technology-Linux programming and kernel information. For more information, see the following. V. Background
Ice cubes
I have not found the whole patch code in this article, probably because this person has abandoned the development of this item. Haha, if anyone can find it. Please tell us that the original url they provided is:
Www. iac. rm. cnr. it/tecno/software/indexs. HTML
This and previous LIDS articles are about kernel module-level system security. This article mainly aims to prevent the buffer overflow vulnerability. Although there is no code prototype, it provides several code examples to help us better understand how Linux Kernel Modules intercept system calls, or how to implement process operation permission analysis. It is helpful for us to understand Linux and other operating system kernels. I hope that you can better understand this article and help you develop system security software in the future. The code for the check_rootproc function is as follows:
/* Check_rootproc.c */
Int check_rootproc (struct inode * ino ){
Int cont = 0, iproc = 0, error = 0;
Suidp_t * suidproc;
Efile_t f;
Suidp_t p;
If (IS_SETUID_TO_ROOT (current) | (IS_A_ROOT_DAEMON (current ))){
For (; cont
If (permitted. lst [cont]. efid. device = ino-> I _dev &&
Permitted. lst [cont]. efid. inode = ino-> I _ino )){
If (permitted. lst [cont]. efid. size = ino-> I _size )&&
Permitted. lst [cont]. efid. modif = ino-> I _mtime )){
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.