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

Side by Side Diff: chrome/browser/ui/webui/about_ui.cc

Issue 758063005: Linux sandbox: report TSYNC status in chrome://sandbox (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 | « chrome/app/generated_resources.grd ('k') | content/common/sandbox_linux/sandbox_linux.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) 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 #include "chrome/browser/ui/webui/about_ui.h" 5 #include "chrome/browser/ui/webui/about_ui.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 871 matching lines...) Expand 10 before | Expand all | Expand 10 after
882 AboutSandboxRow(&data, "&nbsp;&nbsp;", IDS_ABOUT_SANDBOX_PID_NAMESPACES, 882 AboutSandboxRow(&data, "&nbsp;&nbsp;", IDS_ABOUT_SANDBOX_PID_NAMESPACES,
883 status & content::kSandboxLinuxPIDNS); 883 status & content::kSandboxLinuxPIDNS);
884 AboutSandboxRow(&data, "&nbsp;&nbsp;", IDS_ABOUT_SANDBOX_NET_NAMESPACES, 884 AboutSandboxRow(&data, "&nbsp;&nbsp;", IDS_ABOUT_SANDBOX_NET_NAMESPACES,
885 status & content::kSandboxLinuxNetNS); 885 status & content::kSandboxLinuxNetNS);
886 AboutSandboxRow(&data, 886 AboutSandboxRow(&data,
887 std::string(), 887 std::string(),
888 IDS_ABOUT_SANDBOX_SECCOMP_BPF_SANDBOX, 888 IDS_ABOUT_SANDBOX_SECCOMP_BPF_SANDBOX,
889 status & content::kSandboxLinuxSeccompBPF); 889 status & content::kSandboxLinuxSeccompBPF);
890 AboutSandboxRow(&data, 890 AboutSandboxRow(&data,
891 std::string(), 891 std::string(),
892 IDS_ABOUT_SANDBOX_SECCOMP_BPF_SANDBOX_TSYNC,
893 status & content::kSandboxLinuxSeccompTSYNC);
894 AboutSandboxRow(&data,
895 std::string(),
892 IDS_ABOUT_SANDBOX_YAMA_LSM, 896 IDS_ABOUT_SANDBOX_YAMA_LSM,
893 status & content::kSandboxLinuxYama); 897 status & content::kSandboxLinuxYama);
894 898
895 data.append("</table>"); 899 data.append("</table>");
896 900
897 // The setuid sandbox is required as our first-layer sandbox. 901 // The setuid sandbox is required as our first-layer sandbox.
898 bool good_layer1 = status & content::kSandboxLinuxSUID && 902 bool good_layer1 = status & content::kSandboxLinuxSUID &&
899 status & content::kSandboxLinuxPIDNS && 903 status & content::kSandboxLinuxPIDNS &&
900 status & content::kSandboxLinuxNetNS; 904 status & content::kSandboxLinuxNetNS;
901 // A second-layer sandbox is also required to be adequately sandboxed. 905 // A second-layer sandbox is also required to be adequately sandboxed.
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
1161 Profile* profile = Profile::FromWebUI(web_ui); 1165 Profile* profile = Profile::FromWebUI(web_ui);
1162 1166
1163 #if defined(ENABLE_THEMES) 1167 #if defined(ENABLE_THEMES)
1164 // Set up the chrome://theme/ source. 1168 // Set up the chrome://theme/ source.
1165 ThemeSource* theme = new ThemeSource(profile); 1169 ThemeSource* theme = new ThemeSource(profile);
1166 content::URLDataSource::Add(profile, theme); 1170 content::URLDataSource::Add(profile, theme);
1167 #endif 1171 #endif
1168 1172
1169 content::URLDataSource::Add(profile, new AboutUIHTMLSource(name, profile)); 1173 content::URLDataSource::Add(profile, new AboutUIHTMLSource(name, profile));
1170 } 1174 }
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | content/common/sandbox_linux/sandbox_linux.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698