| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 #ifndef CHROME_BROWSER_COCOA_AUTHORIZATION_UTIL_H_ | 5 #ifndef CHROME_BROWSER_COCOA_AUTHORIZATION_UTIL_H_ |
| 6 #define CHROME_BROWSER_COCOA_AUTHORIZATION_UTIL_H_ | 6 #define CHROME_BROWSER_COCOA_AUTHORIZATION_UTIL_H_ |
| 7 | 7 |
| 8 // AuthorizationExecuteWithPrivileges fork()s and exec()s the tool, but it | 8 // AuthorizationExecuteWithPrivileges fork()s and exec()s the tool, but it |
| 9 // does not wait() for it. It also doesn't provide the caller with access to | 9 // does not wait() for it. It also doesn't provide the caller with access to |
| 10 // the forked pid. If used irresponsibly, zombie processes will accumulate. | 10 // the forked pid. If used irresponsibly, zombie processes will accumulate. |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 OSStatus ExecuteWithPrivilegesAndWait(AuthorizationRef authorization, | 49 OSStatus ExecuteWithPrivilegesAndWait(AuthorizationRef authorization, |
| 50 const char* tool_path, | 50 const char* tool_path, |
| 51 AuthorizationFlags options, | 51 AuthorizationFlags options, |
| 52 const char** arguments, | 52 const char** arguments, |
| 53 FILE** pipe, | 53 FILE** pipe, |
| 54 int* exit_status); | 54 int* exit_status); |
| 55 | 55 |
| 56 } // namespace authorization_util | 56 } // namespace authorization_util |
| 57 | 57 |
| 58 #endif // CHROME_BROWSER_COCOA_AUTHORIZATION_UTIL_H_ | 58 #endif // CHROME_BROWSER_COCOA_AUTHORIZATION_UTIL_H_ |
| OLD | NEW |