From 08acf5c407242344b0047b8040900f52df620dde Mon Sep 17 00:00:00 2001 From: cvs2svn Date: Thu, 11 Mar 2010 09:42:07 +0000 Subject: This commit was manufactured by cvs2svn to create tag 'RELEASE_7_3_0'. --- ...-VBox-HostDrivers-Support-SUPR3HardenedMain.cpp | 33 ---------------------- 1 file changed, 33 deletions(-) delete mode 100644 emulators/virtualbox-ose-legacy/files/patch-src-VBox-HostDrivers-Support-SUPR3HardenedMain.cpp (limited to 'emulators/virtualbox-ose-legacy/files/patch-src-VBox-HostDrivers-Support-SUPR3HardenedMain.cpp') diff --git a/emulators/virtualbox-ose-legacy/files/patch-src-VBox-HostDrivers-Support-SUPR3HardenedMain.cpp b/emulators/virtualbox-ose-legacy/files/patch-src-VBox-HostDrivers-Support-SUPR3HardenedMain.cpp deleted file mode 100644 index 4a89fec97dfa..000000000000 --- a/emulators/virtualbox-ose-legacy/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 -+# include - # elif defined(RT_OS_SOLARIS) - # include - # 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", -- cgit v1.2.3