Gentoo Archives: gentoo-commits

From: "Sergey Popov (pinkbyte)" <pinkbyte@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-misc/quagga/files: quagga-0.99.22.4-ipctl-forwarding.patch
Date: Thu, 31 Oct 2013 07:41:33
Message-Id: 20131031074126.277A920005@flycatcher.gentoo.org
1 pinkbyte 13/10/31 07:41:26
2
3 Added: quagga-0.99.22.4-ipctl-forwarding.patch
4 Log:
5 Fix for missing definitions on some hardened configuration, bug #437292. Thanks to Graham Murray <gmurray AT webwayone.co.uk> for pointing on reasons of this issue
6
7 (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 0x1F357D42)
8
9 Revision Changes Path
10 1.1 net-misc/quagga/files/quagga-0.99.22.4-ipctl-forwarding.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/quagga/files/quagga-0.99.22.4-ipctl-forwarding.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/quagga/files/quagga-0.99.22.4-ipctl-forwarding.patch?rev=1.1&content-type=text/plain
14
15 Index: quagga-0.99.22.4-ipctl-forwarding.patch
16 ===================================================================
17 Fix for missing definitions on some Hardened configurations
18 Gentoo bug: https://bugs.gentoo.org/show_bug.cgi?id=437292
19
20 diff -Naur quagga-0.99.16.orig/zebra/ipforward_sysctl.c quagga-0.99.16/zebra/ipforward_sysctl.c
21 --- quagga-0.99.16.orig/zebra/ipforward_sysctl.c 2010-03-11 12:11:32.000000000 -0500
22 +++ quagga-0.99.16/zebra/ipforward_sysctl.c 2010-03-11 12:11:39.000000000 -0500
23 @@ -31,6 +31,15 @@
24
25 #define MIB_SIZ 4
26
27 +/* Fix for recent (2.6.14) kernel headers */
28 +#ifndef IPCTL_FORWARDING
29 + #define IPCTL_FORWARDING NET_IPV4_FORWARD
30 +#endif
31 +
32 +#ifndef IP6CTL_FORWARDING
33 + #define IP6CTL_FORWARDING NET_IPV6_FORWARDING
34 +#endif
35 +
36 extern struct zebra_privs_t zserv_privs;
37
38 /* IPv4 forwarding control MIB. */