diff --git a/SOURCES/yum-rhn-plugin-2.0.1-6-el7-to-yum-rhn-plugin-2.0.1-6.1-el7.patch b/SOURCES/yum-rhn-plugin-2.0.1-6-el7-to-yum-rhn-plugin-2.0.1-6.1-el7.patch new file mode 100644 index 0000000..593d70d --- /dev/null +++ b/SOURCES/yum-rhn-plugin-2.0.1-6-el7-to-yum-rhn-plugin-2.0.1-6.1-el7.patch @@ -0,0 +1,37 @@ +diff --git a/rhnplugin.py b/rhnplugin.py +index a2681c2..8f1cba0 100644 +--- a/rhnplugin.py ++++ b/rhnplugin.py +@@ -427,7 +427,7 @@ class RhnRepo(YumRepository): + # but we have to send and empty X-RHN-Auth-User-Id ... + AuthUserH = 'X-RHN-Auth-User-Id' + if (AuthUserH in self.http_headers and not self.http_headers[AuthUserH]): +- self.http_headers[AuthUserH] = "\nX-libcurl-Empty-Header-Workaround: *" ++ self.http_headers[AuthUserH] = "\r\nX-libcurl-Empty-Header-Workaround: *" + + # Turn our dict into a list of 2-tuples + headers = YumRepository._YumRepository__headersListFromDict(self) # pylint: disable-msg=E1101 +diff --git a/yum-rhn-plugin.spec b/yum-rhn-plugin.spec +index 1ced7dc..299c88f 100644 +--- a/yum-rhn-plugin.spec ++++ b/yum-rhn-plugin.spec +@@ -1,7 +1,7 @@ + Summary: Spacewalk support for yum + Name: yum-rhn-plugin + Version: 2.0.1 +-Release: 6%{?dist} ++Release: 6.1%{?dist} + License: GPLv2 + Group: System Environment/Base + Source0: https://fedorahosted.org/releases/s/p/spacewalk/%{name}-%{version}.tar.gz +@@ -70,6 +70,10 @@ fi + %doc LICENSE + + %changelog ++* Mon Feb 27 2017 Tomas Kasparek 2.0.1-6.1 ++- Resolves: #1426704 - request failed: error reading the headers ++ (CVE-2016-8743) (pstudeni@redhat.com) ++ + * Mon Jul 25 2016 Tomas Kasparek 2.0.1-6 + - Resolves: #1359087 - expect additional arguments (tkasparek@redhat.com) + diff --git a/SPECS/yum-rhn-plugin.spec b/SPECS/yum-rhn-plugin.spec index 8e82bef..d103be4 100644 --- a/SPECS/yum-rhn-plugin.spec +++ b/SPECS/yum-rhn-plugin.spec @@ -1,7 +1,7 @@ Summary: Spacewalk support for yum Name: yum-rhn-plugin Version: 2.0.1 -Release: 6%{?dist} +Release: 6.1%{?dist} License: GPLv2 Group: System Environment/Base Source0: https://fedorahosted.org/releases/s/p/spacewalk/%{name}-%{version}.tar.gz @@ -10,6 +10,7 @@ Patch1: yum-rhn-plugin-2.0.1-2-el7-to-yum-rhn-plugin-2.0.1-3-el7.patch Patch2: yum-rhn-plugin-2.0.1-3-el7-to-yum-rhn-plugin-2.0.1-4-el7.patch Patch3: yum-rhn-plugin-2.0.1-4-el7-to-yum-rhn-plugin-2.0.1-5-el7.patch Patch4: yum-rhn-plugin-2.0.1-5-el7-to-yum-rhn-plugin-2.0.1-6-el7.patch +Patch5: yum-rhn-plugin-2.0.1-6-el7-to-yum-rhn-plugin-2.0.1-6.1-el7.patch URL: https://fedorahosted.org/spacewalk BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %if %{?suse_version: %{suse_version} > 1110} %{!?suse_version:1} @@ -40,6 +41,7 @@ software updates. %patch2 -p1 %patch3 -p1 %patch4 -p1 +%patch5 -p1 %build make -f Makefile.yum-rhn-plugin @@ -80,6 +82,10 @@ fi %doc LICENSE %changelog +* Mon Feb 27 2017 Tomas Kasparek 2.0.1-6.1 +- Resolves: #1426704 - request failed: error reading the headers + (CVE-2016-8743) (pstudeni@redhat.com) + * Mon Jul 25 2016 Tomas Kasparek 2.0.1-6 - Resolves: #1359087 - expect additional arguments (tkasparek@redhat.com)