Conversation
|
This pull request is a work in progress. The intent is to fix #384 |
|
Can one of the admins verify this patch?
|
fac3f78 to
9e10887
Compare
Read /proc/self/mountinfo only once instead reading it for every "--bind" flag on the command line.
|
I didn't really review this, but clearly its not doing recursive bind mounts correctly as it only adds one mount info for the mount. In the setuid case, any time we get a wrong value for |
|
Thanks very much for taking a look.
Is it possible to simulate the effects of a mount sufficiently so that the
mountinfo file is not read for every
bind mount requested? Maybe it's intractable or so risky that the approach
I took can't be salvaged.
I don't understand the recursive mount handling and the issues
with mount propagation. Are there
any tests in the bubblewrap codebase for what's required ... or maybe you
could describe in more
detail why the current code does what it does for recursive mounts.
As I said in one of my comments, I'll need assistance from the maintainers
in order to land a change
like this. I'm definitely not an expert on this stuff ...
Thanks again!
…On Tue, Aug 25, 2020 at 9:18 AM Alexander Larsson ***@***.***> wrote:
I didn't really review this, but clearly its not doing recursive bind
mounts correctly as it only adds one mount info for the mount.
Also, it doesn't do anything about flags on remount.
In the setuid case, any time we get a wrong value for current_flags for
some reason we risk changing the mount flags of an existing mount and
accidentally dropping a sysadmin-set flag (such as nosetuid, or read-only)
which is a security failure.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#385 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAGVMNM5IR4JB66YVGZ6NDSCO2Y7ANCNFSM4P75MVNQ>
.
|
|
Having alternative for constantly reading |
Read /proc/self/mountinfo only once instead reading it for every "--bind" flag
on the command line.