LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 02-11-2007, 03:05 PM   #1
raga4223688
LQ Newbie
 
Registered: Feb 2007
Posts: 11

Rep: Reputation: 0
How to port or put an userland application into kernel land(suse 10.2)


can somebody put light on this issue??
 
Old 02-11-2007, 04:35 PM   #2
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
What are you trying to accomplish?
 
Old 02-12-2007, 01:34 PM   #3
raga4223688
LQ Newbie
 
Registered: Feb 2007
Posts: 11

Original Poster
Rep: Reputation: 0
I want to port snort into kernel so that it can work more efficiently and its performance becomes better then in usrland....
 
Old 02-12-2007, 06:25 PM   #4
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
Well, I think you'll find that this will be the most painful thing you've ever attempted. It won't be a matter of porting it so much as rewriting it and adapting the technology to kernel space. There are many things that either don't work or are very difficult from kernel space; one of which is file access. If you really think you must attempt this, then I'd suggest you get "Linux Device Drivers" by Corbet, Rubini, and Kroah-Hartman, and start experimenting with device drivers. You'll probably discover pretty quickly that user apps don't make a good fit to kernel space. I think the rule of thumb is that a process should be in user space if it can be in user space, or something like that. There are no automatic improvements in speed and efficiency just from running in kernel space. It's not an accident that X runs in user space.
 
Old 02-13-2007, 02:26 AM   #5
raga4223688
LQ Newbie
 
Registered: Feb 2007
Posts: 11

Original Poster
Rep: Reputation: 0
Yes your advise is true....but after thinking on ur suggestion i have decided to put into kernel only the parts where snort sniffs the packet and test it using a structure in kernel that stores all the signature rules so that instead of using file access in kernel we can use structure to store the rules and access them so that it will lead to performance.... If any more suggestions please let me know...i m still linux amature!!
 
Old 02-13-2007, 02:39 AM   #6
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
Well, start with the book is really all the advice I can give you. Good luck!
 
  


Reply



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
LXer: Linux: Tainting the Kernel From Userland LXer Syndicated Linux News 0 05-29-2006 11:54 PM
root file system on NFS... kernel vs. userland GUIPenguin Linux - General 0 03-22-2006 01:52 PM
Difference between Userland programming and Kernel Programming.. meetsagittarian Programming 1 02-20-2006 12:26 AM
Where do I Put the Command Application Startup bpellet314 Linux - Newbie 6 07-07-2005 10:30 AM
Kernel problems in 2.6.7 land LinKoln Linux - General 1 08-18-2004 09:16 PM

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

All times are GMT -5. The time now is 07:25 PM.

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