Page MenuHomeFreeBSD

Remove risky compatability with old kernels.
ClosedPublic

Authored by brooks on Sep 1 2020, 10:26 PM.
Tags
None
Referenced Files
F167884812: D26289.id76519.diff
Tue, Aug 25, 6:11 AM
Unknown Object (File)
Sat, Aug 15, 8:17 AM
Unknown Object (File)
Fri, Aug 14, 9:48 AM
Unknown Object (File)
Sat, Aug 8, 6:26 PM
Unknown Object (File)
Sat, Aug 8, 12:08 PM
Unknown Object (File)
Sat, Aug 8, 9:38 AM
Unknown Object (File)
Sat, Aug 8, 9:18 AM
Unknown Object (File)
Thu, Aug 6, 2:33 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

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 33315
Build 30632: arc lint + arc unit

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.