Re: call insmod in C program
- From: Tilman Schmidt <ts-usenet0804@xxxxxxxxx>
- Date: Sat, 26 Apr 2008 14:59:27 +0200
kartik saxena schrieb:
mbm wrote:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~I need to insert kernel modules from a C application , is it possible
to do that without calling system("insmod ..")
Hi, here goes the program.~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#include <sys/types.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
int main()
{
setuid(0);
system("/sbin/insmod /.../yourmodule.ko");
Hmmm.
.
- References:
- call insmod in C program
- From: mbm
- Re: call insmod in C program
- From: Josef Moellers
- Re: call insmod in C program
- From: kartik saxena
- call insmod in C program
- Prev by Date: Re: call insmod in C program
- Next by Date: Re: call insmod in C program
- Previous by thread: Re: call insmod in C program
- Next by thread: Re: call insmod in C program
- Index(es):