diff options
author | Viorel Munteanu <ceamac.paragon@gmail.com> | 2022-09-04 11:28:24 +0300 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-09-05 02:19:03 +0100 |
commit | 6abf35b9907a61390aef371e6ead261ef036ab1d (patch) | |
tree | 90aa2436f492a9b4148dba99fbc3ad777dfc178e /app-emulation | |
parent | app-emulation/virtualbox: add 6.1.38 (diff) | |
download | gentoo-6abf35b9907a61390aef371e6ead261ef036ab1d.tar.gz gentoo-6abf35b9907a61390aef371e6ead261ef036ab1d.tar.bz2 gentoo-6abf35b9907a61390aef371e6ead261ef036ab1d.zip |
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 <ceamac.paragon@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-emulation')
-rw-r--r-- | app-emulation/virtualbox/virtualbox-6.1.38.ebuild | 9 |
1 files changed, 9 insertions, 0 deletions
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() { |