search for: linker_file_t

Displaying 1 result from an estimated 1 matches for "linker_file_t".

2004 Sep 29
5
Kernel-loadable Root Kits
...ys/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); > return error; > +#endif > } > > int > kldunload(struct proc* p, struct kldunload_args* uap) > { > +#ifdef NO_KLD > + /* Always fail. */ > +...