From nobody Fri Sep 20 15:27:46 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4X9GVB6BbWz5XYdL; Fri, 20 Sep 2024 15:27:46 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4X9GVB5Pttz4XJ3; Fri, 20 Sep 2024 15:27:46 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1726846066; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=A6yQzmpgQSjAuW37NK8p8h1TKck+kIhy1NPscvmPI0Q=; b=sICuo1LxUM45IfSLhvWxvyM8f8mCzx8NOKLA1mrY07uRNODOuPjST1wXBEz0DdtysWVQs1 fxSCqn0w7ht1pAV/7DdL5bgPN656EBAB+mX4W+cEMm92sZ08oqWqe4BdgIXGNcOOVRxDgm 7z4GtVSuxwhaQ8a668aaGVBIzHiqI1BxMDvB6p3wJQvDE+XGxufmLwa7SdM3qXlWntc5qA c5a/xcp+SjZwdAdNjc5M74V2YYoPpefMjgV2A88uyiR8OCdHUclfb3dx8k5hDTkUt92y2h 7B8Q+azTHN3KdUDMdWkyONw6lOjuLyfRWgKOywdZQo1qosQarWigcJx388wjtg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1726846066; a=rsa-sha256; cv=none; b=Ukeycmd7nNrl1LSaRO51lftJ/knCahKxF/CQGF0UJIXQ/dD6etz3qdfVWHjS5v1bbJuJN5 Cfw0EN0vjfDhoTXCbggfACZWZSWijEmC5C1lGZMvpvGQE47FC9orPE80DJ81su3JaMTuGY 5NIT/oFWtKnpLT5bnMMcZG5610RdoQ2lb8vR/W779qYQw7q64UNUN25UoUgJqrvf+qrQKe F+Kn0QIBuy8Z9VDLHesuR2dw+zFfvxo5DMQ7Hu5smsHF3XLBo86K5yXwyCPMaxDkXSeme9 O+A0qkVdGTqQy4qvdhRPu+TmJn4Lvf4l0Wmv5+Qa7HC6MSKinlr+L+UBKd0fmA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1726846066; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=A6yQzmpgQSjAuW37NK8p8h1TKck+kIhy1NPscvmPI0Q=; b=SxOSssClDGIXqLAUqWUg8VYdnLJNnyDagl9OwY7crR6D9LCYcDei5MkKCG3kjYI9cLzf3g RArMRNSL+BfAqTWK8KJNDehxZQrnkfUUdV/ZFoWot1bClChRF5rUEHx1Rw87bZTdnI7vA1 CFRq/C7rtaH9i5sruMQuSNcbAYMsJSzLu2QvaUlHj+c4pagvnG5Z4IqR+C5ibl3sa07ICa s72ed0RasgmNgBhhHdLXROD7wPZoaBXmzMuBdA4Ct20AIGa3lCX7v8WsCWQtT//osk0IX5 0lUsCbIwU7TaligDXdQiC8vgj/r9D/fVdRemLHhtpy8NwZqX+8Zx1FBWy9itrg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4X9GVB527Czv9p; Fri, 20 Sep 2024 15:27:46 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 48KFRkAK098024; Fri, 20 Sep 2024 15:27:46 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 48KFRkQ4098021; Fri, 20 Sep 2024 15:27:46 GMT (envelope-from git) Date: Fri, 20 Sep 2024 15:27:46 GMT Message-Id: <202409201527.48KFRkQ4098021@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Zhenlei Huang Subject: git: 313bd4df8b13 - stable/13 - mips: Allow sysctl hw.machine in capability mode List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: zlei X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 313bd4df8b1304d9a500f40c6ccb46a2b155fac1 Auto-Submitted: auto-generated The branch stable/13 has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=313bd4df8b1304d9a500f40c6ccb46a2b155fac1 commit 313bd4df8b1304d9a500f40c6ccb46a2b155fac1 Author: Val Packett AuthorDate: 2024-09-20 15:19:04 +0000 Commit: Zhenlei Huang 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");