2024-07-17 13:49:42 +02:00
|
|
|
Index: VirtualBox-7.0.20/src/apps/Makefile.kmk
|
2024-07-13 15:17:31 +02:00
|
|
|
===================================================================
|
2024-07-17 13:49:42 +02:00
|
|
|
--- VirtualBox-7.0.20.orig/src/apps/Makefile.kmk
|
|
|
|
+++ VirtualBox-7.0.20/src/apps/Makefile.kmk
|
2024-07-13 15:17:31 +02:00
|
|
|
@@ -30,5 +30,7 @@ include $(KBUILD_PATH)/subheader.kmk
|
|
|
|
|
|
|
|
include $(PATH_SUB_CURRENT)/VBoxPermissionMessage/Makefile.kmk
|
|
|
|
|
|
|
|
+include $(PATH_SUB_CURRENT)/VBoxSUIDMessage/Makefile.kmk
|
|
|
|
+
|
|
|
|
include $(FILE_KBUILD_SUB_FOOTER)
|
|
|
|
|
2024-07-17 13:49:42 +02:00
|
|
|
Index: VirtualBox-7.0.20/src/apps/VBoxSUIDMessage/Makefile.kmk
|
2024-07-13 15:17:31 +02:00
|
|
|
===================================================================
|
|
|
|
--- /dev/null
|
2024-07-17 13:49:42 +02:00
|
|
|
+++ VirtualBox-7.0.20/src/apps/VBoxSUIDMessage/Makefile.kmk
|
2024-07-13 15:17:31 +02:00
|
|
|
@@ -0,0 +1,33 @@
|
|
|
|
+# $Id: Makefile.kmk 28800 2010-04-27 08:22:32Z vboxsync $
|
|
|
|
+## @file
|
|
|
|
+#
|
|
|
|
+# VBoxSUIDMessage is wrapper for suse users
|
|
|
|
+#
|
|
|
|
+#
|
|
|
|
+# Copyright (C) 2009 Oracle Corporation
|
|
|
|
+#
|
|
|
|
+# 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 += VBoxSUIDMessage
|
|
|
|
+
|
|
|
|
+VBoxSUIDMessage_TEMPLATE = VBoxQtGuiExe
|
|
|
|
+VBoxSUIDMessage_SOURCES = VBoxSUIDMessage.cpp
|
|
|
|
+VBoxSUIDMessage_QT_MODULES = Core Gui
|
|
|
|
+VBoxSUIDMessage_QT_MODULES += Widgets
|
|
|
|
+
|
|
|
|
+#INSTALLS += VBoxSUIDMessage
|
|
|
|
+
|
|
|
|
+include $(KBUILD_PATH)/subfooter.kmk
|
|
|
|
+
|
|
|
|
+
|
2024-07-17 13:49:42 +02:00
|
|
|
Index: VirtualBox-7.0.20/src/apps/VBoxSUIDMessage/VBoxSUIDMessage.cpp
|
2024-07-13 15:17:31 +02:00
|
|
|
===================================================================
|
|
|
|
--- /dev/null
|
2024-07-17 13:49:42 +02:00
|
|
|
+++ VirtualBox-7.0.20/src/apps/VBoxSUIDMessage/VBoxSUIDMessage.cpp
|
2024-07-13 15:17:31 +02:00
|
|
|
@@ -0,0 +1,15 @@
|
|
|
|
+#include <QtWidgets/QApplication>
|
|
|
|
+#include <QtWidgets/QMessageBox>
|
|
|
|
+int main(int argc, char *argv[])
|
|
|
|
+{
|
|
|
|
+ QApplication app(argc, argv);
|
|
|
|
+ QMessageBox msgBox;
|
|
|
|
+ msgBox.setWindowTitle(QObject::tr("File Permissions problem !"));
|
|
|
|
+ msgBox.setText(QObject::tr("File VirtualBoxVM must be SUID, but the file permissions are wrong.\n\n"
|
|
|
|
+ "To fix this problem, please run\n"
|
|
|
|
+ "sudo chmod 4750 /usr/lib/virtualbox/VirtualBoxVM\n\n"
|
|
|
|
+ "Until this is done, Virtual Machines cannot run."));
|
|
|
|
+ msgBox.exec();
|
|
|
|
+ app.quit();
|
|
|
|
+ return 0;
|
|
|
|
+}
|