Closed asottile closed 3 years ago
@giuseppe PTAL - Could this be fuse-overlay itself, given the test mount from c/storage is failing?
that is a test failing in containers/storage. I think it is the issue we had with not testing userxattr
on Ubuntu kernels where unprivileged overlay exists but it works differently than upstream.
it should be fixed upstream now
I am not sure about this.
My reading of: https://github.com/containers/storage/blob/master/drivers/overlay/overlay.go#L604-L624 Says that if these mounts will both fail throwing this error, if the kernel does not support the userxattr option for rootless mode.
Whoops... this is still an issue on Debian Bullseye RC1 with podman v3.2.0-rc2
(b060a7726e8e97f7752b40f18e69236cb330d22d) and kernel v5.10.0-6-amd64
.
Error: kernel does not support overlay fs: kernel too old to provide multiple lowers feature for overlay: driver not supported
# /etc/modprobe.d/10-overlay-userns.conf
options overlay permit_mounts_in_userns=1
[ 3.600287] overlayfs: overlayfs: Allowing overlay mounts in user namespaces bears security risks
[...]
[ 1709.190690] overlayfs: unrecognized mount option "userxattr" or missing value
[ 1709.190944] overlayfs: upper fs does not support xattr, falling back to index=off and metacopy=off.
@giuseppe PTAL
is the Debian kernel using the same patches for enabling unprivileged overlay as Ubuntu?
That could be the reason why these tests fail, does it fallback to fuse-overlayfs?
From the very beginning the Debian Overlay module has got a switch in config to allow overlay in usersns. It worked in previous versions of Podman. This is not a backported patch or anything like that.
Yes, the fallback works. But I wanted to work with the module again.
that was never supported. In some older kernel versions it was not possible to create whiteout files
I've just checked it: It's the same kernel patch as in Ubuntu, but there it's activated by default. In Debian, it needs a switch. Sad to hear it's not supported. Debian won't get 5.11 in the near future.
That's the patch Debian uses (even for Bullseye / v11): https://salsa.debian.org/kernel-team/linux/blob/master/debian/patches/debian/overlayfs-permit-mounts-in-userns.patch
Since it acts like root, it normally should work. Even with whiteout files. Can't you just add an override to not set userxattr
?
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
The first run of podman after installation spews this error:
Steps to reproduce the issue:
podman
command (only the first one shows this error)Describe the results you received:
Describe the results you expected:
not an error
Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide?
Yes I believe this is the latest version
Additional environment details (AWS, VirtualBox, physical, etc.):
both AWS + VirtualBox