Re: using sys_mknod in init_module

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Adrian - Razvan Deaconescu (razvand@xxxxxxxxx) wrote:
> On 5/17/06, Thomas Petazzoni <thomas.petazzoni@xxxxxxxx> wrote:
> >
> >Hi,
> >
> >Le Wed, 17 May 2006 13:59:13 +0800,
> >"Adrian - Razvan Deaconescu" <razvand@xxxxxxxxx> a écrit :
> >
> >> in kernel 2.6 if you would like to have acces to the system calls
> >> table you'll have to modify the source code and recompile the kernel
> >>
> >> if you have a PC (x86 architecture) you'll have to complete the file
> >> arch/i386/kernel/i386_ksyms.c with the following lines
> >>
> >>       extern void* sys_call_table[];
> >>       EXPORT_SYMBOL(sys_call_table);
> >
> >Hurk... Such a bad hack.
> 
> is it possible to do it in some other way (i mean if i want to have access
> to the sys_call_table)?

Such kind of things have been talked on this list. I think a little read
of mailing list archive could be a good thing.

Try to access or made some changes to FS from kernel mode is not a a
good thing, and your problem must be think again.

I think not exporting sys_call_table[] is done to avoid such things and
for other reasons...

Have a nice day,

			 - Christophe -


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux