Page MenuHomeFreeBSD

Remove risky compatability with old kernels.
ClosedPublic

Authored by brooks on Sep 1 2020, 10:26 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Jan 18, 5:11 PM
Unknown Object (File)
Dec 9 2024, 6:28 PM
Unknown Object (File)
Oct 16 2024, 9:32 AM
Unknown Object (File)
Oct 7 2024, 2:16 PM
Unknown Object (File)
Oct 2 2024, 6:29 PM
Unknown Object (File)
Sep 24 2024, 10:46 PM
Unknown Object (File)
Sep 10 2024, 7:30 AM
Unknown Object (File)
Sep 5 2024, 4:17 PM
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.