Repository navigation
fix(audit): restore modprobe command and /etc/modprobe.d paths - #226
Merged
Merged
Conversation
aliencaocao
marked this pull request as ready for review
December 3, 2026 11:53
aliencaocao
requested review from
JordanNanos,
Prathmesh234 and
samharshe
as code owners
December 3, 2026 11:53
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Restores
modprobecommands and/etc/modprobe.d/*.confpaths that were previously corrupted tomodcheck//etc/modcheck.dinhost-check.sh,cluster-audit-standalone.sh, andcluster-audit-slurm.sh.Changes
/etc/modprobe.d/*.conf /etc/modprobe.conflookup forNVreg_RestrictProfilingToAdminUsersinhost-check.shandcluster-audit-standalone.sh.modprobe gdrdrvand/etc/modprobe.d/nvprof.confremediation guidance incluster-audit-standalone.shandcluster-audit-slurm.sh.test_audit_scripts_use_modprobe_not_modcheckintests/audit/test_host_inventory.py.Validation
pytest tests/audit/test_host_inventory.py(39 passed) andbash -non 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
modcheckand/etc/modcheck.d, which would break NCU profiling config discovery and mislead operators fixing GDRCopy orNVreg_RestrictProfilingToAdminUsers.Across
host-check.sh,cluster-audit-standalone.sh, andcluster-audit-slurm.sh, lookups and remediation text again usemodprobe//etc/modprobe.d/*.conf(and/etc/modprobe.d/nvprof.confin fix hints). A regression testtest_audit_scripts_use_modprobe_not_modcheckscans audit shell scripts somodcheckcannot reappear.Reviewed by Cursor Bugbot for commit 426c431. Bugbot is set up for automated code reviews on this repo. Configure here.