fix: modprobe override handling + audit#1577
Merged
RoyalOughtness merged 1 commit intosecureblue:livefrom Nov 6, 2025
Merged
Conversation
RKNF404
approved these changes
Nov 6, 2025
EsseLowNitro
approved these changes
Nov 6, 2025
* Rename conf files in `/usr/lib/modprobe.d` to not use a numeric prefix. This is necessary because modprobe uses the lexicographically first (not last) `install` instruction, so the `99-$MODULE.conf` files created in `/etc/modprobe.d` by the module override scripts need to be before the system conf files that they're intended to override. * Modify `audit_modprobe` in audit script to reflect changes to modprobe setup. In particular, we no longer need to check for changes to the conf file, as it's in `/usr/lib` rather than `/etc` now. Signed-off-by: Daniel Hast <[email protected]>
ab499d0 to
c96ecf2
Compare
Collaborator
Author
|
Just fixed a small oversight caught here, I had forgotten to stage this change before committing. |
EsseLowNitro
approved these changes
Nov 6, 2025
ShadowSlayer1441
approved these changes
Nov 6, 2025
RoyalOughtness
approved these changes
Nov 6, 2025
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.
/usr/lib/modprobe.dto not use a numeric prefix. This is necessary because modprobe uses the lexicographically first (not last)installinstruction, so the99-$MODULE.conffiles created in/etc/modprobe.dby the module override scripts need to be before the system conf files that they're intended to override. This should fix [BUG] Issue with Bluetooth #1575 and fix [BUG] Thunderbolt modules no longer load #1576.audit_modprobein audit script to reflect changes to modprobe setup. In particular, we no longer need to check for changes to the conf file, as it's in/usr/librather than/etcnow. This fixes a crash in the audit script.