Results 1 to 3 of 3

Thread: Error when trying to patch grsec

  1. #1
    Join Date
    May 2008
    Beans
    16

    Error when trying to patch grsec

    I am trying to patch grsec to the linux kernel

    I downloaded the latest kernel (2.6.25.4) with the latest grsecurity patch (2.1.11-2.4.36.2) and when I enter the command:

    patch -p0 <./grsecurity-2.1.11-2.4.36.2-200804211830.patch

    I get this error message:

    Code:
    root@prime:/home# patch -p0 < ./grsecurity-2.1.11-2.4.36.2-200804211830.patch
    can't find file to patch at input line 4
    Perhaps you used the wrong -p or --strip option?
    The text leading up to this was:
    --------------------------
    |diff -urNp linux-2.4.36.2/arch/alpha/config.in linux-2.4.36.2/arch/alpha/config.in
    |--- linux-2.4.36.2/arch/alpha/config.in	2008-02-24 15:38:03.000000000 -0500
    |+++ linux-2.4.36.2/arch/alpha/config.in	2008-03-11 14:12:45.000000000 -0400
    --------------------------
    File to patch:
    What do I do?

  2. #2
    Join Date
    May 2008
    Beans
    16

    Re: Error when trying to patch grsec

    Please, I need some help.

  3. #3
    Join Date
    Sep 2007
    Beans
    75

    Re: Error when trying to patch grsec

    You have downloaded the wrong patch. The patch you have is for Linux 2.4.36.2, but you have 2.6.25.4.

    Download the latest grsecurity patch from here:

    http://www.grsecurity.net/test/grsec...05181334.patch

    Then patch it with this command:

    Code:
    patch -p0 < grsecurity-2.1.12-2.6.25.4-200805181334.patch
    Remember you need to have unzipped the kernel source code, and have the patch in the parent directory. For example, if you unzip the kernel to your home directory, you'll have a directory called "/home/<username>/linux-2.6.25.4". In this case you'll need to put the patch into "/home/<username>/".

    Also, the GRsecurity documentation is worse than useless. Take a look at http://www.tuxmachines.org/node/8676 -- this is much more helpful.
    Last edited by /etc/init.d/; May 29th, 2008 at 10:56 AM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •