Skip to content

Add variable for sysctl options, add ssh-keysign mitigations and block new kernel modules#3

Open
wtripp180901 wants to merge 2 commits into
mainfrom
feat/disable-loading-modules
Open

Add variable for sysctl options, add ssh-keysign mitigations and block new kernel modules#3
wtripp180901 wants to merge 2 commits into
mainfrom
feat/disable-loading-modules

Conversation

@wtripp180901
Copy link
Copy Markdown
Contributor

@wtripp180901 wtripp180901 commented May 26, 2026

  • Added sysctl_options variable so allow setting sysctl options persistently through drop-in files. Includes a default option to turn of access to ptrace in order to mitigate ssh-keysign-pwn CVE
  • Refactored module denylist to have its defaults separate from the variable exposed to the user to prevent accidental overriding
  • Now blocks any new modules not in allowlisted_modules from being loaded. By default allows all modules which Rocky loads by default. Doesn't follow same defaulting pattern as above to make removing problematic modules from allowlist easier

Tested against recent privilege escalation CVEs:

  • Copy-fail
  • Copy-fail 2
  • Fragensia
  • Dirty-frag
  • ssh-keysign-pwn

@wtripp180901 wtripp180901 force-pushed the feat/disable-loading-modules branch from cabdf60 to 6536180 Compare May 26, 2026 13:05
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