pub fn prepare(dir: &Path) -> Result<(), String>Expand description
Makes dir (a worker’s connection folder) and the folder holding it, mode 0700, before
the worker starts (decision 201), and checks the whole path. In a folder others can write
in (/dev/shm), another user could have made a folder on it first, or a link, and swap
what is below: the secrets would go where they can read them. So every folder on the path
must be the user’s or root’s, closed to others’ writes unless sticky (/dev/shm, /tmp),
and to group writes unless the group is the user’s own; a link on it must be root’s
(/var/run); the last two folders the user’s alone, mode 0700.
§Errors
A folder that can’t be made, or a path someone else could change.