| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |