summaryrefslogtreecommitdiffstats
path: root/sandbox/src
Commit message (Collapse)AuthorAgeFilesLines
* Sandbox: Add support for Windows 7 - 64 bit.rvargas@google.com2009-02-031-12/+42
| | | | | | | | | | BUG=4324 TEST=IntegrationTestsTest.* Review URL: http://codereview.chromium.org/20026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9104 0039d316-1c4b-4281-b951-d872f2087c98
* revert r9096. rvargas@google.com2009-02-031-40/+12
| | | | | | | TBD nsylvain git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9097 0039d316-1c4b-4281-b951-d872f2087c98
* Sandbox: Add support for Windows 7 - 64 bit.rvargas@google.com2009-02-031-12/+40
| | | | | | | | | BUG=4324 TEST=IntegrationTestsTest.* Review URL: http://codereview.chromium.org/20023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9096 0039d316-1c4b-4281-b951-d872f2087c98
* remove chrome dependencies from win sandboxing headers. Wrap sandbox code topinkerton@google.com2009-01-091-6/+0
| | | | | | | make the main routine a little cleaner. Unify the parameters of each of the "main" entry points so we can more easily abstract platform differences in the future. BUG=5323 Review URL: http://codereview.chromium.org/17426 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7825 0039d316-1c4b-4281-b951-d872f2087c98
* Mass convert ChromeStaticLibrary -> ChromeLibrary, including pulling the ↵evanm@google.com2008-12-261-1/+1
| | | | | | | | | | | updated ICU dep that uses it as well. Add a SHARED scons command-line flag to build shared libraries. Review URL: http://codereview.chromium.org/16477 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7479 0039d316-1c4b-4281-b951-d872f2087c98
* Move a function from controller.cc to sandbox_utils.cc innsylvain@chromium.org2008-12-2315-43/+49
| | | | | | | preparation for the refactoring. Review URL: http://codereview.chromium.org/16225 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7445 0039d316-1c4b-4281-b951-d872f2087c98
* Convert from using env['PLATFORM'] directly to using the more flexiblesgk@google.com2008-12-181-1/+1
| | | | | | | | | | | | | | | | | | and better-thought-out Hammer env.Bits() idioms: * env['PLATFORM'] == 'win32' => env.Bit('windows') * env['PLATFORM'] == 'posix' => env.Bit('linux') * env['PLATFORM'] == 'darwin' => env.Bit('mac') New idioms: * env.Bit('posix') => really does mean "any POSIX platform" * env.AnyBits('mac', 'linux') => specifically mac or linux, excluding other POSIX platforms Where we were using compound conditionals (e.g., "env['PLATFORM'] in ('posix', 'darwin')") I tried to take my best shot at translating the intent (i.e., "env.Bits('posix')" for something POSIX, "not env.Bits('mac')" for something not yet ported to Mac, etc.) Review URL: http://codereview.chromium.org/15051 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7270 0039d316-1c4b-4281-b951-d872f2087c98
* Switch back svn:eol-style=native for .sln, .vcproj and .vsprops files.maruel@chromium.org2008-12-161-650/+650
| | | | | | | Patch fails otherwise on non-Windows platforms. Review URL: http://codereview.chromium.org/14478 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7093 0039d316-1c4b-4281-b951-d872f2087c98
* step one of some refactoring to allow other platforms to re-use the app ↵pinkerton@google.com2008-12-091-0/+6
| | | | | | | | initialization code. Review URL: http://codereview.chromium.org/13295 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6627 0039d316-1c4b-4281-b951-d872f2087c98
* Changed svn:eol-style of all .sln and .vcproj files to CRLFscherkus@chromium.org2008-12-041-650/+650
| | | | | | Review URL: http://codereview.chromium.org/13133 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6372 0039d316-1c4b-4281-b951-d872f2087c98
* Finish release (opt) builds on Windows, including the parallelsgk@google.com2008-11-201-18/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | build\*.scons structure (mirroring build\*.vsprops files): * Use env.ApplySConscript() instead of env.SConscript with a hand-crafted dictionary defining 'env'. * Move various CPPPATH, CCFLAGS, CPPDEFINES, LIBS and LIBPATH definitions from build/SConscript.main and target-specific *.scons files into the build\*.scons files that mirror the existing build\*.vsprops hierarchy. * Use the new build\{debug,release}.scons files to update the windows_dbg and windows_opt construction environments. * Mirror current support for CHROME_BUILD_TYPE and CHROMIUM_BUILD external environment variables. * Remove hard-coded /TP options. * Massage $CXXFLAGS to remove $CCFLAGS, avoiding duplication of options on command lines. Handle the ripple effect in $PCHCOM by adding $CCFLAGS back to that command line. * Delete hammer's default settings of {CC,LINK}FLAGS_{DEBUG,OPTIMIZED} so they don't pollute our construction environments. * Update chrome config to link against v8 for opt, v8_g for dbg. * Get rid of fragile by-hand order of using_net.scons before other using_*.scons files. We're now using --start-group and --end-group on Linux to deal with dependency cycles in libraries. Review URL: http://codereview.chromium.org/11478 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5741 0039d316-1c4b-4281-b951-d872f2087c98
* We need to delete this critical section otherwisensylvain@chromium.org2008-11-181-0/+1
| | | | | | | | application verifier warns all the time. Review URL: http://codereview.chromium.org/11408 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5593 0039d316-1c4b-4281-b951-d872f2087c98
* Application Verifier hooks GetProcAddress and returnsnsylvain@chromium.org2008-11-183-5/+12
| | | | | | | | | | | | pointer to functions in its own dll instead. When we try to patch these functions, we fail because the appverif dll is not loaded yet. We need to get the real pointers to the NT functions. Review URL: http://codereview.chromium.org/11412 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5591 0039d316-1c4b-4281-b951-d872f2087c98
* Return the right error code when we proxy a callnsylvain@chromium.org2008-11-136-24/+70
| | | | | | | | | | | | | | | | | | | | | to the broker. IIRC we decided to always return access denied because we did not want to leak the real error code, but this is bogus for 2 reasons: 1. The broker will return access denied if it's not allowed in the policy 2. The check to hide the return code is in the renderer, so it would have been possible for a malicious user to see it anyway. I also added a test for it. BUG:3965 Review URL: http://codereview.chromium.org/10615 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5388 0039d316-1c4b-4281-b951-d872f2087c98
* Enforces strong DEP all the time. Use the /NXCOMPAT linker flag on ↵maruel@chromium.org2008-11-041-33/+1
| | | | | | | | chrome.exe so there's no need to call anything on Vista and later to activate it. Review URL: http://codereview.chromium.org/9050 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4609 0039d316-1c4b-4281-b951-d872f2087c98
* Set the thread name for the sandbox event thread.deanm@chromium.org2008-11-041-0/+3
| | | | | | Review URL: http://codereview.chromium.org/9263 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4581 0039d316-1c4b-4281-b951-d872f2087c98
* Fix SCons build of the sandbox module, splitting out the individualsgk@google.com2008-10-272-259/+100
| | | | | | | targets into the new *.scons file naming scheme. Review URL: http://codereview.chromium.org/8616 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4000 0039d316-1c4b-4281-b951-d872f2087c98
* Rolling back switch to hammer patterns again.bradnelson@chromium.org2008-10-201-12/+5
| | | | | | Review URL: http://codereview.chromium.org/7530 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3637 0039d316-1c4b-4281-b951-d872f2087c98
* Adding in new hammer patterns. Restored from rollback change 3578.bradnelson@chromium.org2008-10-181-5/+12
| | | | | | Review URL: http://codereview.chromium.org/7656 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3597 0039d316-1c4b-4281-b951-d872f2087c98
* Rolling back CL 3578, discovered hammer.bat had not been updated yet.bradnelson@chromium.org2008-10-181-12/+5
| | | | | | Review URL: http://codereview.chromium.org/7507 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3582 0039d316-1c4b-4281-b951-d872f2087c98
* Applying software construction toolkit patterns in scons build.bradnelson@chromium.org2008-10-171-5/+12
| | | | | | Review URL: http://codereview.chromium.org/6569 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3578 0039d316-1c4b-4281-b951-d872f2087c98
* Klocwork bug. The dtor of Win2kThreadpool needs to be virtual sincecpu@google.com2008-10-083-23/+14
| | | | | | | | | | | the object is destroyed thru the base. - Removed UnRegisterWait loop in dtor. BUG=3108 Review URL: http://codereview.chromium.org/6247 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3057 0039d316-1c4b-4281-b951-d872f2087c98
* One more header guard fix to trigger the build.nsylvain@chromium.org2008-09-281-3/+3
| | | | | | Review URL: http://codereview.chromium.org/4320 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2663 0039d316-1c4b-4281-b951-d872f2087c98
* One more simple change to trigger the buildbots.nsylvain@chromium.org2008-09-281-3/+3
| | | | | | | This is just fixing the header guard Review URL: http://codereview.chromium.org/4319 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2662 0039d316-1c4b-4281-b951-d872f2087c98
* I'm testing the buildbots, I needed a small change to triggernsylvain@chromium.org2008-09-281-3/+3
| | | | | | | them. Review URL: http://codereview.chromium.org/4318 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2661 0039d316-1c4b-4281-b951-d872f2087c98
* Fix SCons sandbox builds to parallel accumulated VS changes:sgk@google.com2008-09-231-9/+8
| | | | | | | | | * Add CHROMIUM_BUILD and _SECURE_ATL defines. * No /Wp64. * Add unload_dll_test.cc. Review URL: http://codereview.chromium.org/4224 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2505 0039d316-1c4b-4281-b951-d872f2087c98
* Use of null string on DLLMatch happens on the botscpu@google.com2008-09-201-1/+2
| | | | | | | | | | - Not in my machine unless I incredibuild. - But change makes sense. Review URL: http://codereview.chromium.org/4006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2436 0039d316-1c4b-4281-b951-d872f2087c98
* Redo change 2413 that I had to back out beforecpu@google.com2008-09-2014-66/+339
| | | | | | | | | | | - CL is identical and was already lgtm TBR=rvargas Review URL: http://codereview.chromium.org/3179 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2435 0039d316-1c4b-4281-b951-d872f2087c98
* Fix memory corruption when EAT patching in sandboxcpu@google.com2008-09-191-9/+9
| | | | | | Review URL: http://codereview.chromium.org/3174 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2425 0039d316-1c4b-4281-b951-d872f2087c98
* back out my sbox changecpu@google.com2008-09-1814-347/+69
| | | | | | | | | TBR=nsylvain Review URL: http://codereview.chromium.org/3132 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2353 0039d316-1c4b-4281-b951-d872f2087c98
* Add an interface to the sandbox to block dll from loading in the target processcpu@google.com2008-09-1814-69/+347
| | | | | | | | | - new interface is TargetPolicy::AddDllToUnload - Added integration tests and unit tests. Review URL: http://codereview.chromium.org/2413 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2348 0039d316-1c4b-4281-b951-d872f2087c98
* For some reasons the linker excludes 2 of our hooksnsylvain@chromium.org2008-09-151-0/+4
| | | | | | | | | when linking in SANDBOX_EXPORTS mode. Add pragmas to be sure these hooks are included. Review URL: http://codereview.chromium.org/3050 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2211 0039d316-1c4b-4281-b951-d872f2087c98
* Fix the sandbox when used with the SANDBOX_EXPORTS define.nsylvain@google.com2008-09-062-7/+7
| | | | | | Review URL: http://codereview.chromium.org/266 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1820 0039d316-1c4b-4281-b951-d872f2087c98
* Update Copyright text in SCons config files.sgk@google.com2008-09-011-28/+4
| | | | | | TBR: beng git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1607 0039d316-1c4b-4281-b951-d872f2087c98
* Fix incorrect usage of ScopedHandlecpu@google.com2008-08-271-4/+2
| | | | | | | | | | - Aftermath of my previous checkin that broke the sbox tests TBR=rvargas git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1454 0039d316-1c4b-4281-b951-d872f2087c98
* Use a more compact license header in source files.license.bot2008-08-24134-3752/+536
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1287 0039d316-1c4b-4281-b951-d872f2087c98
* Use %ls instead of %s in wprintf format strings for wchar_t fields.mmentovai@google.com2008-08-141-7/+7
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@846 0039d316-1c4b-4281-b951-d872f2087c98
* Add a helper method to SConscript.main for adding .pdb files to thetc@google.com2008-08-131-16/+3
| | | | | | | | | | | | output target of .exe files on Windows. Change all the callers to only pass in the basename of the target (e.g., 'base_unittests'). The only exception is chrome.exe which uses chrome_exe.pdb. This lets us remove a "if env['PLATFORM'] == 'win32'" condition from base/SConscript and these other files going forward. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@836 0039d316-1c4b-4281-b951-d872f2087c98
* Set the svn:eol-style to LF on all SConscript filestc@google.com2008-08-131-297/+297
| | | | | | TBR=evanm git-svn-id: svn://svn.chromium.org/chrome/trunk/src@823 0039d316-1c4b-4281-b951-d872f2087c98
* Checking in the rest of the .lib changes, previous commit was only done from ↵sgk@google.com2008-08-041-7/+6
| | | | | | | | | chrome/ and only got those SConscript files. R=evanm,bradnelson git-svn-id: svn://svn.chromium.org/chrome/trunk/src@331 0039d316-1c4b-4281-b951-d872f2087c98
* Fix overzealous removal of a couple of our own libraries from the LIBS ↵sgk@google.com2008-08-041-0/+4
| | | | | | | | variable in the sandbox build. TBR: bradnelson git-svn-id: svn://svn.chromium.org/chrome/trunk/src@311 0039d316-1c4b-4281-b951-d872f2087c98
* Pull the block of common Windows system libraries that we link with ↵sgk@google.com2008-08-041-26/+0
| | | | | | | | everywhere into the base Windows environment. TBR: evanm,bradnelson git-svn-id: svn://svn.chromium.org/chrome/trunk/src@310 0039d316-1c4b-4281-b951-d872f2087c98
* Convert submodules SConscript files to psuedo-builder calls.sgk@google.com2008-08-031-4/+4
| | | | | | | | TBR: evanm,bradnelson git-svn-id: svn://svn.chromium.org/chrome/trunk/src@304 0039d316-1c4b-4281-b951-d872f2087c98
* Disable ProcessPolicyTest.RunFindstrExe until it can be made to work on any ↵sgk@google.com2008-08-011-1/+2
| | | | | | | | | Windows drive. B=1305476 R=nsylvain git-svn-id: svn://svn.chromium.org/chrome/trunk/src@264 0039d316-1c4b-4281-b951-d872f2087c98
* Initial cleanups en route to coalescing the get-it-built cut-and-paste from ↵sgk@google.com2008-07-311-6/+0
| | | | | | | | | | | | | | | | | | various SConscripts into readable and maintainable shape. To wit: * Put the near-universal settings of /DCERT_CHAIN_PARA_HAS_EXTRA_FIELDS, /DWIN32_LEAN_AND_MEAN, /wd4503 and /wd4819 in the base construction environment. * Sort various unsorted source file lists. * Fix indentation and quoting for consistency in a couple SConscript files that escaped previous dragnets. * Eliminate two left-over uses of Split() for input file lists. * Give the devenv invocation to build v8_shell.exe the full path to the relevant .vcproj file. * Add /nologo to the base LINKFLAGS setting. * Remove various CPPPATH and other settings that have been hanging around commented out from the Visual Studio build (in case we needed them, which we evidently don't). * Get rid of unnecessary env.File() and env.Dir() calls in various settings (esp. CPPPATH) and source file lists. * Add copyright notice to an overlooked SConscript file. * Clean up version.bat invocation. TBR: bradnelson git-svn-id: svn://svn.chromium.org/chrome/trunk/src@174 0039d316-1c4b-4281-b951-d872f2087c98
* Update SCons build for recent changes:sgk@google.com2008-07-301-13/+13
| | | | | | | | | | Delete chrome_frame.cc, add frame_util.cc. url_request_http_cache_job.cc => url_request_http_job.cc. Rename sandbox *tests.exe to sbox_*.exe per upstream. Define ENABLE_CROSS_DOCUMENT_MESSAGING when generating V8 bindings. TBR: bradnelson git-svn-id: svn://svn.chromium.org/chrome/trunk/src@135 0039d316-1c4b-4281-b951-d872f2087c98
* Fix two issues with Visual Studio 2008.maruel@google.com2008-07-301-1/+1
| | | | | | BUG=1290595 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@126 0039d316-1c4b-4281-b951-d872f2087c98
* When run chrome with --no-sandbox, the renderer process calls the dtor of ↵cpu@google.com2008-07-301-1/+4
| | | | | | | | | | BrokerServicesBase. There some API calls have invalid parameters. BUG=1296316 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86 0039d316-1c4b-4281-b951-d872f2087c98
* Add sandbox to the repository.initial.commit2008-07-26140-0/+28670
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13 0039d316-1c4b-4281-b951-d872f2087c98