Page MenuHomeFreeBSD

Remove risky compatability with old kernels.
ClosedPublic

Authored by brooks on Sep 1 2020, 10:26 PM.
Tags
None
Referenced Files
F132383476: D26289.id.diff
Thu, Oct 16, 10:39 AM
F132383474: D26289.id76567.diff
Thu, Oct 16, 10:39 AM
F132383468: D26289.id76519.diff
Thu, Oct 16, 10:39 AM
F132328824: D26289.diff
Wed, Oct 15, 10:59 PM
Unknown Object (File)
Tue, Oct 7, 7:27 AM
Unknown Object (File)
Tue, Sep 23, 11:37 AM
Unknown Object (File)
Sep 9 2025, 6:27 PM
Unknown Object (File)
Sep 2 2025, 8:57 AM
Subscribers
None

Details

Summary

The badsys() handler for SIGSYS was added as a transtion aid for kernels
lacking sysctl() in 1993. It is unsafe and unsound so remove it rather
than running the risk of a privilege-dropping system call being silently
omitted.

This partially reverts SCCSID 6.12 (Berkeley) 03/03/93 "add code to
change the system security level".

Diff Detail

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

Event Timeline

brooks created this revision.

I found this when discussing the implications of D26288.

It was a horrible hack at the time and should have been tossed decades ago.

This revision is now accepted and ready to land.Sep 1 2020, 11:17 PM
This revision was automatically updated to reflect the committed changes.