From nobody Mon Jan 22 17:30:04 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 4TJcg05Z6mz57r3Y; Mon, 22 Jan 2024 17:30:04 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TJcg01yLTz4fcT; Mon, 22 Jan 2024 17:30:04 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1705944604; 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=fMJvzmY3p5mhc4f3QiKTSS1aa+s8enZPc943vjwIMTk=; b=wmaHMFPa1ZugNbZzwq//amyU2O6LiAFX9VQoSOXZB508FOD7wog4ojODAXEkLQYHX8/4tT Ws8yFFRjveLIE5WJnAyhQMxYUQOS6zWwThC3qFxa+4blN3B6TBwm5jRU0cHFD+ElBARHPu gQ0ifRlHXeCcIePMYcD6/YsIWs3O7j72nD608BDDBgObCN1kIgJOH+++LEQoVyh4YythRP XOF1KGnd7gA8fcKyrHaRnP5RtKJrdLb9dIn3VXQYFLwqQAPTtOmfxymeJq6aqJ+zaeE+Ig y1g3a5Y54C76om9xDdIZQ42Gad+EbjVF3i3ulkTGluCujNFb9y+0m0jZ2drIAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1705944604; 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=fMJvzmY3p5mhc4f3QiKTSS1aa+s8enZPc943vjwIMTk=; b=awYyXl4P9GFXwQeV2tx4hRQXIY/FSbV8jk6Mj4FPMVZZ4FLT9tdKeX0CNci++it6x4uPmY iI82jHdI/hM3IAyLcO4Ah+zjjcCymJEX/lK4VLQvH24h3rwwsIGH25UiEbUAyKwIyMvU8t uXi3Q7fyGD33UPG4kg4k9iSqkT5YWvDVRgjzAvFbSOqLDxBUiH5Xe586c7eTArO/pnjPLc w5BQbTP1lngpLGOyom9K9l1GBSFYwk+zF22/lkKQbSAahlzXpGTUNzhGiBEHqfc94dbXgD VN0UGuMPsD9ENT3qnAW8nPbjttPSjCQYYogmqz7mpy+XcXsGYhZHBeJ2QFFhxg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1705944604; a=rsa-sha256; cv=none; b=CYxAu17dcUiFgWMou+5cj57HFHJEdi5SwmdyWKxcpBsJX0dhfKnwtKHRQR9ZaQwt6O/o1h SDbjNWQVeql1X1Vd4++rIUhawReOwgYdTQ4CKf12zXREvLxhuRKDygcmrXR1hLAMGFNO2S XcNlj41FXjz9amk1glRavH4aFgYHCyMADMkuI8j3BUYAVS4gB0N5wGGO1A7oN8W0S6Shyi ajSpYUMn6YZF5eoHuH64ptDN6J52WU1hfZ76V7ot+SzMIWGbpZExQEXeIy9twDH+pHWybi atwV7Ylo48sJvv/pmrljlU98rqj2rH/Wv4nPzGel2H6DYN7ItbhHubTBlDLr7Q== 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 4TJcg014R6z19Zh; Mon, 22 Jan 2024 17:30:04 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 40MHU4fJ008826; Mon, 22 Jan 2024 17:30:04 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 40MHU4po008823; Mon, 22 Jan 2024 17:30:04 GMT (envelope-from git) Date: Mon, 22 Jan 2024 17:30:04 GMT Message-Id: <202401221730.40MHU4po008823@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Kyle Evans Subject: git: c6989de2e700 - stable/13 - bhyveload: enter capability mode after we setup the vcpu 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kevans X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: c6989de2e7007ab4ddca92bf4f3f8eca9c50c6b7 Auto-Submitted: auto-generated The branch stable/13 has been updated by kevans: URL: https://cgit.FreeBSD.org/src/commit/?id=c6989de2e7007ab4ddca92bf4f3f8eca9c50c6b7 commit c6989de2e7007ab4ddca92bf4f3f8eca9c50c6b7 Author: Kyle Evans AuthorDate: 2024-01-03 22:18:00 +0000 Commit: Kyle Evans CommitDate: 2024-01-22 17:17:52 +0000 bhyveload: enter capability mode after we setup the vcpu Reviewed by: allanjude (earlier version), emaste, markj (cherry picked from commit 8bf0882e186effbd3d742ce17613cf9dfb81ce0c) --- usr.sbin/bhyveload/bhyveload.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/usr.sbin/bhyveload/bhyveload.c b/usr.sbin/bhyveload/bhyveload.c index c11b1814cfc7..86f046a0a0c9 100644 --- a/usr.sbin/bhyveload/bhyveload.c +++ b/usr.sbin/bhyveload/bhyveload.c @@ -78,6 +78,7 @@ #include #include +#include #include #include "userboot.h" @@ -863,6 +864,12 @@ main(int argc, char** argv) } } + caph_cache_catpages(); + if (caph_enter() < 0) { + perror("caph_enter"); + exit(1); + } + /* * setjmp in the case the guest wants to swap out interpreter, * cb_swap_interpreter will swap out loader as appropriate and set