Page MenuHomeFreeBSD

Enable bsdinstall hardening options by default
ClosedPublic

Authored by robak on Feb 16 2017, 8:20 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Jun 22, 7:51 AM
Unknown Object (File)
Thu, Jun 20, 11:41 PM
Unknown Object (File)
Thu, Jun 20, 10:37 AM
Unknown Object (File)
Thu, Jun 20, 8:57 AM
Unknown Object (File)
Mon, Jun 3, 7:47 AM
Unknown Object (File)
Mon, Jun 3, 7:46 AM
Unknown Object (File)
Feb 12 2024, 9:40 AM
Unknown Object (File)
Jan 27 2024, 7:58 AM
Subscribers
None

Details

Summary

As discussed previously, in order to introduce new OS hardening defaults, we've added them to bsdinstall in 'off by default' mode. It has been there for a while, so the next step is to change them to 'on by defaul' mode, so that in future we could simply enable them in base OS.

Test Plan

Apply the patch, build bsdinstall, run installer in a VM using built bsdinstall, review the end result /etc/sysctl.conf and /etc/rc.conf settings.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

robak retitled this revision from to Enable bsdinstall hardening options by default.
robak updated this object.
robak edited the test plan for this revision. (Show Details)
robak added reviewers: allanjude, adrian, emaste, brd.

Guys, reviews, comments, approvals? ;)

I personally do not like the idea of defaulting 0-1 to on. I think that will be too much of a shock to new users and will hurt more than it helps.

adrian edited edge metadata.

i'm ok with this. I think people can flip things back on if required. it's in -head, so we can gauge receptiveness.

This revision is now accepted and ready to land.Feb 17 2017, 3:37 PM

@brd these settings have been around forever. They've been introduced in bsdinstall as off-by-default exactly to flip them on later in bsdinstall and after that, to flip then on in the base OS. It's been used for ages, seems very stable and mature and add another security layer, where no amount of layers is enough. I think its a great, slow and stable way to not violate POLA and introduce better default FreeBSD settings, at least when it comes to security.

In D9641#199405, @robak wrote:

@brd these settings have been around forever. They've been introduced in bsdinstall as off-by-default exactly to flip them on later in bsdinstall and after that, to flip then on in the base OS. It's been used for ages, seems very stable and mature and add another security layer, where no amount of layers is enough. I think its a great, slow and stable way to not violate POLA and introduce better default FreeBSD settings, at least when it comes to security.

I am aware they have been around forever, and I turned it on once and found it annoying and turned it back off. I feel like this doesn't really add any security but will negatively impact our new user experience. I think people that need or want this can turn it on at will, so leaving the default to off makes sense.

This revision was automatically updated to reflect the committed changes.