Make bdev_allow_write_mounted kernel parameter optional#362
Open
assisted-by-ai wants to merge 1 commit intoKicksecure:masterfrom
Open
Make bdev_allow_write_mounted kernel parameter optional#362assisted-by-ai wants to merge 1 commit intoKicksecure:masterfrom
assisted-by-ai wants to merge 1 commit intoKicksecure:masterfrom
Conversation
Causes breakages with disk management operations such as disk resizing and VDI compaction in virtual machines. Kicksecure#334 https://forums.whonix.org/t/kernel-hardening-security-misc/7296/609 https://forums.whonix.org/t/how-to-compress-and-prevent-vdi-from-ballooning-after-each-update-deleting-large-files/22675/9 https://forums.kicksecure.com/t/resizing-disk-for-guest-in-kvm/1657 https://claude.ai/code/session_01Cd9ka8sC7zLUvB31V4kxMk
Merged
4 tasks
Member
|
Grow/shrink virtual hard disk versus
Issues with Firmware updates, |
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.
Summary
This change makes the
bdev_allow_write_mounted=0kernel hardening parameter optional by commenting it out in the default GRUB configuration, while updating documentation to reflect potential compatibility issues.Key Changes
bdev_allow_write_mounted=0kernel parameter inetc/default/grub.d/40_kernel_hardening.cfgDetails
The
bdev_allow_write_mounted=0parameter prevents privileged processes from writing to mounted block devices, protecting against filesystem corruption and kernel crashes. However, this parameter can interfere with legitimate disk management operations such as:By making this parameter optional (disabled by default), users can choose to enable it based on their security requirements and use case compatibility. The documentation now clearly indicates this is an optional hardening feature with potential operational trade-offs.
bdev_allow_write_mounted=0#334https://claude.ai/code/session_01Cd9ka8sC7zLUvB31V4kxMk