The ASLR feature is now disabled on 32- and enabled on 64-bit
architectures. Reflect these changes in the hardening dialog menu.
In order to handle both cases in a single menu tick the "enable_aslr"
option on the 64-bit platforms.
Differential D32833
bsdinstall: adjust ASLR knob to new defaults mw on Nov 4 2021, 3:44 PM. Authored by Tags None Referenced Files
Subscribers None
Details
Diff Detail
Event Timeline
Comment Actions New options should be positive logic always, even if the default is to set them to true. It's proven less confusing over time to do this than have the negative logic. Especially if we ever need to change the default. Comment Actions Having said that, bsdinstall should have these things be a toggle based on the current setting... but that's a much bigger ask... Comment Actions Would you prefer then to:
Please confirm. If yes, I can invert the proposed logic, however the script may get a bit more messy. Comment Actions
Comment Actions @emaste Please confirm if we should just revert 020f4112559ebf7e94665c9a69f89d21929ce82a instead of this patch. Comment Actions @emaste Have you decided about your preference whether we should update the menu option or remove it? Comment Actions I originally made some suggestions on sense of the controls (+ve or -ve) in earlier comments but did not yet think about this holistically. We (@mw, myself, and others) discussed this on a call last week, and on further reflection I think we should just revert R10:020f4112559e. Right now (prior to ASLR default changes) that menu exists to turn on "mitigation"/"hardening" options that are not enabled by default. With ASLR defaulting to on IMO it's clearer to just remove the option from the menu - including options that are already on by default will be more confusing IMO. Comment Actions To be perfectly clear, my preference is:
Comment Actions Thanks. I will abandon this patch and I'm planning to add a following comment in the revert commit message: Because now ASLR is enabled by default for 64-bit architectures and the purpose of the installation menu is to allow choosing additional 'mitigation'/'hardening' options that are originally disabled, remove the ASLR knob from bsdinstall. Please me know if it's sufficient. Comment Actions Change no longer relevant after removing the knob in https://cgit.freebsd.org/src/commit/?id=bf410c6eda515364db5f6ed74b765efdec0595ae |