LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 07-11-2005, 11:38 PM   #1
pinkeshzaveri
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[];
EXPORT_SYMBOL(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, 03:17 AM   #2
Tih8710
Member
 
Registered: Jan 2003
Location: Finland
Distribution: Debian, INSERT-Linux, Fedora
Posts: 121

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.
 
  


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


All times are GMT -5. The time now is 11:58 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration