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

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: Added platform checking Created 5 years, 10 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
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 typedef NTSTATUS(WINAPI *NtQueryInformationProcess)(
rvargas (doing something else) 2015/02/21 01:01:22 I don't see this being used
Shrikant Kelkar 2015/02/21 02:32:40 removed
677 IN HANDLE process_handle,
678 IN ULONG info_class,
679 OUT PVOID process_information,
680 IN ULONG information_length,
681 OUT PULONG return_length);
682
683 struct PROCESS_ACCESS_TOKEN {
684 HANDLE token;
685 HANDLE thread;
686 };
687
688 const unsigned int NtProcessInformationAccessToken = 9;
689
659 #endif // SANDBOX_WIN_SRC_NT_INTERNALS_H__ 690 #endif // SANDBOX_WIN_SRC_NT_INTERNALS_H__
660 691
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698