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

Side by Side Diff: content/zygote/zygote_linux.h

Issue 940603003: Linux Sandbox: always discover Zygote PID properly (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix typo. 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
« no previous file with comments | « content/browser/zygote_host/zygote_host_impl_linux.cc ('k') | content/zygote/zygote_linux.cc » ('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) 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 CONTENT_ZYGOTE_ZYGOTE_H_ 5 #ifndef CONTENT_ZYGOTE_ZYGOTE_H_
6 #define CONTENT_ZYGOTE_ZYGOTE_H_ 6 #define CONTENT_ZYGOTE_ZYGOTE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 ZygoteProcessMap; 46 ZygoteProcessMap;
47 47
48 // Retrieve a ZygoteProcessInfo from the process_info_map_. 48 // Retrieve a ZygoteProcessInfo from the process_info_map_.
49 // Returns true and write to process_info if |pid| can be found, return 49 // Returns true and write to process_info if |pid| can be found, return
50 // false otherwise. 50 // false otherwise.
51 bool GetProcessInfo(base::ProcessHandle pid, 51 bool GetProcessInfo(base::ProcessHandle pid,
52 ZygoteProcessInfo* process_info); 52 ZygoteProcessInfo* process_info);
53 53
54 // Returns true if the SUID sandbox is active. 54 // Returns true if the SUID sandbox is active.
55 bool UsingSUIDSandbox() const; 55 bool UsingSUIDSandbox() const;
56 // Returns true if the NS sandbox is active.
57 bool UsingNSSandbox() const;
56 58
57 // --------------------------------------------------------------------------- 59 // ---------------------------------------------------------------------------
58 // Requests from the browser... 60 // Requests from the browser...
59 61
60 // Read and process a request from the browser. Returns true if we are in a 62 // Read and process a request from the browser. Returns true if we are in a
61 // new process and thus need to unwind back into ChromeMain. 63 // new process and thus need to unwind back into ChromeMain.
62 bool HandleRequestFromBrowser(int fd); 64 bool HandleRequestFromBrowser(int fd);
63 65
64 void HandleReapRequest(int fd, PickleIterator iter); 66 void HandleReapRequest(int fd, PickleIterator iter);
65 67
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 std::vector<base::ProcessHandle> extra_children_; 132 std::vector<base::ProcessHandle> extra_children_;
131 133
132 // This vector contains the FDs that must be closed before reaping the extra 134 // This vector contains the FDs that must be closed before reaping the extra
133 // children. 135 // children.
134 std::vector<int> extra_fds_; 136 std::vector<int> extra_fds_;
135 }; 137 };
136 138
137 } // namespace content 139 } // namespace content
138 140
139 #endif // CONTENT_ZYGOTE_ZYGOTE_H_ 141 #endif // CONTENT_ZYGOTE_ZYGOTE_H_
OLDNEW
« no previous file with comments | « content/browser/zygote_host/zygote_host_impl_linux.cc ('k') | content/zygote/zygote_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698