How to patch it ??

Discuss usability issues, general maintenance, and general support issues for a grsecurity-enabled system.

Moderators: spender, PaX Team

How to patch it ??

Postby Whammer » Mon Apr 08, 2002 10:09 am

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
Whammer
 
Posts: 4
Joined: Mon Apr 08, 2002 10:01 am

Hmmm

Postby Whammer » Mon Apr 08, 2002 12:18 pm

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! :)
Whammer
 
Posts: 4
Joined: Mon Apr 08, 2002 10:01 am

Help

Postby michaeld » Mon Apr 08, 2002 2:44 pm

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
michaeld
 
Posts: 37
Joined: Mon Feb 25, 2002 12:32 am
Location: Atlanta, GA

Yup ..

Postby Whammer » Mon Apr 08, 2002 2:57 pm

Yeah, but i actually figured it myself. Just recompiling because i forgot to include sysctl.

Peace!

// Whammer
Whammer
 
Posts: 4
Joined: Mon Apr 08, 2002 10:01 am


Return to grsecurity support

cron