losing mounts on autofs restart
Hi,
I seems to have a bug, we are using autofs in our environment, and when a user or process is running in bubblewrap sandbox context with the bwrap .. --bind /autofs_path /autofs_path .. while the autofs service on the host is being restarted the /autofs_path inside the sanbox is lost and trying to access any autofs mount-point fail with:
ls: cannot access '/autofs_path/mountp1': No such file or directory
This, until exiting and re-entering to the bubblewrap sandbox.
I suspect that this is something have to do with the propagation, where from the host namespace I see shared:
$ findmnt -rn -o PROPAGATION,TARGET /autofs_path shared /autofs_path
and from bubblewrap private: $ findmnt -rn -o PROPAGATION,TARGET /autofs_path private /autofs_path
but not sure, and I could not find anyway to handle this in bubblewrap, I know that for docker we add :shared when we want to bind mount autofs mounts, but what are my options here?
If it matter I am running bwrap with SUID.
Thanks.