]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Remove risky compatability with old kernels
authorbrooks <brooks@FreeBSD.org>
Wed, 2 Sep 2020 21:14:36 +0000 (21:14 +0000)
committerbrooks <brooks@FreeBSD.org>
Wed, 2 Sep 2020 21:14:36 +0000 (21:14 +0000)
commit85424c6fcbaf471dc47edb0ef8b86972a24f8bd7
tree93c4f1e4e5c1f98934c80db7e578f9b62f948cd6
parent34500e2bd9b6944e91649765a622f18a86d18e2f
Remove risky compatability with old kernels

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".

Reviewed by: mckusick, imp, kevans
Obtained from: CheriBSD
MFC after: 1 week
Sponsored by: DARPA
Differential Revision: https://reviews.freebsd.org/D26289
sbin/init/init.c