Skip to content

fix(audit): restore modprobe command and /etc/modprobe.d paths - #226

Merged
aliencaocao merged 1 commit into
masterfrom
fix/restore-modprobe-paths
Dec 3, 2026
Merged

aliencaocao merged 1 commit into
masterfrom
fix/restore-modprobe-paths

Conversation

@aliencaocao

@aliencaocao aliencaocao commented Dec 3, 2026 •

Copy link
Copy Markdown
Member

Restores modprobe commands and /etc/modprobe.d/*.conf paths that were previously corrupted to modcheck / /etc/modcheck.d in host-check.sh, cluster-audit-standalone.sh, and cluster-audit-slurm.sh.

Changes

  • Restored /etc/modprobe.d/*.conf /etc/modprobe.conf lookup for NVreg_RestrictProfilingToAdminUsers in host-check.sh and cluster-audit-standalone.sh.
  • Restored modprobe gdrdrv and /etc/modprobe.d/nvprof.conf remediation guidance in cluster-audit-standalone.sh and cluster-audit-slurm.sh.
  • Added regression test test_audit_scripts_use_modprobe_not_modcheck in tests/audit/test_host_inventory.py.

Validation

  • pytest tests/audit/test_host_inventory.py (39 passed) and bash -n on all three modified scripts.

Note

Low Risk
String and path corrections in audit messaging and config probes only; no runtime behavior beyond accurate remediation and NVreg detection.

Overview
Corrects a typo that had turned Linux kernel module tooling references into modcheck and /etc/modcheck.d, which would break NCU profiling config discovery and mislead operators fixing GDRCopy or NVreg_RestrictProfilingToAdminUsers.

Across host-check.sh, cluster-audit-standalone.sh, and cluster-audit-slurm.sh, lookups and remediation text again use modprobe / /etc/modprobe.d/*.conf (and /etc/modprobe.d/nvprof.conf in fix hints). A regression test test_audit_scripts_use_modprobe_not_modcheck scans audit shell scripts so modcheck cannot reappear.

Reviewed by Cursor Bugbot for commit 426c431. Bugbot is set up for automated code reviews on this repo. Configure here.

@aliencaocao
aliencaocao marked this pull request as ready for review December 3, 2026 11:53
@aliencaocao
aliencaocao merged commit 8b99bd4 into master Dec 3, 2026
5 checks passed
@aliencaocao
aliencaocao deleted the fix/restore-modprobe-paths branch December 3, 2026 11:54
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.

1 participant