OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 SANDBOX_LINUX_SUID_SETUID_SANDBOX_CLIENT_H_ | 5 #ifndef SANDBOX_LINUX_SUID_SETUID_SANDBOX_CLIENT_H_ |
6 #define SANDBOX_LINUX_SUID_SETUID_SANDBOX_CLIENT_H_ | 6 #define SANDBOX_LINUX_SUID_SETUID_SANDBOX_CLIENT_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/callback_forward.h" | 9 #include "base/callback_forward.h" |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 // (Keeping |dummy_fd| alive is an unfortunate historical artifact of the | 85 // (Keeping |dummy_fd| alive is an unfortunate historical artifact of the |
86 // chrome-sandbox ABI.) | 86 // chrome-sandbox ABI.) |
87 void SetupLaunchOptions(base::LaunchOptions* options, | 87 void SetupLaunchOptions(base::LaunchOptions* options, |
88 base::FileHandleMappingVector* fds_to_remap, | 88 base::FileHandleMappingVector* fds_to_remap, |
89 base::ScopedFD* dummy_fd); | 89 base::ScopedFD* dummy_fd); |
90 // Set-up the environment. This should be done prior to launching the setuid | 90 // Set-up the environment. This should be done prior to launching the setuid |
91 // helper. | 91 // helper. |
92 void SetupLaunchEnvironment(); | 92 void SetupLaunchEnvironment(); |
93 | 93 |
94 private: | 94 private: |
| 95 SetuidSandboxClient(); |
| 96 |
95 // Holds the environment. Will never be NULL. | 97 // Holds the environment. Will never be NULL. |
96 base::Environment* env_; | 98 base::Environment* env_; |
97 bool sandboxed_; | 99 bool sandboxed_; |
98 DISALLOW_IMPLICIT_CONSTRUCTORS(SetuidSandboxClient); | 100 |
| 101 DISALLOW_COPY_AND_ASSIGN(SetuidSandboxClient); |
99 }; | 102 }; |
100 | 103 |
101 } // namespace sandbox | 104 } // namespace sandbox |
102 | 105 |
103 #endif // SANDBOX_LINUX_SUID_SETUID_SANDBOX_CLIENT_H_ | 106 #endif // SANDBOX_LINUX_SUID_SETUID_SANDBOX_CLIENT_H_ |
OLD | NEW |