HomeFreeBSD

linprocfs: Avoid using a sysctl to get the CPU model string

Description

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

Details

Provenance
markjAuthored on Jan 4 2024, 1:25 PM
Reviewer
emaste
Differential Revision
D43281: x86: Export cpu_model[]
Parents
rGd63ea0367400: x86: Make cpu_model[] public
Branches
Unknown
Tags
Unknown