LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 08-29-2006, 05:05 AM   #1
suchi
Member
 
Registered: Nov 2003
Location: india
Posts: 46
Blog Entries: 1

Rep: Reputation: 15
Exclamation How do i patch 2.4.21-37 kernel with antidote2 security patch


I have a problem here. I have downloaded a kernel patch called antidote2 which provides a defence against arp spoofing. I tried to patch it to 2.4.21-37 Kernel and it does not succeed. Anybody has any idea of where to find a patch that can be applied to the above kernel ?
 
Old 08-29-2006, 06:58 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,112
Blog Entries: 54

Rep: Reputation: 2784Reputation: 2784Reputation: 2784Reputation: 2784Reputation: 2784Reputation: 2784Reputation: 2784Reputation: 2784Reputation: 2784Reputation: 2784Reputation: 2784
I have downloaded a kernel patch called antidote2
Please be verbose. From where? We're low on ESP.


I tried to patch it to 2.4.21-37 Kernel and it does not succeed.
Same. What's the actual and exact message?


Anybody has any idea of where to find a patch that can be applied to the above kernel ?
AFAIK Antidote2 for kernel 2.4 was updated to 2.4.26. If your 2.4.21-37 is a RHEL-patched kernel with all the fixes backported then you will probably need to "patch" with more --fuzz and manually fill in the rejects. If your 2.4.21-37 is a stock one you should go for 2.4.33-n. The patch job would be similar.


BTW, this thread is not about Linux security but about patching.
Hence this thread will be moved to Linux - Kernel.
 
Old 08-29-2006, 10:12 AM   #3
suchi
Member
 
Registered: Nov 2003
Location: india
Posts: 46
Blog Entries: 1

Original Poster
Rep: Reputation: 15
The link for antidote patch is :

http://www.securitylab.ru/_tools/antidote.diff.gz

I had a doubt. Say i have a kernel (2.4.21-37) running right now in my machine.
I go to /usr/src directory and unpack the antidote.diff.gz to get /usr/src/antidote.diff

Then i go to /usr/src and patch it using "patch -p0 < antidote.diff"

Then i go to /usr/src/linux-2.4.21-37 directory and do a make mrproper

Then i copy /boot/config-xxx to /usr/src/linux-2.4.21-37/.config

Then i go to /usr/src/linux-2.4.21-37 and type "make dep"

Then i do a "make bzImage"

I copy arch/i386/boot/bzImage thus formed after the previous command and reboot.

Is this the end of it or should i do something more ?

Also, what exactly does make dep do ?

Sorry for some silly questions, and Thanks in advance
 
Old 09-04-2006, 05:46 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,112
Blog Entries: 54

Rep: Reputation: 2784Reputation: 2784Reputation: 2784Reputation: 2784Reputation: 2784Reputation: 2784Reputation: 2784Reputation: 2784Reputation: 2784Reputation: 2784Reputation: 2784
What you want, what you really, really want is to read "compiling The Linux Kernel HOWTO". If you properly compiled and installed the kernel there is nothing left to do AFAIK: the patch doesn't provide sysctl knobs to tweak or stuff to do.
 
Old 09-05-2006, 02:29 AM   #5
suchi
Member
 
Registered: Nov 2003
Location: india
Posts: 46
Blog Entries: 1

Original Poster
Rep: Reputation: 15
Thanks for that document

Thanks for the doc. I will go through that too. In the meantime, if you find any patch that works on 2.4.21-37, please reply
 
  


Reply

Tags
kernel, patch, security


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
Slack 10.2's default 2.4.31 kernel - how do I security patch it? Old_Fogie Slackware 3 08-07-2006 11:10 AM
Kernel Patch (Patch-2.6.13) ukez Linux - Hardware 4 08-30-2005 03:40 PM
Unable to patch 2.6.11.7 kernel with Reiser4 mm patch SlackwareInAZ Slackware 9 04-26-2005 06:33 AM
debian-patch-debianlogo w/2.6.5 kernel-patch-lpp Outabux Debian 11 05-20-2004 01:21 PM
How to Apply patch for Mass Storage device to work? (uss725-2.4.20-rc2.patch) cevjr Linux - Hardware 3 04-20-2004 11:14 PM


All times are GMT -5. The time now is 07:49 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