编译的铬源代码以及沙盒执行问题 [英] Compiled chromium source code and the execution with sandbox issue
问题描述
我已经下载了铬源,并最终对其进行了编译。
I've downloaded the chromium source and finally got it compiled. It took super long time to build the source.
我遵循了官方网站上的指示
I've followed the instruction in the official site
https://code.google.com/p/chromium/wiki/LinuxSUIDSandboxDevelopment
不幸的是,错误仍然存在。
Unfortunately, the error is still there.
我所做的事情:
sudo cp out/Debug/chrome_sandbox /usr/local/sbin/chrome-devel-sandbox #needed if you build on NFS!
sudo chown root:root /usr/local/sbin/chrome-devel-sandbox
sudo chmod 4755 /usr/local/sbin/chrome-devel-sandbox
,然后将其导出到我的.bashrc
and I export this in my .bashrc
export CHROME_DEVEL_SANDBOX=/usr/local/sbin/chrome-devel-sandbox
,然后执行可执行文件,并收到以下错误
and then I executed the executable and got the following error
chromium/src/out/Debug$./chrome
[22051:22051:0929/151724:FATAL:browser_main_loop.cc(160)] Running without the SUID sandbox! See https://code.google.com/p/chromium/wiki/LinuxSUIDSandboxDevelopment for more information on developing with the sandbox on.
#0 0x7f0051e91d3e base::debug::StackTrace::StackTrace()
#1 0x7f0051f01b05 logging::LogMessage::~LogMessage()
#2 0x7f0056a470f2 content::(anonymous namespace)::SetupSandbox()
#3 0x7f0056a46a16 content::BrowserMainLoop::EarlyInitialization()
#4 0x7f0056a52bb6 content::BrowserMainRunnerImpl::Initialize()
#5 0x7f0056a45c7f content::BrowserMain()
#6 0x7f0051e3a4af content::RunNamedProcessTypeMain()
#7 0x7f0051e3ca08 content::ContentMainRunnerImpl::Run()
#8 0x7f0051e39a95 content::ContentMain()
#9 0x7f0050d3aab5 ChromeMain
#10 0x7f0050d3aa62 main
#11 0x7f0047ef176d __libc_start_main
#12 0x7f0050d3a945 <unknown>
==================== ================================================== ========
================================================================================
按照官方网站的建议,
我运行了一个脚本并得到以下消息:
I ran a script and got the following message:
/chromium/src/build$ sudo ./update-linux-sandbox.sh
Your setuid sandbox is up to date
Make sure you have "export CHROME_DEVEL_SANDBOX=/usr/local/sbin/chrome-devel-sandbox" somewhere in your .bashrc
This variable is currently: empty
当我键入
echo $CHROME_DEVEL_SANDBOX
/usr/local/sbin/chrome-devel-sandbox:
所以我想出口工作很好。
So I guee the export works well.
我一直在寻找这个问题的答案,但到目前为止还没有运气。
I have searched around the answer to this question but no luck so far.
任何反馈将不胜感激。谢谢
Any feedback will be appreciated. Thanks
推荐答案
这就是我所做的:
- 在差异计算机上构建(在我的情况下,我使用服务器,Ubuntu 12.04)
- 复制到笔记本电脑(Ubuntu 13.10)
- 运行它
我能够运行它,但是不幸的是,我还是不能100%地确定问题出在哪里。 :(
I was able to run it but unfortunately I am still not 100% sure what the problem was. :(
我想构建环境会有所不同,因为我与其他人共享服务器。
I guess the build environment would be different since I share the server with others.
希望这样做帮助,
这篇关于编译的铬源代码以及沙盒执行问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!