Applying Patch to the kernel
Posted on 2005-05-10
i am using Redhat Enterprise 4 AS. and i am trying to install opensource 'snare' auditing tool.. In order for snare to log, the kernel must be integrated with snare. So for the Redhat Enterprse 4, there is no integrared kernel but a patch is available with the extension .diff ( .diff file). Since i am totally new to apply patch to kernel , i dont know what to do with a diff file. I searched and found that patch can be applied with a .patch file using.... patch -p1 < file.patch command being in the kenrel directory. But i dont know what to do with the .diff file. So can anyone of you tell me how to apply the patch with a diff file
My source kernel resides in /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/ which contains the Makefile etc.... and the diff file is /root/snare-0.9.7-188.8.131.52.diff..
So please tell me how can apply patch to the kernel using the .diff file.
Thanks and regards