Results 1 to 2 of 2

Thread: Patching grsecurity on ubuntu kernel sources.

Hybrid View

  1. #1
    Join Date
    Feb 2012
    Beans
    3

    Patching grsecurity on ubuntu kernel sources.

    Hi,

    I have a problem witch patching grsecurity on ubuntu kernel sources 3.2

    I used apt-get source linux-sources-3.2, and then was trying to patch kernel. After that i got:
    Code:
    patching file Documentation/dontdiff
    patching file Documentation/kernel-parameters.txt
    Hunk #1 succeeded at 881 (offset 22 lines).
    Hunk #2 succeeded at 1987 (offset 24 lines).
    patching file Documentation/sysctl/fs.txt
    patching file Makefile
    Hunk #2 succeeded at 417 (offset 9 lines).
    Hunk #3 succeeded at 574 (offset 9 lines).
    Hunk #4 succeeded at 777 (offset 9 lines).
    Hunk #5 succeeded at 1001 (offset 9 lines).
    Hunk #6 succeeded at 1012 (offset 9 lines).
    Hunk #7 succeeded at 1052 (offset 9 lines).
    Hunk #8 succeeded at 1165 (offset 11 lines).
    Hunk #9 succeeded at 1182 (offset 11 lines).
    Hunk #10 succeeded at 1241 (offset 11 lines).
    Hunk #11 succeeded at 1279 (offset 11 lines).
    Hunk #12 succeeded at 1440 (offset 11 lines).
    Hunk #13 succeeded at 1568 (offset 11 lines).
    Hunk #14 succeeded at 1592 (offset 11 lines).
    patching file arch/Kconfig
    Reversed (or previously applied) patch detected!  Assume -R? [n] ^C
    root@ks3360102:/usr/src/linux-3.2.0#
    I tryied on grsec:
    Kernel sources:
    Code:
    dpkg-source: info: extracting linux in linux-3.2.0
    dpkg-source: info: unpacking linux_3.2.0.orig.tar.gz
    dpkg-source: info: applying linux_3.2.0-58.88.diff.gz
    root@ks3360102:/usr/src# ls
    linux-3.2.0
    Someone can help ?

  2. #2
    Join Date
    Mar 2011
    Beans
    701

    Re: Patching grsecurity on ubuntu kernel sources.

    Download kernel source from kernel.org.Download the *associated grsecurity patch for that version*. A patch for 3.12 is not going to work for any other version. Patches are *only* for the latest or the stable branch, old patches are not available.
    sig

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
  •