Page 1 of 1

How to patch it ??

PostPosted: Mon Apr 08, 2002 10:09 am
by Whammer
Hey guys!

I'm just completely lost about all this. If anyone could tell me in details howto patch my kernel (2.4.17) with the grsecurity patch I would be very happy.

I'm running Debian 3.0 Testing and installed the kernel-patch-2.4-grsecurity via apt-get, but that doesnt bring me any futher.

I also tried: patch -p0 grsecurity-1.9.4-2.4.18.patch but with no luck, atleast not on my system. Ofcouse in /usr/src/ as root.

Looking forward for a helpfull answer.


// Whammer

Hmmm

PostPosted: Mon Apr 08, 2002 12:18 pm
by Whammer
Hehe ... i located the error.

It was: patch -p0 < grsecurity-1.9.4-2.4.18.patch

But .. i gave me 2 errors:

1 out of 1 hunk FAILED -- saving rejects to file linux/Makefile.rej
1 out of 1 hunk FAILED -- saving rejects to file linux/drivers/usb/ov511.c.rej

And then alot more happend:

patching file linux/drivers/usb/se401.c
can't find file to patch at input line 2404
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -urN linux/drivers/usb/stv680.c linux/drivers/usb/stv680.c
|--- linux/drivers/usb/stv680.c Mon Feb 25 14:38:07 2002
|+++ linux/drivers/usb/stv680.c Sun Mar 3 16:34:08 2002
--------------------------
File to patch:



If Anyone would help me from here, much appreciated! :)

Help

PostPosted: Mon Apr 08, 2002 2:44 pm
by michaeld
Get a stock kernel 2.4.18 from http://www.kernel.org

tar -xzf linux-2.4.18.tar.gz

then just patch -p0 < grsecurity-1.9.4-2.4.18.patch
that should do it, just remember to cd linux and
make menuconfig or make xconfig to setup the kernel.

Hope I helped

Michael

Yup ..

PostPosted: Mon Apr 08, 2002 2:57 pm
by Whammer
Yeah, but i actually figured it myself. Just recompiling because i forgot to include sysctl.

Peace!

// Whammer