[overlay]: enable no privileges
jessfraz opened this issue · 7 comments
Eric Biederman has been working recently on getting unprivileged FUSE working. The hope is that this could lead to unprivileged overlay (and other filesystems) as well in upstream kernels. We'll see how that goes though (some Ubuntu folks tried this a while ago and it didn't get merged last time).
Do you know why Ubuntu patch was rejected?
Can we resubmit with /proc/sys/unprivileged_userns_overlayfs knob?
Do you know why Ubuntu patch was rejected?
The maintainer called the patch "very brave". Effectively the concern is that the permissions checks for the copyup logic or other similar features of overlayfs
could cause severe security problems. Luckily the concern isn't as major as other filesystems (the only user-provided data is the option string as opposed to an entire block device).
Can we resubmit with /proc/sys/unprivileged_userns_overlayfs knob?
I wouldn't really put money on it, as Eric would probably prefer that we just make overlayfs safe rather than have a knob to enable (potential) root exploits.
Thanks for the info.
Also, starting with v0.7 (Ubuntu 18.04), ZFS on Linux allows unprivileged users to manipulate filesystems. (zfs allow
).
It should be probably faster and stabler than FUSE overlay.
Eric has just re-sent the new FUSE patchset.
@jessfraz did you do your demo using Ubuntu? To have the patch set to be able to mount FUSE in a non-init userns?