Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[overlay]: enable no privileges #22

Closed
jessfraz opened this issue Feb 21, 2018 · 7 comments
Closed

[overlay]: enable no privileges #22

jessfraz opened this issue Feb 21, 2018 · 7 comments

Comments

@jessfraz
Copy link
Collaborator

requires this Ubuntu kernel patch http://kernel.ubuntu.com/git/ubuntu/ubuntu-artful.git/commit/fs/overlayfs?h=Ubuntu-4.13.0-25.29&id=0a414bdc3d01f3b61ed86cfe3ce8b63a9240eba7

@cyphar
Copy link

cyphar commented Feb 23, 2018

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).

@AkihiroSuda
Copy link
Collaborator

Do you know why Ubuntu patch was rejected?
Can we resubmit with /proc/sys/unprivileged_userns_overlayfs knob?

@cyphar
Copy link

cyphar commented Feb 23, 2018

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.

@AkihiroSuda
Copy link
Collaborator

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.

@cyphar
Copy link

cyphar commented Feb 26, 2018

Eric has just re-sent the new FUSE patchset.

@alban
Copy link

alban commented Feb 26, 2018

@jessfraz did you do your demo using Ubuntu? To have the patch set to be able to mount FUSE in a non-init userns?

@jessfraz
Copy link
Collaborator Author

jessfraz commented Feb 26, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants