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

(cherry picked from commit d74a742704eb81f0c6f4aa83e4cb0de26a81c400)

Details

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