security/sandbox/win/src/target_interceptions.h

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
michael@0 2 // Use of this source code is governed by a BSD-style license that can be
michael@0 3 // found in the LICENSE file.
michael@0 4
michael@0 5 #include "sandbox/win/src/nt_internals.h"
michael@0 6 #include "sandbox/win/src/sandbox_types.h"
michael@0 7
michael@0 8 #ifndef SANDBOX_SRC_TARGET_INTERCEPTIONS_H__
michael@0 9 #define SANDBOX_SRC_TARGET_INTERCEPTIONS_H__
michael@0 10
michael@0 11 namespace sandbox {
michael@0 12
michael@0 13 extern "C" {
michael@0 14
michael@0 15 // Interception of NtMapViewOfSection on the child process.
michael@0 16 // It should never be called directly. This function provides the means to
michael@0 17 // detect dlls being loaded, so we can patch them if needed.
michael@0 18 SANDBOX_INTERCEPT NTSTATUS WINAPI TargetNtMapViewOfSection(
michael@0 19 NtMapViewOfSectionFunction orig_MapViewOfSection, HANDLE section,
michael@0 20 HANDLE process, PVOID *base, ULONG_PTR zero_bits, SIZE_T commit_size,
michael@0 21 PLARGE_INTEGER offset, PSIZE_T view_size, SECTION_INHERIT inherit,
michael@0 22 ULONG allocation_type, ULONG protect);
michael@0 23
michael@0 24 // Interception of NtUnmapViewOfSection on the child process.
michael@0 25 // It should never be called directly. This function provides the means to
michael@0 26 // detect dlls being unloaded, so we can clean up our interceptions.
michael@0 27 SANDBOX_INTERCEPT NTSTATUS WINAPI TargetNtUnmapViewOfSection(
michael@0 28 NtUnmapViewOfSectionFunction orig_UnmapViewOfSection, HANDLE process,
michael@0 29 PVOID base);
michael@0 30
michael@0 31 } // extern "C"
michael@0 32
michael@0 33 } // namespace sandbox
michael@0 34
michael@0 35 #endif // SANDBOX_SRC_TARGET_INTERCEPTIONS_H__

mercurial