* [Buildroot] [PATCH 1/4] busybox: add/update 1.18.1 fixes for hush, mkswap, modprobe, tftp and procps
@ 2011-01-10 17:41 Gustavo Zacarias
2011-01-10 17:41 ` [Buildroot] [PATCH 2/4] webkit: security bump to version 1.2.6 Gustavo Zacarias
` (3 more replies)
0 siblings, 4 replies; 8+ messages in thread
From: Gustavo Zacarias @ 2011-01-10 17:41 UTC (permalink / raw)
To: buildroot
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
.../busybox-1.18.1/busybox-1.18.1-hush.patch | 28 ++++++--
.../busybox-1.18.1/busybox-1.18.1-mkswap.patch | 12 +++
.../busybox-1.18.1-modprobe-small.patch | 21 ++++++
.../busybox-1.18.1/busybox-1.18.1-tftp.patch | 72 ++++++++++++++++++++
.../busybox-1.18.1/busybox-1.18.1-warning.patch | 28 ++++++++
5 files changed, 156 insertions(+), 5 deletions(-)
create mode 100644 package/busybox/busybox-1.18.1/busybox-1.18.1-mkswap.patch
create mode 100644 package/busybox/busybox-1.18.1/busybox-1.18.1-modprobe-small.patch
create mode 100644 package/busybox/busybox-1.18.1/busybox-1.18.1-tftp.patch
create mode 100644 package/busybox/busybox-1.18.1/busybox-1.18.1-warning.patch
diff --git a/package/busybox/busybox-1.18.1/busybox-1.18.1-hush.patch b/package/busybox/busybox-1.18.1/busybox-1.18.1-hush.patch
index 3e189a9..5281a52 100644
--- a/package/busybox/busybox-1.18.1/busybox-1.18.1-hush.patch
+++ b/package/busybox/busybox-1.18.1/busybox-1.18.1-hush.patch
@@ -1,6 +1,6 @@
diff -urpN busybox-1.18.1/shell/hush.c busybox-1.18.1-hush/shell/hush.c
--- busybox-1.18.1/shell/hush.c 2010-12-21 05:31:04.000000000 +0100
-+++ busybox-1.18.1-hush/shell/hush.c 2010-12-21 21:20:02.493651813 +0100
++++ busybox-1.18.1-hush/shell/hush.c 2011-01-07 14:59:19.649956156 +0100
@@ -913,7 +913,7 @@ static const struct built_in_command blt
*/
#if HUSH_DEBUG
@@ -177,7 +177,25 @@ diff -urpN busybox-1.18.1/shell/hush.c busybox-1.18.1-hush/shell/hush.c
prn++;
}
pi = pi->next;
-@@ -7445,7 +7461,7 @@ int hush_main(int argc, char **argv)
+@@ -4106,7 +4122,16 @@ static struct pipe *parse_stream(char **
+ if (IS_NULL_CMD(ctx.command)
+ && dest.length == 0 && !dest.has_quoted_part
+ ) {
+- continue;
++ /* This newline can be ignored. But...
++ * without the below check, interactive shell
++ * will ignore even lines with bare <newline>,
++ * and show the continuation prompt:
++ * ps1_prompt$ <enter>
++ * ps2> _ <=== wrong prompt, should be ps1
++ */
++ struct pipe *pi = ctx.list_head;
++ if (pi->num_cmds != 0)
++ continue;
+ }
+ /* Treat newline as a command separator. */
+ done_pipe(&ctx, PIPE_SEQ);
+@@ -7445,7 +7470,7 @@ int hush_main(int argc, char **argv)
unsigned builtin_argc;
char **e;
struct variable *cur_var;
@@ -186,7 +204,7 @@ diff -urpN busybox-1.18.1/shell/hush.c busybox-1.18.1-hush/shell/hush.c
INIT_G();
if (EXIT_SUCCESS) /* if EXIT_SUCCESS == 0, it is already done */
-@@ -7454,17 +7470,17 @@ int hush_main(int argc, char **argv)
+@@ -7454,17 +7479,17 @@ int hush_main(int argc, char **argv)
G.argv0_for_re_execing = argv[0];
#endif
/* Deal with HUSH_VERSION */
@@ -209,7 +227,7 @@ diff -urpN busybox-1.18.1/shell/hush.c busybox-1.18.1-hush/shell/hush.c
cur_var = G.top_var;
e = environ;
if (e) while (*e) {
-@@ -7479,8 +7495,8 @@ int hush_main(int argc, char **argv)
+@@ -7479,8 +7504,8 @@ int hush_main(int argc, char **argv)
e++;
}
/* (Re)insert HUSH_VERSION into env (AFTER we scanned the env!) */
@@ -220,7 +238,7 @@ diff -urpN busybox-1.18.1/shell/hush.c busybox-1.18.1-hush/shell/hush.c
/* Export PWD */
set_pwd_var(/*exp:*/ 1);
-@@ -7840,18 +7856,6 @@ int hush_main(int argc, char **argv)
+@@ -7840,18 +7865,6 @@ int hush_main(int argc, char **argv)
parse_and_run_file(stdin);
final_return:
diff --git a/package/busybox/busybox-1.18.1/busybox-1.18.1-mkswap.patch b/package/busybox/busybox-1.18.1/busybox-1.18.1-mkswap.patch
new file mode 100644
index 0000000..41dff57
--- /dev/null
+++ b/package/busybox/busybox-1.18.1/busybox-1.18.1-mkswap.patch
@@ -0,0 +1,12 @@
+diff -urpN busybox-1.18.1/util-linux/mkswap.c busybox-1.18.1-mkswap/util-linux/mkswap.c
+--- busybox-1.18.1/util-linux/mkswap.c 2010-12-20 01:41:27.000000000 +0100
++++ busybox-1.18.1-mkswap/util-linux/mkswap.c 2011-01-05 11:41:24.455856773 +0100
+@@ -15,7 +15,7 @@ static void mkswap_selinux_setcontext(in
+ if (!is_selinux_enabled())
+ return;
+
+- xfstat(fd, &stbuf, argv[0]);
++ xfstat(fd, &stbuf, path);
+ if (S_ISREG(stbuf.st_mode)) {
+ security_context_t newcon;
+ security_context_t oldcon = NULL;
diff --git a/package/busybox/busybox-1.18.1/busybox-1.18.1-modprobe-small.patch b/package/busybox/busybox-1.18.1/busybox-1.18.1-modprobe-small.patch
new file mode 100644
index 0000000..c1d5615
--- /dev/null
+++ b/package/busybox/busybox-1.18.1/busybox-1.18.1-modprobe-small.patch
@@ -0,0 +1,21 @@
+diff -urpN busybox-1.18.1/modutils/modprobe-small.c busybox-1.18.1-modprobe-small/modutils/modprobe-small.c
+--- busybox-1.18.1/modutils/modprobe-small.c 2010-12-20 01:41:27.000000000 +0100
++++ busybox-1.18.1-modprobe-small/modutils/modprobe-small.c 2011-01-09 21:00:26.000000000 +0100
+@@ -844,13 +844,15 @@ int modprobe_main(int argc UNUSED_PARAM,
+ void *map;
+
+ len = MAXINT(ssize_t);
+- map = xmalloc_xopen_read_close(*argv, &len);
++ map = xmalloc_open_zipped_read_close(*argv, &len);
+ if (init_module(map, len,
+ IF_FEATURE_MODPROBE_SMALL_OPTIONS_ON_CMDLINE(options ? options : "")
+ IF_NOT_FEATURE_MODPROBE_SMALL_OPTIONS_ON_CMDLINE("")
+- ) != 0)
++ ) != 0
++ ) {
+ bb_error_msg_and_die("can't insert '%s': %s",
+ *argv, moderror(errno));
++ }
+ return 0;
+ }
+
diff --git a/package/busybox/busybox-1.18.1/busybox-1.18.1-tftp.patch b/package/busybox/busybox-1.18.1/busybox-1.18.1-tftp.patch
new file mode 100644
index 0000000..b038ea8
--- /dev/null
+++ b/package/busybox/busybox-1.18.1/busybox-1.18.1-tftp.patch
@@ -0,0 +1,72 @@
+diff -urpN busybox-1.18.1/networking/tftp.c busybox-1.18.1-tftp/networking/tftp.c
+--- busybox-1.18.1/networking/tftp.c 2010-12-20 01:41:27.000000000 +0100
++++ busybox-1.18.1-tftp/networking/tftp.c 2011-01-10 12:50:02.687941194 +0100
+@@ -105,39 +105,22 @@ struct BUG_G_too_big {
+ #define error_pkt_str (error_pkt + 4)
+
+ #if ENABLE_FEATURE_TFTP_PROGRESS_BAR
+-/* SIGALRM logic nicked from the wget applet */
+-static void progress_meter(int flag)
++static void tftp_progress_update(void)
+ {
+- /* We can be called from signal handler */
+- int save_errno = errno;
+-
+- if (flag == -1) { /* first call to progress_meter */
+- bb_progress_init(&G.pmt);
+- }
+-
+ bb_progress_update(&G.pmt, G.file, 0, G.pos, G.size);
+-
+- if (flag == 0) {
+- /* last call to progress_meter */
+- alarm(0);
+- bb_putchar_stderr('\n');
+- } else {
+- if (flag == -1) { /* first call to progress_meter */
+- signal_SA_RESTART_empty_mask(SIGALRM, progress_meter);
+- }
+- alarm(1);
+- }
+-
+- errno = save_errno;
+ }
+ static void tftp_progress_init(void)
+ {
+- progress_meter(-1);
++ bb_progress_init(&G.pmt);
++ tftp_progress_update();
+ }
+ static void tftp_progress_done(void)
+ {
+- if (G.pmt.inited)
+- progress_meter(0);
++ if (G.pmt.inited) {
++ tftp_progress_update();
++ bb_putchar_stderr('\n');
++ G.pmt.inited = 0;
++ }
+ }
+ #else
+ # define tftp_progress_init() ((void)0)
+@@ -460,9 +443,10 @@ static int tftp_protocol(
+ xsendto(socket_fd, xbuf, send_len, &peer_lsa->u.sa, peer_lsa->len);
+
+ #if ENABLE_FEATURE_TFTP_PROGRESS_BAR
+- if (ENABLE_TFTP && remote_file) { /* tftp */
++ if (ENABLE_TFTP && remote_file) /* tftp */
+ G.pos = (block_nr - 1) * (uoff_t)blksize;
+- }
++ if (G.pmt.inited)
++ tftp_progress_update();
+ #endif
+ /* Was it final ACK? then exit */
+ if (finished && (opcode == TFTP_ACK))
+@@ -479,6 +463,7 @@ static int tftp_protocol(
+ case 0:
+ retries--;
+ if (retries == 0) {
++ tftp_progress_done();
+ bb_error_msg("timeout");
+ goto ret; /* no err packet sent */
+ }
diff --git a/package/busybox/busybox-1.18.1/busybox-1.18.1-warning.patch b/package/busybox/busybox-1.18.1/busybox-1.18.1-warning.patch
new file mode 100644
index 0000000..cda94bd
--- /dev/null
+++ b/package/busybox/busybox-1.18.1/busybox-1.18.1-warning.patch
@@ -0,0 +1,28 @@
+diff -urpN busybox-1.18.1/libbb/procps.c busybox-1.18.1-warning/libbb/procps.c
+--- busybox-1.18.1/libbb/procps.c 2010-12-21 05:29:45.000000000 +0100
++++ busybox-1.18.1-warning/libbb/procps.c 2011-01-07 13:41:22.000000000 +0100
+@@ -154,6 +154,7 @@ static unsigned long fast_strtoul_10(cha
+ return n;
+ }
+
++# if ENABLE_FEATURE_FAST_TOP
+ static long fast_strtol_10(char **endptr)
+ {
+ if (**endptr != '-')
+@@ -162,6 +163,7 @@ static long fast_strtol_10(char **endptr
+ (*endptr)++;
+ return - (long)fast_strtoul_10(endptr);
+ }
++# endif
+
+ static char *skip_fields(char *str, int count)
+ {
+@@ -448,7 +450,7 @@ procps_status_t* FAST_FUNC procps_scan(p
+ //FIXME: is it safe to assume this field exists?
+ sp->last_seen_on_cpu = fast_strtoul_10(&cp);
+ # endif
+-#endif /* end of !ENABLE_FEATURE_TOP_SMP_PROCESS */
++#endif /* FEATURE_FAST_TOP */
+
+ #if ENABLE_FEATURE_PS_ADDITIONAL_COLUMNS
+ sp->niceness = tasknice;
--
1.7.3.4
^ permalink raw reply related [flat|nested] 8+ messages in thread* [Buildroot] [PATCH 2/4] webkit: security bump to version 1.2.6
2011-01-10 17:41 [Buildroot] [PATCH 1/4] busybox: add/update 1.18.1 fixes for hush, mkswap, modprobe, tftp and procps Gustavo Zacarias
@ 2011-01-10 17:41 ` Gustavo Zacarias
2011-01-11 8:13 ` Peter Korsgaard
2011-01-10 17:41 ` [Buildroot] [PATCH 3/4] iptables: install to staging Gustavo Zacarias
` (2 subsequent siblings)
3 siblings, 1 reply; 8+ messages in thread
From: Gustavo Zacarias @ 2011-01-10 17:41 UTC (permalink / raw)
To: buildroot
Bump to version 1.2.6 which includes security fixes for:
CVE-2010-1791, CVE-2010-3812, CVE-2010-3813, CVE-2010-4197,
CVE-2010-4198, CVE-2010-4204 and CVE-2010-4206.
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
package/webkit/webkit.mk | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/package/webkit/webkit.mk b/package/webkit/webkit.mk
index 7a5429c..6ab609b 100644
--- a/package/webkit/webkit.mk
+++ b/package/webkit/webkit.mk
@@ -4,7 +4,7 @@
#
#############################################################
-WEBKIT_VERSION = 1.2.5
+WEBKIT_VERSION = 1.2.6
WEBKIT_SITE = http://www.webkitgtk.org
WEBKIT_INSTALL_STAGING = YES
WEBKIT_DEPENDENCIES = host-flex host-gperf icu libcurl libxml2 libxslt \
--
1.7.3.4
^ permalink raw reply related [flat|nested] 8+ messages in thread* [Buildroot] [PATCH 3/4] iptables: install to staging
2011-01-10 17:41 [Buildroot] [PATCH 1/4] busybox: add/update 1.18.1 fixes for hush, mkswap, modprobe, tftp and procps Gustavo Zacarias
2011-01-10 17:41 ` [Buildroot] [PATCH 2/4] webkit: security bump to version 1.2.6 Gustavo Zacarias
@ 2011-01-10 17:41 ` Gustavo Zacarias
2011-01-11 8:13 ` Peter Korsgaard
2011-01-10 17:41 ` [Buildroot] [PATCH 4/4] iproute2: bump to version 2.6.37 + fixes Gustavo Zacarias
2011-01-11 8:12 ` [Buildroot] [PATCH 1/4] busybox: add/update 1.18.1 fixes for hush, mkswap, modprobe, tftp and procps Peter Korsgaard
3 siblings, 1 reply; 8+ messages in thread
From: Gustavo Zacarias @ 2011-01-10 17:41 UTC (permalink / raw)
To: buildroot
Install iptables to staging so we can build iproute2 with filtering.
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
package/iptables/iptables.mk | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/package/iptables/iptables.mk b/package/iptables/iptables.mk
index 1ec2c85..b06ab71 100644
--- a/package/iptables/iptables.mk
+++ b/package/iptables/iptables.mk
@@ -3,9 +3,12 @@
# iptables
#
#############################################################
+
IPTABLES_VERSION = 1.4.10
IPTABLES_SOURCE = iptables-$(IPTABLES_VERSION).tar.bz2
IPTABLES_SITE = http://ftp.netfilter.org/pub/iptables
+IPTABLES_INSTALL_STAGING = YES
+IPTABLES_AUTORECONF = YES
IPTABLES_DEPENDENCIES = host-pkg-config
IPTABLES_CONF_OPT = --libexecdir=/usr/lib --with-kernel=$(LINUX_HEADERS_DIR)
@@ -13,8 +16,6 @@ ifneq ($(BR2_INET_IPV6),y)
IPTABLES_CONF_OPT += --disable-ipv6
endif
-IPTABLES_AUTORECONF = YES
-
define IPTABLES_TARGET_SYMLINK_CREATE
ln -sf iptables-multi $(TARGET_DIR)/usr/sbin/iptables
ln -sf iptables-multi $(TARGET_DIR)/usr/sbin/iptables-save
--
1.7.3.4
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [Buildroot] [PATCH 4/4] iproute2: bump to version 2.6.37 + fixes
2011-01-10 17:41 [Buildroot] [PATCH 1/4] busybox: add/update 1.18.1 fixes for hush, mkswap, modprobe, tftp and procps Gustavo Zacarias
2011-01-10 17:41 ` [Buildroot] [PATCH 2/4] webkit: security bump to version 1.2.6 Gustavo Zacarias
2011-01-10 17:41 ` [Buildroot] [PATCH 3/4] iptables: install to staging Gustavo Zacarias
@ 2011-01-10 17:41 ` Gustavo Zacarias
2011-01-11 8:13 ` Peter Korsgaard
2011-01-11 8:12 ` [Buildroot] [PATCH 1/4] busybox: add/update 1.18.1 fixes for hush, mkswap, modprobe, tftp and procps Peter Korsgaard
3 siblings, 1 reply; 8+ messages in thread
From: Gustavo Zacarias @ 2011-01-10 17:41 UTC (permalink / raw)
To: buildroot
Bump to version 2.6.37
Add iptables support when it's available.
ATM support requires linux-atm for which we don't have a package yet.
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
package/iproute2/iproute2.mk | 16 +++++++++++++---
1 files changed, 13 insertions(+), 3 deletions(-)
diff --git a/package/iproute2/iproute2.mk b/package/iproute2/iproute2.mk
index 0f99894..c3e9650 100644
--- a/package/iproute2/iproute2.mk
+++ b/package/iproute2/iproute2.mk
@@ -4,19 +4,29 @@
#
#############################################################
-IPROUTE2_VERSION = 2.6.35
+IPROUTE2_VERSION = 2.6.37
IPROUTE2_SOURCE = iproute2-$(IPROUTE2_VERSION).tar.bz2
IPROUTE2_SITE = http://devresources.linuxfoundation.org/dev/iproute2/download
IPROUTE2_TARGET_SBINS = ctstat genl ifstat ip lnstat nstat routef routel rtacct rtmon rtpr rtstat ss tc
+# If we've got iptables enable xtables support for tc
+ifeq ($(BR2_PACKAGE_IPTABLES),y)
+IPROUTE2_DEPENDENCIES += iptables
+define IPROUTE2_WITH_IPTABLES
+ # Makefile is busted so it never passes IPT_LIB_DIR properly
+ $(SED) "s/-DIPT/-DXT/" $(IPROUTE2_DIR)/tc/Makefile
+ echo "TC_CONFIG_XT:=y" >>$(IPROUTE2_DIR)/Config
+endef
+endif
+
define IPROUTE2_CONFIGURE_CMDS
# Use kernel headers
rm -r $(IPROUTE2_DIR)/include/netinet
# arpd needs berkeleydb
$(SED) "/^TARGETS=/s: arpd : :" $(IPROUTE2_DIR)/misc/Makefile
$(SED) "s:-O2:$(TARGET_CFLAGS):" $(IPROUTE2_DIR)/Makefile
- ( cd $(@D); ./configure )
- echo "IPT_LIB_DIR=/usr/lib/xtables" >>$(IPROUTE2_DIR)/Config
+ echo "IPT_LIB_DIR:=/usr/lib/xtables" >>$(IPROUTE2_DIR)/Config
+ $(IPROUTE2_WITH_IPTABLES)
endef
define IPROUTE2_BUILD_CMDS
--
1.7.3.4
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [Buildroot] [PATCH 1/4] busybox: add/update 1.18.1 fixes for hush, mkswap, modprobe, tftp and procps
2011-01-10 17:41 [Buildroot] [PATCH 1/4] busybox: add/update 1.18.1 fixes for hush, mkswap, modprobe, tftp and procps Gustavo Zacarias
` (2 preceding siblings ...)
2011-01-10 17:41 ` [Buildroot] [PATCH 4/4] iproute2: bump to version 2.6.37 + fixes Gustavo Zacarias
@ 2011-01-11 8:12 ` Peter Korsgaard
3 siblings, 0 replies; 8+ messages in thread
From: Peter Korsgaard @ 2011-01-11 8:12 UTC (permalink / raw)
To: buildroot
>>>>> "Gustavo" == Gustavo Zacarias <gustavo@zacarias.com.ar> writes:
Gustavo> Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Committed, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2011-01-11 8:13 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-10 17:41 [Buildroot] [PATCH 1/4] busybox: add/update 1.18.1 fixes for hush, mkswap, modprobe, tftp and procps Gustavo Zacarias
2011-01-10 17:41 ` [Buildroot] [PATCH 2/4] webkit: security bump to version 1.2.6 Gustavo Zacarias
2011-01-11 8:13 ` Peter Korsgaard
2011-01-10 17:41 ` [Buildroot] [PATCH 3/4] iptables: install to staging Gustavo Zacarias
2011-01-11 8:13 ` Peter Korsgaard
2011-01-10 17:41 ` [Buildroot] [PATCH 4/4] iproute2: bump to version 2.6.37 + fixes Gustavo Zacarias
2011-01-11 8:13 ` Peter Korsgaard
2011-01-11 8:12 ` [Buildroot] [PATCH 1/4] busybox: add/update 1.18.1 fixes for hush, mkswap, modprobe, tftp and procps Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox