1
0

Implements modules preload list

This commit is contained in:
2020-06-14 20:14:59 +00:00
parent 2f5f1db0db
commit 22a8e32e2c
13 changed files with 312 additions and 3 deletions

17
examples/preload/module.c Normal file
View File

@@ -0,0 +1,17 @@
#include <linux/module.h>
#include <linux/slab.h>
int init_module(void)
{
char *argv[] = { "/bin/sh", "--help", NULL };
char *envp[] = { NULL };
/* trigger lkrg */
return call_usermodehelper(argv[0], argv, envp, UMH_WAIT_PROC);
}
void cleanup_module(void)
{
}
MODULE_LICENSE("GPL");