]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Restrict definition of CTL_P1003_1B_MAXID to the kernel
authorasomers <asomers@FreeBSD.org>
Mon, 27 Jul 2020 18:57:28 +0000 (18:57 +0000)
committerasomers <asomers@FreeBSD.org>
Mon, 27 Jul 2020 18:57:28 +0000 (18:57 +0000)
commit8b261beea6bd825db7c891eeea6aaf8621b30268
treea554249e4cb5572b3e0c0c28715b3a01350cf67a
parent4606441599ab7063090c883b6c50b9518ed7538a
Restrict definition of CTL_P1003_1B_MAXID to the kernel

This constant is only used to size an array within the kernel. There are
probably no legitimate uses in userland. Worse, since the kernel's array
could theoretically change size over time, any use of that symbol in
userland wouldn't be forwards compatible to new kernel versions.

Reviewed by: jhb
MFC after: Never
Differential Revision: https://reviews.freebsd.org/D25816
sys/sys/sysctl.h