Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(652)

Side by Side Diff: sandbox/win/src/nt_internals.h

Issue 937353002: Adding method to create process using LowBox token in sandbox code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync to TOT to see if ios_dbg_simulator_ninja errors go away. Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sandbox/win/src/broker_services.cc ('k') | sandbox/win/src/policy_target.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file holds definitions related to the ntdll API. 5 // This file holds definitions related to the ntdll API.
6 6
7 #ifndef SANDBOX_WIN_SRC_NT_INTERNALS_H__ 7 #ifndef SANDBOX_WIN_SRC_NT_INTERNALS_H__
8 #define SANDBOX_WIN_SRC_NT_INTERNALS_H__ 8 #define SANDBOX_WIN_SRC_NT_INTERNALS_H__
9 9
10 #include <windows.h> 10 #include <windows.h>
(...skipping 638 matching lines...) Expand 10 before | Expand all | Expand 10 after
649 PHANDLE LinkHandle, 649 PHANDLE LinkHandle,
650 ACCESS_MASK DesiredAccess, 650 ACCESS_MASK DesiredAccess,
651 POBJECT_ATTRIBUTES ObjectAttributes); 651 POBJECT_ATTRIBUTES ObjectAttributes);
652 652
653 #define DIRECTORY_QUERY 0x0001 653 #define DIRECTORY_QUERY 0x0001
654 #define DIRECTORY_TRAVERSE 0x0002 654 #define DIRECTORY_TRAVERSE 0x0002
655 #define DIRECTORY_CREATE_OBJECT 0x0004 655 #define DIRECTORY_CREATE_OBJECT 0x0004
656 #define DIRECTORY_CREATE_SUBDIRECTORY 0x0008 656 #define DIRECTORY_CREATE_SUBDIRECTORY 0x0008
657 #define DIRECTORY_ALL_ACCESS 0x000F 657 #define DIRECTORY_ALL_ACCESS 0x000F
658 658
659 typedef NTSTATUS (WINAPI* NtCreateLowBoxToken)(
660 OUT PHANDLE token,
661 IN HANDLE original_handle,
662 IN ACCESS_MASK access,
663 IN POBJECT_ATTRIBUTES object_attribute,
664 IN PSID appcontainer_sid,
665 IN DWORD capabilityCount,
666 IN PSID_AND_ATTRIBUTES capabilities,
667 IN DWORD handle_count,
668 IN PHANDLE handles);
669
670 typedef NTSTATUS(WINAPI *NtSetInformationProcess)(
671 IN HANDLE process_handle,
672 IN ULONG info_class,
673 IN PVOID process_information,
674 IN ULONG information_length);
675
676 struct PROCESS_ACCESS_TOKEN {
677 HANDLE token;
678 HANDLE thread;
679 };
680
681 const unsigned int NtProcessInformationAccessToken = 9;
682
659 #endif // SANDBOX_WIN_SRC_NT_INTERNALS_H__ 683 #endif // SANDBOX_WIN_SRC_NT_INTERNALS_H__
660 684
OLDNEW
« no previous file with comments | « sandbox/win/src/broker_services.cc ('k') | sandbox/win/src/policy_target.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698