编译Sanbox

在运行Chromium时遇到SUID sandbox警告,通过更新沙箱并修改chrome_sandbox.target.mk文件解决问题。删除编译选项(--thread-count=4, --threads, --icf=none),然后将编译好的sandbox复制到相应目录,成功消除警告。" 125329567,12280738,ROS模型包创建:从urdf到sdf在gazebo中的应用,"['ROS仿真', 'gazebo模型', 'urdf转换', 'sdf格式', '3D建模']

      chromium启动总是出现警告提示:

[4428:4428:51288848814:WARNING:zygote_host_impl_linux.cc(165)] Running without the SUID sandbox! See http://code.google.com/p/chromium/wiki/LinuxSUIDSandboxDevelopment for more information on developing with the sandbox on.

        更新一下沙箱,找到src/build,执行:  ./update-linux-sandbox.sh, 提示出错:

Could not find /opt/src/chrome-svn/tarball/home/chrome-svn/tarball/chromium/src/build/../out/Debug/chrome_sandbox, please make sure you build the chrome_sandbox target

       原来是没有把Security模块的沙箱编译进来,进入src/sanbox,执行:  make -f sandbox.Makefile,报错了


/usr/bin/ld: unrecognized option '--thread-count=4'

/usr/bin/ld: unrecognized option '--threads'


/usr/bin/ld: unrecognized option '--icf=none'
/usr/bin/ld: use the --help option for usage information


打开chrome_sandbox.target.mk文件,把这几个make选项删除:--thread-count=4  --threads --icf=none

       编译通过,再把src/sanbox/out/Debug/sanbox copy 到 src/out/Debug 目录下:

cp src/sanbox/out/Debug/sanbox src/out/Debug/

       这是更新更新一下沙箱,找到src/build,执行:  ./update-linux-sandbox.sh‘

       通过! 之后启动chromium就不再提示警告信息了。



评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值