Running Sandstorm browser tests on Debian 10 (buster)

已查看 23 次
跳至第一个未读帖子

Troy Farrell

未读,
2020年12月16日 23:21:142020/12/16
收件人 Sandstorm Development

In case you hadn't noticed, I use many different systems every day.  Today I've built Sandstorm on a Debian 10 system.  I noted that make bundle && make test fails with the following error when trying to start sandstorm from tests/tmp-sandstorm:

*** Uncaught exception ***
sandstorm/run-bundle.c++:1418: failed: unshare(CLONE_NEWUSER): Operation not permitted
stack: 4e1747 4e028b 4e01bc 6accb5 6ac87f
make: *** [Makefile:167: test] Error 1

I suspect that sandstorm is trying to do its process namespace magic and something that it's doing is not allowed.  But I'm far from understanding what.  This is a clean system.  Sandstorm has not been installed on it yet and there is no sandstorm user or group.  Also, I'm running the build and test as a normal user, not as root.

I'm going to try installing Sandstorm (as built on the system) to see if it works once installed.

Thanks for your feedback,
Troy

Troy Farrell

未读,
2020年12月17日 00:03:312020/12/17
收件人 Sandstorm Development
I can confirm that installing Sandstorm with make install causes the tests to continue without the above unshare(CLONE_NEWUSER): Operation not permitted error.  I'm not sure why, but removing the sandstorm user and group does not cause the error to return.  Removing /opt/sandstorm, /usr/local/bin/sandstorm, tests/tmp-sandstorm and make clean && make bundle && make test still works.  Doing the above and rebooting does not bring back the above error.  I haven't figured out the reason this fails the first time and never again after installation.

Troy Farrell

未读,
2020年12月17日 00:09:582020/12/17
收件人 Sandstorm Development
I found it!  By running $ sudo grep -ri sandstorm /etc, I found that Sandstorm sets sysctl kernel.unprivileged_userns_clone=1.  When I set this to zero, the test fails in the same manner I documented earlier.  I'll see if I can modify the test script to check for this.

Troy Farrell

未读,
2020年12月17日 01:00:082020/12/17
收件人 Sandstorm Development
I've submitted an issue to discuss possible changes to the test script.

回复全部
回复作者
转发
0 个新帖子