--- /dev/null
+--- a/cobbler/action_reposync.py 2018-02-06 16:33:36.000000000 +0100
++++ b/cobbler/action_reposync.py 2018-02-06 17:03:52.000000000 +0100
+@@ -234,7 +234,7 @@
+ dest_path = os.path.join(self.settings.webdir + "/repo_mirror", repo.name)
+
+ # FIXME: wrapper for subprocess that logs to logger
+- cmd = "wget -N -np -r -l inf -nd -P %s %s" % (dest_path, repo_mirror)
++ cmd = "wget -N -np -r -l inf -nd -P '%s' '%s'" % (dest_path, repo_mirror)
+ rc = utils.subprocess_call(self.logger, cmd)
+
+ if rc != 0:
+@@ -268,7 +268,7 @@
+ repo.mirror = "%s/" % repo.mirror
+
+ # FIXME: wrapper for subprocess that logs to logger
+- cmd = "rsync -rltDv --copy-unsafe-links --delete-after %s --delete --exclude-from=/etc/cobbler/rsync.exclude %s %s" % (spacer, repo.mirror, dest_path)
++ cmd = "rsync -rltDv --copy-unsafe-links --delete-after %s --delete --exclude-from=/etc/cobbler/rsync.exclude '%s' '%s'" % (spacer, repo.mirror, dest_path)
+ rc = utils.subprocess_call(self.logger, cmd)
+
+ if rc !=0:
License: GPLv2+
AutoReq: no
Version: 2.6.9
-Release: 1%{?dist}~mos12
+Release: 1%{?dist}~mos13
Source0: https://github.com/cobbler/cobbler/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source1: cobblerd.logrotate
# Support newer virt-install - https://bugzilla.redhat.com/show_bug.cgi?id=1188424
Patch3: Mirantis-Add-ALLOWED_HOSTS-for-settings.patch
# Bugfix for mangling kernel options with the key --in-place
Patch4: Mirantis-mangling-kopts-bugfix.patch
+# Bugfix for cve-2017-1000469
+Patch5: Mirantis-cve-2017-1000469.patch
Group: Applications/System
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
%patch2 -p1 -b .django17
%patch3 -p1
%patch4 -p1
+%patch5 -p1
%endif
%build
%changelog
+* Tue Feb 6 2018 Denis Meltsaykin <dmeltsaykin@mirantis.com> - 2.6.9-1~mos13
+- Fix for CVE-2017-1000469
+
* Wed Jul 27 2016 Albert Syriy <mos-linux-team@mirantis.com> - 2.6.9-1~mos11
- Bug fix for mangling kernel options with the key --in-place LP#1603615