Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reach outside of sandboxfs #79

Closed
Globegitter opened this issue Apr 3, 2019 · 2 comments
Closed

Reach outside of sandboxfs #79

Globegitter opened this issue Apr 3, 2019 · 2 comments

Comments

@Globegitter
Copy link

Globegitter commented Apr 3, 2019

I am just debugging a nodejs rule that seems to behave in a non-hermetic way (see bazelbuild/rules_nodejs#612 if you are interested in background) and I thought sandboxfs can help me there with greater hermeticity, but the rule still behaves exactly the same way. So my question, given an absolute path is it still possible to access the filesystem outside of sandboxfs? And if so is there some way of blocking this?

@jmmv
Copy link
Contributor

jmmv commented Apr 3, 2019

Yes, it's possible to reach absolute paths because sandboxfs does not actually do sandboxing. Grr, the name of this project is wrong...

See Bazel's --sandbox_block_path, which may help you.

@jmmv jmmv closed this as completed Apr 3, 2019
@Globegitter
Copy link
Author

I guess indirectly it helps, at least in the Bazel case, by not using symlinks anymore but yes names are hard. And thanks for the pointer to the flag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants