You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
--bind-try fails when the source is a bind mounted deleted file #811
touch a b
mount --bind a b
bwrap --bind-try b /x --ro-bind / / echo ok1
rm a
bwrap --bind-try b /x --ro-bind / / echo ok2
alternate example, without root:
touch a b; bwrap --bind / / --ro-bind $PWD/a $PWD/b sh -c 'bwrap --bind-try b /x --ro-bind / / echo ok1; rm a && bwrap --bind-try b /x --ro-bind / / echo ok2'
expected behavior: ok1, ok2
actual behavior: ok1, bwrap: Can't bind mount /tmp/x/b on /x: Unable to mount source on destination: No such file or directory
basically, the file exists in the sense that it can be opened and I/O performed, but cannot be bind-mounted from. unfortunately, it doesn't seem to be possible to work around with new mount API. I'm not sure whether it makes more sense to argue the case to kernel maintainers, or silently ignore this error in bubblewrap.
Activity