curl: add a PACKAGECONFIG for librtmp
PATCH 1/2 curl: add a PACKAGECONFIG for librtmp
Otherwise this is a non-deterministic build dependency.
--- meta/recipes-support/curl/curl_7.37.1.bb | 1 + 1 file changed, 1 insertion(+)
meta/recipes-support/curl/curl_7.37.1.bb +1 -0
@@ -27,6 +27,7 @@ PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6," PACKAGECONFIG[ssl] = "--with-ssl --with-random=/dev/urandom,--without-ssl,openssl" PACKAGECONFIG[gnutls] = "--with-gnutls,--without-gnutls,gnutls" PACKAGECONFIG[zlib] = "--with-zlib=${STAGING_LIBDIR}/../,--without-zlib,zlib" +PACKAGECONFIG[rtmpdump] = "--with-librtmp,--without-librtmp,rtmpdump" EXTRA_OECONF = "--without-libssh2 \ --without-libidn \
Signature · 1 line
1.7.10.4
PATCH 2/2 bash: fix CVE-2014-6271
CVE-2014-6271 aka ShellShock.
"GNU Bash through 4.3 processes trailing strings after function definitions in the values of environment variables, which allows remote attackers to execute arbitrary code via a crafted environment."
--- .../bash/bash-3.2.48/cve-2014-6271.patch | 77 +++++++++++++ .../recipes-extended/bash/bash/cve-2014-6271.patch | 114 ++++++++++++++++++++ meta/recipes-extended/bash/bash_3.2.48.bb | 1 + meta/recipes-extended/bash/bash_4.3.bb | 1 + 4 files changed, 193 insertions(+) create mode 100644 meta/recipes-extended/bash/bash-3.2.48/cve-2014-6271.patch create mode 100644 meta/recipes-extended/bash/bash/cve-2014-6271.patch
meta/recipes-extended/bash/bash-3.2.48/cve-2014-6271.patch new file +77 -0
@@ -0,0 +1,77 @@ +Fix CVE-2014-6271, aka ShellShock. + +Upstream-Status: Backport +Signed-off-by: Ross Burton <[email protected]> + +*** ../bash-3.2.51/builtins/common.h 2006-03-06 09:38:44.000000000 -0500 +--- builtins/common.h 2014-09-16 19:08:02.000000000 -0400 +*************** +*** 34,37 **** +--- 34,39 ---- + + /* Flags for describe_command, shared between type.def and command.def */ ++ #define SEVAL_FUNCDEF 0x080 /* only allow function definitions */ ++ #define SEVAL_ONECMD 0x100 /* only allow a single command */ + #define CDESC_ALL 0x001 /* type -a */ + #define CDESC_SHORTDESC 0x002 /* command -V */ +*** ../bash-3.2.51/builtins/evalstring.c 2008-11-15 17:47:04.000000000 -0500 +--- builtins/evalstring.c 2014-09-16 19:08:02.000000000 -0400 +*************** +*** 235,238 **** +--- 235,246 ---- + struct fd_bitmap *bitmap; + ++ if ((flags & SEVAL_FUNCDEF) && command->type != cm_function_def) ++ { ++ internal_warning ("%s: ignoring function definition attempt", from_file); ++ should_jump_to_top_level = 0; ++ last_result = last_command_exit_value = EX_BADUSAGE; ++ break; ++ } ++ + bitmap = new_fd_bitmap (FD_BITMAP_SIZE); + begin_unwind_frame ("pe_dispose"); +*************** +*** 292,295 **** +--- 300,306 ---- + dispose_fd_bitmap (bitmap); + discard_unwind_frame ("pe_dispose"); ++ ++ if (flags & SEVAL_ONECMD) ++ break; + } + } +*** ../bash-3.2.51/variables.c 2008-11-15 17:15:06.000000000 -0500 +--- variables.c 2014-09-16 19:10:39.000000000 -0400 +*************** +*** 319,328 **** + strcpy (temp_string + char_index + 1, string); + +! parse_and_execute (temp_string, name, SEVAL_NONINT|SEVAL_NOHIST); +! +! /* Ancient backwards compatibility. Old versions of bash exported +! functions like name()=() {...} */ +! if (name[char_index - 1] == ')' && name[char_index - 2] == '(') +! name[char_index - 2] = '\0'; + + if (temp_var = find_function (name)) +--- 319,326 ---- + strcpy (temp_string + char_index + 1, string); + +! /* Don't import function names that are invalid identifiers from the +! environment. */ +! if (legal_identifier (name)) +! parse_and_execute (temp_string, name, SEVAL_NONINT|SEVAL_NOHIST|SEVAL_FUNCDEF|SEVAL_ONECMD); + + if (temp_var = find_function (name)) +*************** +*** 333,340 **** + else + report_error (_("error importing function definition for `%s'"), name); +- +- /* ( */ +- if (name[char_index - 1] == ')' && name[char_index - 2] == '\0') +- name[char_index - 2] = '('; /* ) */ + } + #if defined (ARRAY_VARS) +--- 331,334 ----
meta/recipes-extended/bash/bash/cve-2014-6271.patch new file +114 -0
114 lines not on this page · raw message
meta/recipes-extended/bash/bash_3.2.48.bb +1 -0
@@ -12,6 +12,7 @@ SRC_URI = "${GNU_MIRROR}/bash/bash-${PV}.tar.gz;name=tarball \ file://mkbuiltins_have_stringize.patch \ file://build-tests.patch \ file://test-output.patch \ + file://cve-2014-6271.patch;striplevel=0 \ file://run-ptest \ "
meta/recipes-extended/bash/bash_4.3.bb +1 -0
@@ -9,6 +9,7 @@ SRC_URI = "${GNU_MIRROR}/bash/${BPN}-${PV}.tar.gz;name=tarball \ file://mkbuiltins_have_stringize.patch \ file://build-tests.patch \ file://test-output.patch \ + file://cve-2014-6271.patch;striplevel=0 \ file://run-ptest \ "
Signature · 1 line
1.7.10.4
Op 26 sep. 2014, om 01:13 heeft Ross Burton <[email protected]> het volgende geschreven:
Quoted 12 lines
Otherwise this is a non-deterministic build dependency.
Signed-off-by Ross Burton <[email protected]>---
meta/recipes-support/curl/curl_7.37.1.bb | 1 +1 file changed, 1 insertion(+)meta/recipes-support/curl/curl_7.37.1.bb +0
-0@@ -27,6 +27,7 @@ PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6,"
Quoted 4 lines
PACKAGECONFIG[ssl] = "--with-ssl --with-random=/dev/urandom,--without-ssl,openssl" PACKAGECONFIG[gnutls] = "--with-gnutls,--without-gnutls,gnutls" PACKAGECONFIG[zlib] = "--with-zlib=${STAGING_LIBDIR}/../,--without-zlib,zlib" +PACKAGECONFIG[rtmpdump] = "--with-librtmp,--without-librtmp,rtmpdump"
Using librtmp has nasty legal consequences in various countries, is there a way to express that risk? Something analogous to the commercial license protection we have.
regards,
Koen
Quoted 9 lines · On Friday 26 September 2014 08:55:03 Koen Kooi wrote:
Op 26 sep. 2014, om 01:13 heeft Ross Burton <[email protected]> het volgende geschreven:
Quoted 7 lines
Otherwise this is a non-deterministic build dependency.
Signed-off-by Ross Burton <[email protected]>---
meta/recipes-support/curl/curl_7.37.1.bb | 1 +1 file changed, 1 insertion(+)
Quoted 15 lines
Quoted 11 lines
(quoted diff) +0
-0b/meta/recipes-support/curl/curl_7.37.1.bb index 8bcd9ba..e2852e3 100644
meta/recipes-support/curl/curl_7.37.1.bb +0
-0@@ -27,6 +27,7 @@ PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6,"PACKAGECONFIG[ssl] = "--with-ssl --with-random=/dev/urandom,--without-ssl,openssl" PACKAGECONFIG[gnutls] = "--with-gnutls,--without-gnutls,gnutls"
PACKAGECONFIG[zlib] = "--with-zlib=${STAGING_LIBDIR}/../,--without-zlib,zlib" +PACKAGECONFIG[rtmpdump] = "--with-librtmp,--without-librtmp,rtmpdump"Using librtmp has nasty legal consequences in various countries, is there a way to express that risk? Something analogous to the commercial license protection we have.
Maybe set LICENSE_FLAGS conditionally upon rtmpdump being in PACKAGECONFIG?
Cheers,
Paul
Signature · 2 lines
Paul Eggleton Intel Open Source Technology Centre
Quoted 1 line · Koen Kooi
Using librtmp has nasty legal consequences in various countries, is there a way to express that risk? Something analogous to the commercial license protection we have.
Agreed, but wouldn't that be something done in the rtmpdump recipe?
Ross
Quoted 6 lines · Ross
Quoted 3 lines · Koen Kooi
Using librtmp has nasty legal consequences in various countries, is there a way to express that risk? Something analogous to the commercial license protection we have.
Agreed, but wouldn't that be something done in the rtmpdump recipe?
Actually that would make more sense than what I suggested, yes.
Cheers,
Paul
Signature · 2 lines
Paul Eggleton Intel Open Source Technology Centre