git: 313bd4df8b13 - stable/13 - mips: Allow sysctl hw.machine in capability mode
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 20 Sep 2024 15:27:46 UTC
The branch stable/13 has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=313bd4df8b1304d9a500f40c6ccb46a2b155fac1 commit 313bd4df8b1304d9a500f40c6ccb46a2b155fac1 Author: Val Packett <val@packett.cool> AuthorDate: 2024-09-20 15:19:04 +0000 Commit: Zhenlei Huang <zlei@FreeBSD.org> CommitDate: 2024-09-20 15:24:29 +0000 mips: Allow sysctl hw.machine in capability mode This is a direct commit to stable/13. Reviewed by: emaste, manu Differential Revision: https://reviews.freebsd.org/D28703 --- sys/mips/mips/machdep.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/mips/mips/machdep.c b/sys/mips/mips/machdep.c index af05e6adb7a5..877216c25b05 100644 --- a/sys/mips/mips/machdep.c +++ b/sys/mips/mips/machdep.c @@ -102,7 +102,8 @@ #define BOOTINFO_DEBUG 0 char machine[] = "mips"; -SYSCTL_STRING(_hw, HW_MACHINE, machine, CTLFLAG_RD, machine, 0, "Machine class"); +SYSCTL_STRING(_hw, HW_MACHINE, machine, CTLFLAG_RD | CTLFLAG_CAPRD, + machine, 0, "Machine class"); char cpu_model[80]; SYSCTL_STRING(_hw, HW_MODEL, model, CTLFLAG_RD, cpu_model, 0, "Machine model");