Skip to content

Commit 0be04a4

Browse files
fix: remove description while writing out mod file (#8485)
Co-authored-by: aks-node-assistant[bot] <190555641+aks-node-assistant[bot]@users.noreply.github.com>
1 parent 5535675 commit 0be04a4

3 files changed

Lines changed: 11 additions & 2 deletions

File tree

parts/linux/cloud-init/artifacts/cse_main.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

parts/linux/cloud-init/nodecustomdata.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff 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"

spec/parts/linux/cloud-init/artifacts/cse_main_disable_modules_spec.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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'

0 commit comments

Comments
 (0)