Displaying 1 result from an estimated 1 matches for "kldunload_args".
Did you mean:
  kldload_args
  
2004 Sep 29
5
Kernel-loadable Root Kits
...PERM;
> +#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. */
> +    return EPERM;
> +#else
>      linker_file_t lf;
>      int error = 0;
>  
> @@ -716,6 +726,7 @@
>  
>  out:
>      return error;
> +#endif
>  }
>  
>  int
> 
> 
> ------------------...