diff options
author | Randy MacLeod <randy.macleod@windriver.com> | 2018-09-05 14:15:06 -0400 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2018-09-05 13:59:16 -0700 |
commit | f83a6cfe667275be43347e8e0ffbb09c976b3807 (patch) | |
tree | e869d5736f27ef6494d9ae88dba9d6738d7d9917 /meta-networking | |
parent | 005093bac5d84be258409ffbd4d3ec0859996e2f (diff) | |
download | meta-openembedded-f83a6cfe667275be43347e8e0ffbb09c976b3807.tar.gz |
lftp: update from 4.8.3 to 4.8.4
Drop upstreamed CVE fix:
a27e07d9 mirror: prepend ./ to rm and chmod arguments to avoid URL recognition (fix #452)
Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-networking')
-rw-r--r-- | meta-networking/recipes-connectivity/lftp/files/CVE-2018-10916.patch | 82 | ||||
-rw-r--r-- | meta-networking/recipes-connectivity/lftp/lftp_4.8.4.bb (renamed from meta-networking/recipes-connectivity/lftp/lftp_4.8.3.bb) | 5 |
2 files changed, 2 insertions, 85 deletions
diff --git a/meta-networking/recipes-connectivity/lftp/files/CVE-2018-10916.patch b/meta-networking/recipes-connectivity/lftp/files/CVE-2018-10916.patch deleted file mode 100644 index c0e87d942..000000000 --- a/meta-networking/recipes-connectivity/lftp/files/CVE-2018-10916.patch +++ /dev/null | |||
@@ -1,82 +0,0 @@ | |||
1 | From a27e07d90a4608ceaf928b1babb27d4d803e1992 Mon Sep 17 00:00:00 2001 | ||
2 | From: "Alexander V. Lukyanov" <lavv17f@gmail.com> | ||
3 | Date: Tue, 31 Jul 2018 10:57:35 +0300 | ||
4 | Subject: [PATCH] mirror: prepend ./ to rm and chmod arguments to avoid URL | ||
5 | recognition (fix #452) | ||
6 | |||
7 | CVE: CVE-2018-10916 | ||
8 | Upstream-Status: Backport from v4.8.4 | ||
9 | |||
10 | Signed-off-by: Jagadeesh Krishnanjanappa <jkrishnanjanappa@mvista.com> | ||
11 | --- | ||
12 | src/MirrorJob.cc | 24 +++++++++--------------- | ||
13 | 1 file changed, 9 insertions(+), 15 deletions(-) | ||
14 | |||
15 | diff --git a/src/MirrorJob.cc b/src/MirrorJob.cc | ||
16 | index cf106c40..0be45431 100644 | ||
17 | --- a/src/MirrorJob.cc | ||
18 | +++ b/src/MirrorJob.cc | ||
19 | @@ -1164,24 +1164,21 @@ int MirrorJob::Do() | ||
20 | } | ||
21 | continue; | ||
22 | } | ||
23 | + bool use_rmdir = (file->TypeIs(file->DIRECTORY) | ||
24 | + && recursion_mode==RECURSION_NEVER); | ||
25 | if(script) | ||
26 | { | ||
27 | - ArgV args("rm"); | ||
28 | - if(file->TypeIs(file->DIRECTORY)) | ||
29 | - { | ||
30 | - if(recursion_mode==RECURSION_NEVER) | ||
31 | - args.setarg(0,"rmdir"); | ||
32 | - else | ||
33 | - args.Append("-r"); | ||
34 | - } | ||
35 | + ArgV args(use_rmdir?"rmdir":"rm"); | ||
36 | + if(file->TypeIs(file->DIRECTORY) && !use_rmdir) | ||
37 | + args.Append("-r"); | ||
38 | args.Append(target_session->GetFileURL(file->name)); | ||
39 | xstring_ca cmd(args.CombineQuoted()); | ||
40 | fprintf(script,"%s\n",cmd.get()); | ||
41 | } | ||
42 | if(!script_only) | ||
43 | { | ||
44 | - ArgV *args=new ArgV("rm"); | ||
45 | - args->Append(file->name); | ||
46 | + ArgV *args=new ArgV(use_rmdir?"rmdir":"rm"); | ||
47 | + args->Append(dir_file(".",file->name)); | ||
48 | args->seek(1); | ||
49 | rmJob *j=new rmJob(target_session->Clone(),args); | ||
50 | args->CombineTo(j->cmdline); | ||
51 | @@ -1189,10 +1186,7 @@ int MirrorJob::Do() | ||
52 | if(file->TypeIs(file->DIRECTORY)) | ||
53 | { | ||
54 | if(recursion_mode==RECURSION_NEVER) | ||
55 | - { | ||
56 | - args->setarg(0,"rmdir"); | ||
57 | j->Rmdir(); | ||
58 | - } | ||
59 | else | ||
60 | j->Recurse(); | ||
61 | } | ||
62 | @@ -1258,7 +1252,7 @@ int MirrorJob::Do() | ||
63 | if(!script_only) | ||
64 | { | ||
65 | ArgV *a=new ArgV("chmod"); | ||
66 | - a->Append(file->name); | ||
67 | + a->Append(dir_file(".",file->name)); | ||
68 | a->seek(1); | ||
69 | ChmodJob *cj=new ChmodJob(target_session->Clone(), | ||
70 | file->mode&~mode_mask,a); | ||
71 | @@ -1380,7 +1374,7 @@ int MirrorJob::Do() | ||
72 | if(!script_only) | ||
73 | { | ||
74 | ArgV *args=new ArgV("rm"); | ||
75 | - args->Append(file->name); | ||
76 | + args->Append(dir_file(".",file->name)); | ||
77 | args->seek(1); | ||
78 | rmJob *j=new rmJob(source_session->Clone(),args); | ||
79 | args->CombineTo(j->cmdline); | ||
80 | -- | ||
81 | 2.13.3 | ||
82 | |||
diff --git a/meta-networking/recipes-connectivity/lftp/lftp_4.8.3.bb b/meta-networking/recipes-connectivity/lftp/lftp_4.8.4.bb index e0b6bebad..bf793d91d 100644 --- a/meta-networking/recipes-connectivity/lftp/lftp_4.8.3.bb +++ b/meta-networking/recipes-connectivity/lftp/lftp_4.8.4.bb | |||
@@ -8,10 +8,9 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" | |||
8 | 8 | ||
9 | SRC_URI = "http://lftp.yar.ru/ftp/lftp-${PV}.tar.bz2 \ | 9 | SRC_URI = "http://lftp.yar.ru/ftp/lftp-${PV}.tar.bz2 \ |
10 | file://fix-gcc-6-conflicts-signbit.patch \ | 10 | file://fix-gcc-6-conflicts-signbit.patch \ |
11 | file://CVE-2018-10916.patch \ | ||
12 | " | 11 | " |
13 | SRC_URI[md5sum] = "12b1fcbf13f41e9cdb0903fc670fa1f1" | 12 | SRC_URI[md5sum] = "a56b5047dbfda052df4c1dfd197aa092" |
14 | SRC_URI[sha256sum] = "c4159f056afee41866a6c2d639655bc351e6d3486bbe7758eaedb24f6a4239d5" | 13 | SRC_URI[sha256sum] = "a853edbd075b008c315679c7882b6dcc6821ed2365d2ed843a412acd3d40da0e" |
15 | 14 | ||
16 | inherit autotools gettext pkgconfig | 15 | inherit autotools gettext pkgconfig |
17 | 16 | ||