File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed
cli/src/pcluster/resources/imagebuilder Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change 11CHANGELOG
22=========
33
4+ 3.0.3
5+ -----
6+
7+ ** CHANGES**
8+ - Disable log4j-cve-2021 -44228-hotpatch service on Amazon Linux to avoid incurring in potential performance degradation.
9+
4103.0.2
511-----
612
Original file line number Diff line number Diff line change @@ -38,3 +38,19 @@ phases:
3838 /opt/aws/amazon-cloudwatch-agent/bin/amazon-cloudwatch-agent-ctl -a status | grep status | grep stopped
3939 [[ $? -ne 0 ]] && echo "amazon-cloudwatch-agent is not stopped" && exit 1
4040 echo "CloudWatch test passed"
41+
42+ - name : Log4jPatcher
43+ action : ExecuteBash
44+ inputs :
45+ commands :
46+ - |
47+ set -vx
48+ OS="{{ test.OperatingSystemName.outputs.stdout }}"
49+ if [[ ${OS} =~ ^alinux ]]; then
50+ echo "verify log4j-cve-2021-44228-hotpatch service is disabled"
51+ systemctl show -p SubState log4j-cve-2021-44228-hotpatch | grep -i -v running
52+ [[ $? -ne 0 ]] && echo "log4j-cve-2021-44228-hotpatch service is running" && exit 1
53+ systemctl show -p LoadState log4j-cve-2021-44228-hotpatch | grep -i "LoadState=masked"
54+ [[ $? -ne 0 ]] && echo "log4j-cve-2021-44228-hotpatch service is not masked" && exit 1
55+ fi
56+ echo "Log4jPatcher Group test passed"
You can’t perform that action at this time.
0 commit comments