imq / linuximq

Pseudo-driver for the intermediate queue device.
https://imq.github.io/
GNU General Public License v2.0
99 stars 51 forks source link

Patch fails with linux-3.13.10-hardened (Gentoo Linux) #1

Closed vitorbrandao closed 10 years ago

vitorbrandao commented 10 years ago

Patch fails as shown below:

GENTOO linux-3.13.10-hardened # patch -p1 --dry-run < patch-imqmq-3.13.diff 
patching file drivers/net/Kconfig
patching file drivers/net/Makefile
patching file drivers/net/imq.c
patching file include/linux/imq.h
patching file include/linux/netfilter/xt_IMQ.h
patching file include/linux/netfilter_ipv4/ipt_IMQ.h
patching file include/linux/netfilter_ipv6/ip6t_IMQ.h
patching file include/linux/skbuff.h
Hunk #6 succeeded at 2656 (offset 4 lines).
patching file include/net/netfilter/nf_queue.h
patching file include/uapi/linux/netfilter.h
patching file net/core/dev.c
Hunk #2 succeeded at 2606 (offset 2 lines).
patching file net/core/skbuff.c
Hunk #1 succeeded at 75 with fuzz 2 (offset 2 lines).
Hunk #2 succeeded at 3421 with fuzz 2 (offset 3326 lines).
Hunk #3 FAILED at 668.
Hunk #4 FAILED at 800.
Hunk #5 FAILED at 3234.
3 out of 5 hunks FAILED -- saving rejects to file net/core/skbuff.c.rej
patching file net/ipv6/ip6_output.c
patching file net/netfilter/Kconfig
patching file net/netfilter/Makefile
patching file net/netfilter/core.c
patching file net/netfilter/nf_internals.h
patching file net/netfilter/nf_queue.c
patching file net/netfilter/xt_IMQ.c

Hardened sources is a security enhanced Linux kernel. Patches are available from this location: http://dev.gentoo.org/~blueness/hardened-sources/hardened-patches/hardened-patches-3.13.10-1.extras.tar.bz2

vitorbrandao commented 10 years ago

This patch applies cleanly: https://github.com/pld-linux/kernel/blob/master/kernel-imq.patch

imq commented 10 years ago

Thanks for the fix on Gentoo hardened kernel.