containers / containers/bubblewrap

losing mounts on autofs restart

Open
#687 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
8.7k
Forks
386
Avg merge
3d 17h
Merged PRs (30d)
11

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.