forked from pool/virtualbox
ff1d6fb65b
bump to 5.1.2 I tried to keep all Suse customization as they are. Warning dialogs were ported to Qt5. I did not check for added executables in the new release. Compile tested on all current targets. Runtime tested on Tumbleweed, both host and guest. OBS-URL: https://build.opensuse.org/request/show/414498 OBS-URL: https://build.opensuse.org/package/show/Virtualization/virtualbox?expand=0&rev=262
71 lines
2.7 KiB
Diff
71 lines
2.7 KiB
Diff
Index: a/src/apps/Makefile.kmk
|
|
===================================================================
|
|
--- a/src/apps/Makefile.kmk (revision 58576)
|
|
+++ b/src/apps/Makefile.kmk (working copy)
|
|
@@ -34,7 +34,9 @@
|
|
endif
|
|
endif
|
|
|
|
include $(PATH_SUB_CURRENT)/VBoxPermissionMessage/Makefile.kmk
|
|
|
|
+include $(PATH_SUB_CURRENT)/VBoxUSB_DevRules/Makefile.kmk
|
|
+
|
|
include $(FILE_KBUILD_SUB_FOOTER)
|
|
|
|
Index: a/src/apps/VBoxUSB_DevRules/Makefile.kmk
|
|
===================================================================
|
|
--- a/src/apps/VBoxUSB_DevRules/Makefile.kmk (revision 0)
|
|
+++ b/src/apps/VBoxUSB_DevRules/Makefile.kmk (working copy)
|
|
@@ -0,0 +1,33 @@
|
|
+# $Id: Makefile.kmk 28800 2010-04-27 08:22:32Z vboxsync $
|
|
+## @file
|
|
+#
|
|
+# VBoxUSB_DevRules is wrapper for suse users
|
|
+#
|
|
+# This file is part of VirtualBox Open Source Edition (OSE), as
|
|
+# available from http://www.virtualbox.org. This file is free software;
|
|
+# you can redistribute it and/or modify it under the terms of the GNU
|
|
+# General Public License (GPL) as published by the Free Software
|
|
+# Foundation, in version 2 as it comes in the "COPYING" file of the
|
|
+# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
|
+# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
|
+#
|
|
+
|
|
+
|
|
+SUB_DEPTH = ../../..
|
|
+include $(KBUILD_PATH)/subheader.kmk
|
|
+
|
|
+PROGRAMS += VBoxUSB_DevRules
|
|
+
|
|
+VBoxUSB_DevRules_TEMPLATE = VBOXQTGUIEXE
|
|
+VBoxUSB_DevRules_SOURCES = VBoxUSB_DevRules.cpp
|
|
+VBoxUSB_DevRules_QT_MODULES = Core Gui
|
|
+ifdef VBOX_WITH_QTGUI_V5
|
|
+ # Qt5 requires additional modules:
|
|
+ VBoxUSB_DevRules_QT_MODULES += Widgets
|
|
+endif # VBOX_WITH_QTGUI_V5
|
|
+
|
|
+#INSTALLS += VBoxUSB_DevRules
|
|
+
|
|
+include $(KBUILD_PATH)/subfooter.kmk
|
|
+
|
|
+
|
|
Index: a/src/apps/VBoxUSB_DevRules/VBoxUSB_DevRules.cpp
|
|
===================================================================
|
|
--- a/src/apps/VBoxUSB_DevRules/VBoxUSB_DevRules.cpp (revision 0)
|
|
+++ b/src/apps/VBoxUSB_DevRules/VBoxUSB_DevRules.cpp (working copy)
|
|
@@ -0,0 +1,13 @@
|
|
+#include <QtWidgets/QApplication>
|
|
+#include <QtWidgets/QMessageBox>
|
|
+int main(int argc, char *argv[])
|
|
+{
|
|
+ QApplication app(argc, argv);
|
|
+ QMessageBox msgBox;
|
|
+ msgBox.setWindowTitle(QObject::tr("USB Rules and Permissions !"));
|
|
+ msgBox.setText(QObject::tr("USB passthru opens a security hole. Please read \n\nhttps://bugzilla.novell.com/show_bug.cgi?id=664520\n\nto understand the problem. If you really want/need to use USB passthru, then copy /usr/lib/udev/rules.d/60-vboxdrv.rules to /etc/udev/rules.d/, and modify that file as outlined in the comments.\n\nTo avoid seeing this message every time VirtualBox is started, a dummy file is being created."));
|
|
+ int ret = msgBox.exec();
|
|
+ app.quit();
|
|
+ return 0;
|
|
+}
|
|
+
|