Displaying 1 result from an estimated 1 matches for "kldload_args".
Did you mean:
kldunload_args
2004 Sep 29
5
Kernel-loadable Root Kits
...nker.c 2001/10/04 08:10:05
> @@ -27,6 +27,7 @@
> */
>
> #include "opt_ddb.h"
> +#include "opt_kern_linker.h"
>
> #include <sys/param.h>
> #include <sys/kernel.h>
> @@ -648,6 +649,10 @@
> int
> kldload(struct proc* p, struct kldload_args* uap)
> {
> +#ifdef NO_KLD
> + /* Always return error. */
> + return EPERM;
> +#else
> char* filename = NULL, *modulename;
> linker_file_t lf;
> int error = 0;
> @@ -685,11 +690,16 @@
> if (filename)
> free(filename, M_TEMP);
> r...