virtualbox/security_fixes.patch
Larry Rainey 02c410e4c7 Accepting request 1062966 from home:lwfinger:branches:Virtualization
-  Fix a few places that did not get updated for the transition from
   /sbin => /usr/sbin, and /etc/udev => /usr/lib/udev.  boo#1207736.
   ldconfig has not been moved in Leap 15.4 - use /sbin for it.

OBS-URL: https://build.opensuse.org/request/show/1062966
OBS-URL: https://build.opensuse.org/package/show/Virtualization/virtualbox?expand=0&rev=675
2023-02-03 00:11:22 +00:00

41 lines
1.5 KiB
Diff

# This patch file is to warn future maintainers of VirtualBox on openSUSE
# platforms that the distributed versions of vboxadd.sh and vboxdrv.sh
# contain security holes. If you need to use these scripts in the future,
# please consult the Security Group at openSUSE.
#
# January 31, 2019 - Larry Finger
#
Index: VirtualBox-7.0.6/src/VBox/Additions/linux/installer/vboxadd.sh
===================================================================
--- VirtualBox-7.0.6.orig/src/VBox/Additions/linux/installer/vboxadd.sh
+++ VirtualBox-7.0.6/src/VBox/Additions/linux/installer/vboxadd.sh
@@ -890,9 +890,11 @@ dmnstatus()
fi
}
-for i; do
- case "$i" in quiet) QUIET=yes;; esac
-done
+echo "This script has insecurities. It must never be used in openSUSE without consultine Security."
+exit 1
+
+case "$2" in quiet)
+ QUIET=yes;;
case "$1" in
# Does setup without clean-up first and marks all kernels currently found on the
# system so that we can see later if any were added.
Index: VirtualBox-7.0.6/src/VBox/Installer/linux/vboxdrv.sh
===================================================================
--- VirtualBox-7.0.6.orig/src/VBox/Installer/linux/vboxdrv.sh
+++ VirtualBox-7.0.6/src/VBox/Installer/linux/vboxdrv.sh
@@ -47,6 +47,9 @@ DEVICE=/dev/vboxdrv
MODPROBE=/sbin/modprobe
SCRIPTNAME=vboxdrv.sh
+echo "This script has insecurities. It must never be used in openSUSE without consultine Security."
+exit 1
+
# The below is GNU-specific. See VBox.sh for the longer Solaris/OS X version.
TARGET=`readlink -e -- "${0}"` || exit 1
SCRIPT_DIR="${TARGET%/[!/]*}"