improve readme
This commit is contained in:
@ -106,6 +106,14 @@ nix 是一个 fully reproducible 的构建和配置系统。
|
|||||||
- .envrc: 如果不适用nix,注释掉,或者 direnv block 一下不加载就行
|
- .envrc: 如果不适用nix,注释掉,或者 direnv block 一下不加载就行
|
||||||
- .gitignore
|
- .gitignore
|
||||||
|
|
||||||
|
## Common problems
|
||||||
|
|
||||||
|
### syscall 解析不出来
|
||||||
|
|
||||||
|
rust 里面,nix 这个库用了宏解析头文件来生成 syscall 列表,所以如果头文件没有那就是没有。这种情况在 alpine 的 musl 容器里面常见。
|
||||||
|
|
||||||
|
如果需要静态链接的二进制建议使用 nix 来构建,否则建议在对应环境里面安装 libseccomp 并且用同样的环境来构建动态链接的二进制。
|
||||||
|
|
||||||
## 比较相近的项目
|
## 比较相近的项目
|
||||||
|
|
||||||
- [cloudflare/sandbox](https://github.com/cloudflare/sandbox): cloudflare/sandbox 在运行时配置规则,我们是在构建时配置规则
|
- [cloudflare/sandbox](https://github.com/cloudflare/sandbox): cloudflare/sandbox 在运行时配置规则,我们是在构建时配置规则
|
||||||
|
Reference in New Issue
Block a user