On Sat, Jun 20, 2009 at 10:34 PM, Razvan Deaconescu <razvan@xxxxxxxxxxxxxxxxxx> wrote:
AFAIK, you can invoke system call service routine .. 'sys_xyz' directly from your kernel code path, but only after calling set_fs (this will bypass access_ok security check).
Thanks,
Chetan Nanda
(Most of the time) You cannot. You could resort to some sort of hacks toOn Sat, 2009-06-20 at 09:59 -0700, krushnaal pai wrote:
> how to make system calls from kernel module?
>
> or
>
> how to include library headers in modules so as to use open,read write
> functtions?
use system call handlers but it is not advisable. You should use kernel
specific functions to solve your problems.
AFAIK, you can invoke system call service routine .. 'sys_xyz' directly from your kernel code path, but only after calling set_fs (this will bypass access_ok security check).
Thanks,
Chetan Nanda
Razvan
--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ