From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 54A74158011 for ; Mon, 5 Sep 2022 01:22:45 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 89FD8E07D4; Mon, 5 Sep 2022 01:22:44 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6FF2EE07D4 for ; Mon, 5 Sep 2022 01:22:44 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8B18C340EBA for ; Mon, 5 Sep 2022 01:22:43 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 97CE75C0 for ; Mon, 5 Sep 2022 01:22:40 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1662340743.6abf35b9907a61390aef371e6ead261ef036ab1d.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/virtualbox/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-emulation/virtualbox/virtualbox-6.1.38.ebuild X-VCS-Directories: app-emulation/virtualbox/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 6abf35b9907a61390aef371e6ead261ef036ab1d X-VCS-Branch: master Date: Mon, 5 Sep 2022 01:22:40 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 740b8334-2bd0-4438-afae-a523dbdfa788 X-Archives-Hash: eeb5d9adcdc37d34694d904034c4063a commit: 6abf35b9907a61390aef371e6ead261ef036ab1d Author: Viorel Munteanu gmail com> AuthorDate: Sun Sep 4 08:28:24 2022 +0000 Commit: Sam James gentoo org> CommitDate: Mon Sep 5 01:19:03 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6abf35b9 app-emulation/virtualbox: add check to pkg_pretend Check /usr, /usr/lib are owned by root. Closes: https://bugs.gentoo.org/749273 Signed-off-by: Viorel Munteanu gmail.com> Signed-off-by: Sam James gentoo.org> app-emulation/virtualbox/virtualbox-6.1.38.ebuild | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app-emulation/virtualbox/virtualbox-6.1.38.ebuild b/app-emulation/virtualbox/virtualbox-6.1.38.ebuild index 25ec67b18ade..93c8ac5113f7 100644 --- a/app-emulation/virtualbox/virtualbox-6.1.38.ebuild +++ b/app-emulation/virtualbox/virtualbox-6.1.38.ebuild @@ -195,6 +195,15 @@ pkg_pretend() { einfo "You have disabled the \"python\" USE flag. This will only" einfo "disable the python bindings being installed." fi + + # 749273 + local d=${ROOT} + for i in usr "$(get_libdir)"; do + d="${d}/$i" + if [[ "$(stat -L -c "%g %u" "${d}")" != "0 0" ]]; then + die "${d} should be owned by root, VirtualBox will not start otherwise" + fi + done } pkg_setup() {