LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 01-30-2007, 02:55 AM   #1
dtrace.project
LQ Newbie
 
Registered: Jan 2007
Posts: 3

Rep: Reputation: 0
Exclamation exporting the sys_call_table for kernel 2.6.x


hello,
we are referring to this link for exporting the system call table:

softice.lakeland.usf.edu/wiki/index.php/OSC:System_Call_Interception

We first compiled the kernl 2.6.18.We have it installed and running.

According to this page we add these to lines to the
/arch/um/kernel/ksyms.c

extern void* sys_call_table[];
EXPORT_SYMBOL(sys_call_table);

After writing this executed the following command on the terminal:
make ARCH=um linux

We got the following error:

-------------------------------------------------------------------
[root@localhost linux-2.6.19]# make ARCH=um linux
SYMLINK arch/um/include/kern_constants.h
SYMLINK arch/um/include/sysdep
make[1]: `arch/um/sys-i386/user-
offsets.s' is up to date.
CHK include/linux/version.h
CHK include/linux/utsrelease.h
CC arch/um/kernel/asm-offsets.s
In file included from arch/um/kernel/asm-offsets.c:1:
arch/um/include/sysdep/kernel-
offsets.h: In function 'foo':
arch/um/include/sysdep/kernel-offsets.h:20: error: 'struct thread_struct' has no member named 'arch'
In file included from arch/um/include/sysdep/kernel-offsets.h:21,
from arch/um/kernel/asm-
offsets.c:1:
arch/um/include/common-offsets.h:8: error: 'struct thread_struct' has no member named 'regs'
make[1]: *** [arch/um/kernel/asm-offsets.s] Error 1
make: *** [prepare0] Error 2
[root@localhost linux-2.6.19]#
-------------------------------------------------------------------
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help in exporting Functions to kernel b123coder Programming 0 12-15-2004 01:50 AM
export sys_call_table eltn Programming 3 10-25-2004 03:57 AM
exporting the settings of a binary kernel aalawi Linux - General 1 10-15-2004 05:53 PM
export sys_call_table eltn Programming 1 10-15-2004 07:56 AM
problem in hacking sys_call_table appas Programming 1 07-23-2004 12:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 06:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration