fix(azurelinux-release): deny network modules for CIS - #18560
Conversation
There was a problem hiding this comment.
Pull request overview
Adds default CIS hardening to block unused ATM, CAN, TIPC, and SCTP kernel modules.
Changes:
- Adds and packages a modprobe denylist.
- Bumps
azurelinux-releaseto release 27. - Refreshes generated output and component lock.
Reviewed changes
Copilot reviewed 4 out of 5 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
base/comps/azurelinux-release/azurelinux-release.spec |
Packages the policy and bumps release. |
base/comps/azurelinux-release/60-azurelinux-cis-module-denylist.conf |
Defines module restrictions. |
specs/a/azurelinux-release/azurelinux-release.spec |
Rendered package specification. |
specs/a/azurelinux-release/60-azurelinux-cis-module-denylist.conf |
Rendered policy file. |
locks/azurelinux-release.lock |
Refreshes the component fingerprint. |
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
3dabdb2 to
97c3df6
Compare
|
/azp run |
|
Azure Pipelines: 2 pipeline(s) were filtered out due to trigger conditions. |
97c3df6 to
1795a46
Compare
|
/azp run |
|
Azure Pipelines: 2 pipeline(s) were filtered out due to trigger conditions. |
Christopher Co (christopherco)
left a comment
There was a problem hiding this comment.
One question. Rest looks good.
| @@ -0,0 +1,14 @@ | |||
| # Deny unused network protocol modules by default. Administrators can override | |||
| # this policy in a later modprobe.d configuration file when a protocol is needed. | |||
There was a problem hiding this comment.
question (blocking): Can a later modprobe.d configuration undo this denylist?
I think kmod uses the first matching install directive , and blacklist entries accumulate, so a later file cannot undo this policy. An administrator can override if they supply /etc/modprobe.d/60-azurelinux-cis-module-denylist.conf so that it shadows this file entirely.
There was a problem hiding this comment.
Revised the comment to correct the override instructions.
Install an explicit modprobe policy for the unused ATM, CAN, TIPC, and SCTP network protocol modules. The vendor policy prevents automatic loading by default while allowing administrators to override it with a same-named file in /etc/modprobe.d.
1795a46 to
de43252
Compare
|
/azp run |
|
Azure Pipelines: 2 pipeline(s) were filtered out due to trigger conditions. |
Summary
Add a customer-overridable modprobe policy that prevents loading the unused ATM, CAN, TIPC, and SCTP network protocol modules.
Validation
Built and installed on a clean AZL4 Marketplace VM. All four relevant CIS-CAT rules pass.
Addresses AB#22877, AB#22878, AB#22879, AB#22880