initial buildroot for linux 5.15
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
From c060e6f06a81ffa400266a6d0bfc58511265a16f Mon Sep 17 00:00:00 2001
|
||||
From: Olivier Singla <olivier.singla@gmail.com>
|
||||
Date: Thu, 4 Aug 2016 21:23:41 +0200
|
||||
Subject: [PATCH] Makefile: disable always building statically
|
||||
|
||||
Signed-off-by: Olivier Singla <olivier.singla@gmail.com>
|
||||
---
|
||||
Makefile.am | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/Makefile.am b/Makefile.am
|
||||
index 7b8e7ab..5c4c71e 100644
|
||||
--- a/Makefile.am
|
||||
+++ b/Makefile.am
|
||||
@@ -126,7 +126,7 @@ BUILT_SOURCES = shellinabox/beep.h \
|
||||
|
||||
shellinaboxd_LDADD = liblogging.la \
|
||||
libhttp.la
|
||||
-shellinaboxd_LDFLAGS = -static
|
||||
+shellinaboxd_LDFLAGS =
|
||||
## Added this for compatibility with older versions of autoconf/automake
|
||||
docdir = ${datadir}/doc/${PACKAGE}
|
||||
|
||||
--
|
||||
2.7.4
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
From 7f47efe1717c381f86566fabe0b1ced8cb98fe8f Mon Sep 17 00:00:00 2001
|
||||
From: irsl <irsl@users.noreply.github.com>
|
||||
Date: Fri, 26 Oct 2018 11:51:15 +0200
|
||||
Subject: [PATCH] fix for broken multipart/form-data
|
||||
|
||||
Malformed multipart/form-data payload results in infinite loop and thus denial of service
|
||||
[Upstream status: https://github.com/shellinabox/shellinabox/pull/446]
|
||||
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
---
|
||||
libhttp/url.c | 3 +++
|
||||
1 file changed, 3 insertions(+)
|
||||
|
||||
diff --git a/libhttp/url.c b/libhttp/url.c
|
||||
index ed29475..4177871 100644
|
||||
--- a/libhttp/url.c
|
||||
+++ b/libhttp/url.c
|
||||
@@ -312,6 +312,9 @@ static void urlParsePostBody(struct URL *url,
|
||||
}
|
||||
}
|
||||
}
|
||||
+ } else {
|
||||
+ warn("[http] broken multipart/form-data!");
|
||||
+ break;
|
||||
}
|
||||
}
|
||||
if (lastPart) {
|
||||
@@ -0,0 +1,18 @@
|
||||
config BR2_PACKAGE_SHELLINABOX
|
||||
bool "shellinabox"
|
||||
depends on BR2_USE_MMU # fork()
|
||||
depends on !BR2_STATIC_LIBS # dlfcn.h
|
||||
select BR2_PACKAGE_OPENSSL
|
||||
select BR2_PACKAGE_ZLIB
|
||||
help
|
||||
Shell In A Box implements a web server that can export
|
||||
arbitrary command line tools to a web based terminal
|
||||
emulator. This emulator is accessible to any JavaScript and
|
||||
CSS enabled web browser and does not require any additional
|
||||
browser plugins.
|
||||
|
||||
https://github.com/shellinabox/shellinabox
|
||||
|
||||
comment "shellinabox needs a toolchain w/ dynamic library"
|
||||
depends on BR2_USE_MMU
|
||||
depends on BR2_STATIC_LIBS
|
||||
@@ -0,0 +1,4 @@
|
||||
# Locally calculated
|
||||
sha256 27a5ec6c3439f87aee238c47cc56e7357a6249e5ca9ed0f044f0057ef389d81e shellinabox-2.20.tar.gz
|
||||
sha256 04ef60ab9b83cde6f0862ea18474454477efb34c52ebce1f8d8260a398a39362 COPYING
|
||||
sha256 ab15fd526bd8dd18a9e77ebc139656bf4d33e97fc7238cd11bf60e2b9b8666c6 GPL-2
|
||||
@@ -0,0 +1,33 @@
|
||||
################################################################################
|
||||
#
|
||||
# shellinabox
|
||||
#
|
||||
################################################################################
|
||||
|
||||
SHELLINABOX_VERSION = 2.20
|
||||
SHELLINABOX_SITE = $(call github,shellinabox,shellinabox,v$(SHELLINABOX_VERSION))
|
||||
SHELLINABOX_LICENSE = GPL-2.0 with OpenSSL exception
|
||||
SHELLINABOX_LICENSE_FILES = COPYING GPL-2
|
||||
SHELLINABOX_CPE_ID_VENDOR = shellinabox_project
|
||||
|
||||
# 0002-CVE-2018-16789-fix-for-broken-multipart-form-data.patch
|
||||
SHELLINABOX_IGNORE_CVES += CVE-2018-16789
|
||||
|
||||
# Fetching from Github, and patching Makefile.am, so we need to autoreconf
|
||||
SHELLINABOX_AUTORECONF = YES
|
||||
|
||||
# The OpenSSL support is supposed to be optional, but in practice,
|
||||
# with OpenSSL disabled, it fails to build. See
|
||||
# https://github.com/shellinabox/shellinabox/issues/385.
|
||||
SHELLINABOX_DEPENDENCIES = zlib openssl
|
||||
SHELLINABOX_CONF_OPTS = \
|
||||
--disable-runtime-loading \
|
||||
--enable-ssl
|
||||
|
||||
# musl's implementation of utmpx is a dummy one, and some aspects of
|
||||
# it cause build failures in shellinabox
|
||||
ifeq ($(BR2_TOOLCHAIN_USES_MUSL),y)
|
||||
SHELLINABOX_CONF_OPTS += --disable-utmp
|
||||
endif
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user