Skip to content

Commit 0de4bff

Browse files
install busybox 1.36.1 in base redhat 8 (#664)
1 parent 07a7c86 commit 0de4bff

File tree

2 files changed

+30
-7
lines changed

2 files changed

+30
-7
lines changed

base/redhat-8/install.sh

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ export LANG=en_US.utf8
2828
# Install utility packages
2929
microdnf -y --nodocs install wget sudo shadow-utils procps tar make gcc \
3030
openssl-devel bzip2-devel libffi-devel findutils \
31-
libssh-devel libcurl-devel glib2-devel ncurses-devel
31+
libssh-devel libcurl-devel glib2-devel ncurses-devel \
32+
diffutils bzip2
3233
# Patch security updates
3334
microdnf -y --nodocs update gnutls kernel-headers libdnf librepo libnghttp2 nettle \
3435
libpwquality libxml2 systemd-libs lz4-libs curl \
@@ -39,6 +40,18 @@ microdnf -y --nodocs update gnutls kernel-headers libdnf librepo libnghttp2 nett
3940
# Reinstall tzdata (originally stripped from minimal image): https://bugzilla.redhat.com/show_bug.cgi?id=1903219
4041
microdnf -y --nodocs reinstall tzdata || microdnf -y --nodocs update tzdata
4142

43+
# Build and install busybox direct from the multiarch since EPEL isn't available yet for redhat8
44+
cd ~
45+
wget https://busybox.net/downloads/busybox-1.36.1.tar.bz2
46+
bzip2 -d busybox-1.36.1.tar.bz2
47+
tar -xf busybox-1.36.1.tar
48+
cd busybox-1.36.1
49+
make defconfig
50+
make
51+
cp busybox /bin/busybox
52+
cd ~
53+
rm -rf busybox-1.36.1.tar busybox-1.36.1/
54+
4255
# Install Python and necessary packages
4356
PY_SHORT=${PYTHON_VERSION%.*}
4457
wget -O /tmp/python.tgz https://www.python.org/ftp/python/${PYTHON_VERSION}/Python-${PYTHON_VERSION}.tgz
@@ -74,14 +87,9 @@ ldconfig
7487
microdnf remove -y make gcc openssl-devel bzip2-devel findutils glib2-devel glibc-devel cpp binutils \
7588
keyutils-libs-devel krb5-devel libcom_err-devel libffi-devel libcurl-devel \
7689
libselinux-devel libsepol-devel libssh-devel libverto-devel libxcrypt-devel \
77-
ncurses-devel pcre2-devel zlib-devel
90+
ncurses-devel pcre2-devel zlib-devel diffutils bzip2
7891
microdnf clean all
7992

80-
# Install busybox direct from the multiarch since EPEL isn't available yet for redhat8
81-
BUSYBOX_URL=${BUSYBOX_URL:=https://busybox.net/downloads/binaries/1.35.0-`arch`-linux-musl/busybox}
82-
wget -O /bin/busybox ${BUSYBOX_URL}
83-
chmod +x /bin/busybox
84-
8593
# Enable busybox symlinks
8694
cd /bin
8795
BBOX_LINKS=( clear find diff hostname killall netstat nslookup ping ping6 readline route syslogd tail traceroute vi )

docs/CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Red Hat images will continue to be published.
1414
* [9.2.0.1](#9201)
1515
* [9.2.0](#920)
1616
* [9.1.4](#914)
17+
* [9.1.3-patch1](#913p1)
1718
* [9.1.3](#913)
1819
* [9.1.2](#912)
1920
* [9.1.1](#911)
@@ -159,6 +160,20 @@ Red Hat images will continue to be published.
159160

160161
---
161162

163+
## 9.1.3-patch1
164+
165+
#### What's New?
166+
* Install busybox 1.36.1 for remediation of CVE-2022-28391 and CVE-2022-30065
167+
168+
#### docker-splunk changes:
169+
* Bumping Splunk version. For details, see [Fixed issues for 9.1.3](https://docs.splunk.com/Documentation/Splunk/9.1.3/ReleaseNotes/Fixedissues#Splunk_Enterprise_9.1.3)
170+
171+
#### splunk-ansible changes:
172+
* Docs updated
173+
* Bugfixes
174+
175+
---
176+
162177
## 9.1.3
163178

164179
#### What's New?

0 commit comments

Comments
 (0)