Bug 231768 - [request] Disable COMPAT_FREEBSD4/5/6/7/9 as default kernel option
Summary: [request] Disable COMPAT_FREEBSD4/5/6/7/9 as default kernel option
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL: https://reviews.freebsd.org/D17375
Keywords: needs-qa, patch
Depends on:
Blocks:
 
Reported: 2018-09-27 20:28 UTC by voidanix
Modified: 2024-01-08 05:04 UTC (History)
2 users (show)

See Also:


Attachments
COMPAT_FREEBSD patch (73.71 KB, patch)
2019-02-17 11:10 UTC, voidanix
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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 freebsd_triage 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).
Comment 5 Mark Linimon freebsd_committer freebsd_triage 2021-05-21 00:23:42 UTC
^Triage: this no longer seems to be "in progress".