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

Side by Side Diff: sandbox/win/tools/finder/main.cc

Issue 10783004: Move Windows Sandbox, trybots version (don't commit me!) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to top of tree Created 8 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « sandbox/win/tools/finder/finder_registry.cc ('k') | sandbox/win/tools/finder/ntundoc.h » ('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 (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 #include "sandbox/src/restricted_token_utils.h" 5 #include "sandbox/win/src/restricted_token_utils.h"
6 #include "sandbox/tools/finder/finder.h" 6 #include "sandbox/win/tools/finder/finder.h"
7 7
8 #define PARAM_IS(y) (argc > i) && (_wcsicmp(argv[i], y) == 0) 8 #define PARAM_IS(y) (argc > i) && (_wcsicmp(argv[i], y) == 0)
9 9
10 void PrintUsage(wchar_t *application_name) { 10 void PrintUsage(wchar_t *application_name) {
11 wprintf(L"\n\nUsage: \n %ls --token type --object ob1 [ob2 ob3] " 11 wprintf(L"\n\nUsage: \n %ls --token type --object ob1 [ob2 ob3] "
12 L"--access ac1 [ac2 ac3] [--log filename]", application_name); 12 L"--access ac1 [ac2 ac3] [--log filename]", application_name);
13 wprintf(L"\n\n Token Types : \n\tLOCKDOWN \n\tRESTRICTED " 13 wprintf(L"\n\n Token Types : \n\tLOCKDOWN \n\tRESTRICTED "
14 L"\n\tLIMITED_USER \n\tINTERACTIVE_USER \n\tNON_ADMIN \n\tUNPROTECTED"); 14 L"\n\tLIMITED_USER \n\tINTERACTIVE_USER \n\tNON_ADMIN \n\tUNPROTECTED");
15 wprintf(L"\n Object Types: \n\tREG \n\tFILE \n\tKERNEL"); 15 wprintf(L"\n Object Types: \n\tREG \n\tFILE \n\tKERNEL");
16 wprintf(L"\n Access Types: \n\tR \n\tW \n\tALL"); 16 wprintf(L"\n Access Types: \n\tR \n\tW \n\tALL");
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 } 138 }
139 139
140 Finder finder_obj; 140 Finder finder_obj;
141 finder_obj.Init(token_type, object_type, access_type, file_output); 141 finder_obj.Init(token_type, object_type, access_type, file_output);
142 finder_obj.Scan(); 142 finder_obj.Scan();
143 143
144 fclose(file_output); 144 fclose(file_output);
145 145
146 return 0; 146 return 0;
147 } 147 }
OLDNEW
« no previous file with comments | « sandbox/win/tools/finder/finder_registry.cc ('k') | sandbox/win/tools/finder/ntundoc.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698