Skip to content

fix: remove description while writing out mod file#8485

Merged
awesomenix merged 2 commits into
official/v20260505from
nishp/hotfix/0505
May 9, 2026
Merged

fix: remove description while writing out mod file#8485
awesomenix merged 2 commits into
official/v20260505from
nishp/hotfix/0505

Conversation

@awesomenix
Copy link
Copy Markdown
Contributor

hotfix

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Removes the human-readable description/comment line from the generated /etc/modprobe.d/disable-<module>.conf files written by disableVulnerableKernelModule() in the Linux CSE (cse_main.sh), and updates the corresponding ShellSpec test to match.

Changes:

  • Update disableVulnerableKernelModule() to write only the install ... /bin/false and blacklist ... directives (no leading # <description> line).
  • Adjust ShellSpec expectations to stop asserting the CVE description is present in the generated modprobe config.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
parts/linux/cloud-init/artifacts/cse_main.sh Removes writing the description comment into the modprobe.d config while keeping the functional directives.
spec/parts/linux/cloud-init/artifacts/cse_main_disable_modules_spec.sh Updates unit test to no longer expect the CVE string in the generated config file.

@Devinwong
Copy link
Copy Markdown
Collaborator

In check-in gate e2e,
Error: failed to resolve 3.0.20251021: Get "https://mcr.microsoft.com/v2/azurelinux/3.0/image/osguard/manifests/3.0.20251021": tls: failed to verify certificate: x509: certificate signed by unknown authority

@awesomenix awesomenix merged commit 0be04a4 into official/v20260505 May 9, 2026
24 of 27 checks passed
@awesomenix awesomenix deleted the nishp/hotfix/0505 branch May 9, 2026 23:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants