]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
linprocfs: Avoid using a sysctl to get the CPU model string
authorMark Johnston <markj@FreeBSD.org>
Thu, 4 Jan 2024 13:25:05 +0000 (08:25 -0500)
committerMark Johnston <markj@FreeBSD.org>
Thu, 4 Jan 2024 13:39:53 +0000 (08:39 -0500)
commitd74a742704eb81f0c6f4aa83e4cb0de26a81c400
tree858d5567bce0b771dd05a21b3a5fcea53f9d96aa
parentd63ea03674007451682334fa3897918c5c3711a4
linprocfs: Avoid using a sysctl to get the CPU model string

This will fail if the reading process is in capability mode.  Just copy
the string directly.

PR: 276043
Reviewed by: emaste, imp, kib
Reported and tested by: Ricardo Branco <rbranco@suse.com>
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D43281
sys/compat/linprocfs/linprocfs.c