File tree Expand file tree Collapse file tree
spec/parts/linux/cloud-init/artifacts Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ disableVulnerableKernelModule() {
6161 local mod=" $1 "
6262 local desc=" $2 "
6363
64- printf ' # %s\ninstall %s /bin/false\nblacklist %s\n' " $desc " " $mod " " $mod " > " /etc/modprobe.d/disable-${mod} .conf"
64+ printf ' install %s /bin/false\nblacklist %s\n' " $mod " " $mod " > " /etc/modprobe.d/disable-${mod} .conf"
6565
6666 if grep -q " ^${mod} " /proc/modules 2> /dev/null; then
6767 if modprobe -r " $mod " 2> /dev/null; then
Original file line number Diff line number Diff line change @@ -25,6 +25,16 @@ write_files:
2525 Any overridden files will be listed here - Hotfix mode
2626 Example: {{GetCSEHelpersScriptFilepath}}
2727
28+
29+ # ---- hotfix: auto-generated by hotfix-generate GH Action ----
30+ - path : /opt/azure/containers/provision.sh
31+ permissions : " 0744"
32+ encoding : gzip
33+ owner : root
34+ content : !!binary |
35+ {{GetVariableProperty "cloudInitData" "provisionScript"}}
36+
37+ # ---- end hotfix ----
2838{{- else }}
2939- path : {{GetCSEHelpersScriptFilepath}}
3040 permissions : " 0744"
Original file line number Diff line number Diff line change @@ -30,7 +30,6 @@ Describe 'disableVulnerableKernelModule()'
3030 The file " ${MODPROBE_DIR} /disable-algif_aead.conf" should be exist
3131 The contents of file " ${MODPROBE_DIR} /disable-algif_aead.conf" should include " install algif_aead /bin/false"
3232 The contents of file " ${MODPROBE_DIR} /disable-algif_aead.conf" should include " blacklist algif_aead"
33- The contents of file " ${MODPROBE_DIR} /disable-algif_aead.conf" should include " CVE-2026-31431"
3433 End
3534
3635 It ' creates separate config files per module'
You can’t perform that action at this time.
0 commit comments