Fix issue: rsyslog rate limit does not work on version 8.2110.0 (#11588)
#### Why I did it The default stable version of rsyslog on bullseye has a bug about rate limit. It causes rate limit not work. The bug has been fixed on backport version 8.2206.0-1~bpo11+1. Buster has no such issue. #### How I did it Upgrade rsyslog from 8.2110.0 to 8.2206.0-1~bpo11+1 #### How to verify it Manual test
This commit is contained in:
parent
16eaece11d
commit
736c739bf4
@ -331,7 +331,6 @@ sudo LANG=C DEBIAN_FRONTEND=noninteractive chroot $FILESYSTEM_ROOT apt-get -y in
|
||||
sysfsutils \
|
||||
squashfs-tools \
|
||||
grub2-common \
|
||||
rsyslog \
|
||||
screen \
|
||||
hping3 \
|
||||
tcptraceroute \
|
||||
@ -356,6 +355,10 @@ sudo LANG=C DEBIAN_FRONTEND=noninteractive chroot $FILESYSTEM_ROOT apt-get -y in
|
||||
jq \
|
||||
auditd
|
||||
|
||||
# default rsyslog version is 8.2110.0 which has a bug on log rate limit,
|
||||
# use backport version
|
||||
sudo LANG=C DEBIAN_FRONTEND=noninteractive chroot $FILESYSTEM_ROOT apt-get -t bullseye-backports -y install rsyslog
|
||||
|
||||
# Have systemd create the auditd log directory
|
||||
sudo mkdir -p ${FILESYSTEM_ROOT}/etc/systemd/system/auditd.service.d
|
||||
sudo tee ${FILESYSTEM_ROOT}/etc/systemd/system/auditd.service.d/log-directory.conf >/dev/null <<EOF
|
||||
|
@ -48,7 +48,6 @@ RUN apt-get update && \
|
||||
python3 \
|
||||
python3-distutils \
|
||||
python3-pip \
|
||||
rsyslog \
|
||||
vim-tiny \
|
||||
# Install redis-tools
|
||||
redis-tools \
|
||||
@ -65,6 +64,10 @@ RUN apt-get update && \
|
||||
libzmq5 \
|
||||
libwrap0
|
||||
|
||||
# default rsyslog version is 8.2110.0 which has a bug on log rate limit,
|
||||
# use backport version 8.2206.0-1~bpo11+1
|
||||
RUN apt-get -t bullseye-backports -y install rsyslog
|
||||
|
||||
# Upgrade pip via PyPI and uninstall the Debian version
|
||||
RUN pip3 install --upgrade pip
|
||||
RUN apt-get purge -y python3-pip
|
||||
|
Loading…
Reference in New Issue
Block a user