diff options
| author | Martin Wilke <miwi@FreeBSD.org> | 2010-03-15 20:54:35 +0000 |
|---|---|---|
| committer | Martin Wilke <miwi@FreeBSD.org> | 2010-03-15 20:54:35 +0000 |
| commit | 2a547baa1bcd9985be840b08a7804396f7d13cbb (patch) | |
| tree | 90ae025ac61d42ae952a7102f887009dcc7626ab /emulators/virtualbox-ose/files/patch-src-VBox-HostDrivers-Support-SUPR3HardenedMain.cpp | |
| parent | Update to 2.2.1-rc2 (initial wctdm24xxp support). (diff) | |
Presenting VirtualBox 3.1.4 for FreeBSD
Changelog from VirtualBox is available here:
http://www.virtualbox.org/wiki/Changelog
Changes in the port:
- VirtualBox and Guest Additions iso updated to 3.1.4
- Add UNIQUENAME to fix options file clashes between the virtualbox ports [0]
- Fixed vtophys problems on CURRENT and STABLE kernes newer than
January 23th [1]
- Fixed page double wiring issue in rtR0MemObjNativeAllocPage [2]
PR: ports/143361 [0]
Submitted by: Martin Birgmeier <martin.birgmeier AT aon.at> [0]
Alexander Eichner <Alexander.Eichner AT Sun.COM> [1]
Thanks To: All testers on emulation@ and current@ [1]
Giovanni Trematerra <giovanni.trematerra AT gmail.com> [1]
Ian Freislich <ianf AT clue.co.za> [1]
Reported by: Alan Cox <alc AT cs dot rice dot edu> [2]
Diffstat (limited to 'emulators/virtualbox-ose/files/patch-src-VBox-HostDrivers-Support-SUPR3HardenedMain.cpp')
| -rw-r--r-- | emulators/virtualbox-ose/files/patch-src-VBox-HostDrivers-Support-SUPR3HardenedMain.cpp | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/emulators/virtualbox-ose/files/patch-src-VBox-HostDrivers-Support-SUPR3HardenedMain.cpp b/emulators/virtualbox-ose/files/patch-src-VBox-HostDrivers-Support-SUPR3HardenedMain.cpp deleted file mode 100644 index 4a89fec97dfa..000000000000 --- a/emulators/virtualbox-ose/files/patch-src-VBox-HostDrivers-Support-SUPR3HardenedMain.cpp +++ /dev/null @@ -1,33 +0,0 @@ ---- src/VBox/HostDrivers/Support/SUPR3HardenedMain.cpp (revision 25471) -+++ src/VBox/HostDrivers/Support/SUPR3HardenedMain.cpp (revision 25472) -@@ -66,6 +66,9 @@ - # ifndef CAP_TO_MASK - # define CAP_TO_MASK(cap) RT_BIT(cap) - # endif -+# elif defined(RT_OS_FREEBSD) -+# include <sys/param.h> -+# include <sys/sysctl.h> - # elif defined(RT_OS_SOLARIS) - # include <priv.h> - # endif -@@ -325,7 +328,19 @@ - sprintf(szFileBuf, "/proc/%ld/path/a.out", (long)getpid()); - int cchLink = readlink(szFileBuf, &g_szSupLibHardenedExePath[0], sizeof(g_szSupLibHardenedExePath) - 1); - # else /* RT_OS_FREEBSD: */ -- int cchLink = readlink("/proc/curproc/file", &g_szSupLibHardenedExePath[0], sizeof(g_szSupLibHardenedExePath) - 1); -+ int aiName[4]; -+ size_t cbPath; -+ -+ aiName[0] = CTL_KERN; -+ aiName[1] = KERN_PROC; -+ aiName[2] = KERN_PROC_PATHNAME; -+ aiName[3] = getpid(); -+ -+ cbPath = sizeof(g_szSupLibHardenedExePath) - 1; -+ if(sysctl(aiName, RT_ELEMENTS(aiName), g_szSupLibHardenedExePath, &cbPath, NULL, 0) < 0) -+ supR3HardenedFatal("supR3HardenedExecDir: sysctl failed\n"); -+ -+ int cchLink = strlen(g_szSupLibHardenedExePath); - # endif - if (cchLink < 0 || cchLink == sizeof(g_szSupLibHardenedExePath) - 1) - supR3HardenedFatal("supR3HardenedExecDir: couldn't read \"%s\", errno=%d cchLink=%d\n", |
