Yep, it’s all bind mounts from /persist/<path> to /<path> where /persist is the actual root of the storage device.
While setting this up, I was surprised to learn that you can just bind mount files and it works, in my mind it was only supposed to work on directories.
And everything in there is referenced by hash, so it’s actually a little bit of work to inject something in there without your express written consent :)
It’s mounted twice, ro for the world and rw in the daemon mount namespace
ah that’s cool! When your
mounthas the same partition for different mountpoints how does that work? Some kind of bind-mount?Yep, it’s all bind mounts from
/persist/<path>to/<path>where/persistis the actual root of the storage device.While setting this up, I was surprised to learn that you can just bind mount files and it works, in my mind it was only supposed to work on directories.
And everything in there is referenced by hash, so it’s actually a little bit of work to inject something in there without your express written consent :)
Well, trusted-users (which I am) can kinda just inject shit into the store via a poisoned substituter.
But yeah otherwise it’s supposed to be secure
Yeah, that’s how most of our development works :)