check for sandbox param on root (#19216)
This commit is contained in:
Родитель
6d5e494782
Коммит
b49ca7ba2e
|
@ -201,6 +201,14 @@ bool AtomMainDelegate::BasicStartupComplete(int* exit_code) {
|
|||
base::win::PinUser32();
|
||||
#endif
|
||||
|
||||
#if defined(OS_LINUX)
|
||||
// Check for --no-sandbox parameter when running as root.
|
||||
if (getuid() == 0 && IsSandboxEnabled(command_line))
|
||||
LOG(FATAL) << "Running as root without --"
|
||||
<< service_manager::switches::kNoSandbox
|
||||
<< " is not supported. See https://crbug.com/638180.";
|
||||
#endif
|
||||
|
||||
content_client_ = std::make_unique<AtomContentClient>();
|
||||
SetContentClient(content_client_.get());
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче