Bug 231768

Summary: [request] Disable COMPAT_FREEBSD4/5/6/7/9 as default kernel option
Product: Base System Reporter: voidanix <voidanix>
Component: kernAssignee: freebsd-bugs mailing list <bugs>
Status: In Progress ---    
Severity: Affects Only Me CC: cem, emaste
Priority: --- Keywords: needs-qa, patch
Version: CURRENT   
Hardware: Any   
OS: Any   
URL: https://reviews.freebsd.org/D17375
Attachments:
Description Flags
COMPAT_FREEBSD patch none

Description voidanix 2018-09-27 20:28:00 UTC
It's 2018.

Support for FreeBSD4 ended in 2007, I think it is exaggerated to put COMPAT_FREEBSD4 in the GENERIC or MINIMAL kernel configs by default.

I propose to remove COMPAT_FREEBSD4, COMPAT_FREEBSD5, COMPAT_FREEBSD6, COMPAT_FREEBSD7 and COMPAT_FREEBSD8 from those files.

I could not think of a reason to keep those options enabled by default, I'm only seeing possible security vulnerabilities. (For example, HardenedBSD disabled those COMPAT* options other than COMPAT_FREEBSD10 for security reasons: see https://github.com/HardenedBSD/hardenedBSD/blob/hardened/current/master/sys/amd64/conf/HARDENEDBSD)

Thanks for hearing me out :P
Comment 1 voidanix 2018-10-01 16:03:56 UTC
See https://reviews.freebsd.org/D17375
Comment 2 voidanix 2019-02-17 11:10:49 UTC
Created attachment 202092 [details]
COMPAT_FREEBSD patch
Comment 3 Ed Maste freebsd_committer 2019-05-21 19:07:07 UTC
This came up in a triage session at the 2019 Waterloo Hackathon but this issue needs to be addressed via discussion on mailing list, presumably as an FCP. Would  you start the discussion on -arch or -current?
Comment 4 voidanix 2019-05-21 20:20:51 UTC
(In reply to Ed Maste from comment #3)

Yup, although I'm willing to initiate the discussion this weekend (time reasons).