This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
PVF worker: consider securing with landlock
#7243
Labels
T4-parachains_engineering
This PR/Issue is related to Parachains performance, stability, maintenance.
ISSUE
Overview
I just found out about landlock. We are already working on a
seccomp
-based solution but that has been delayed due to, in a nutshell, the difficulty of knowing which syscalls are safe to block. Landlock might be easier and less controversial to implement, as it has a smaller scope (only restricts FS access). I expect it to be a temporary solution that can be totally replaced byseccomp
sandboxing once that lands, but if it's quick to implement we should do it now. There is a Rust crate.Alternative
If for some reason
landlock
doesn't work out, we can consider usingchroot
to restrict FS access. Its use as a security mechanism is widely discouraged, even by the manpage, but it may be better than nothing for now, and I think the caveats don't apply to us.Related issues
#7266 is a prerequisite.
The text was updated successfully, but these errors were encountered: