Review your favorite Linux distribution.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 07-12-2005, 12:38 AM   #1
LQ Newbie
Registered: Jun 2005
Location: Mumbai , India
Distribution: Redhat
Posts: 1

Rep: Reputation: 0
kernel : how to add sys call through modules only?

I am doing a small project in which i m designing a new system call
to encrypt/decrypt files.

My problem goes like this:

1> Previously up until 2.4 , sys_call_table was exported by kernel
and so obsolete sys call no. could be used to add our customised
syscall.So patching around that obsolete sys call worked.

2> I am designing on 2.6.5 and it doesnt export sys_call_table .
So the obvious thing is to modify kernel sources and do development.
But this would terribly slow down the work as I have to recompile
again and again. I thought using modules is better.

In order to export the sys_call_table in kernel 2.6 i added into the file arch/i386/kernel/i386_ksyms.c the following lines:
extern void* sys_call_table[];

But after recompile , the symbol unresolved problem continues
when i run my module.

I googled a lot but couldnt find worthy source. Could u suggest a workaround
to add sys call using modules only ?
Old 09-14-2005, 04:17 AM   #2
Registered: Jan 2003
Location: Finland
Distribution: ElementaryOS Freya as main, every other ubuntu-based as testing
Posts: 124

Rep: Reputation: 15
..and you're not the onlyone with that problem.
I'm doin an "ultimate-yber-security" module (actually tryin to get it to work in 2.6, worked like charm in 2.4..) that, when system has "unwanted" visitors (read: hackers) stealing the root account, keeps a "hidden" account up, and when U log in (whit that hidden) , it jamms *every* command that the unwanted gues tries to use.. and hides itself from ls'ing, accessing directly, logs, and from seeing that it has been loaded...

...Was kinda neet to listen what a friend of mine said, when I created a fake-root account on my pc, and let him to log in and do all the damage he could do..

I'd also appriciate a solution of somekind to that problem.


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
question about select sys call xatzipol Programming 1 10-30-2005 10:22 AM
how to add 'modules' without re-compiling the kernel b0nd Linux - Newbie 4 10-03-2005 11:22 AM
Write sys call failing ppy Programming 1 11-05-2004 09:57 AM
Kill sys call eshwar_ind Programming 4 05-07-2004 12:41 PM
any sys call to get ip address of NIC jmdey Linux - General 2 05-30-2002 04:09 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:34 AM.

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