-
Notifications
You must be signed in to change notification settings - Fork 5
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
Failure: "operation not permitted" inside jail #18
Comments
The last "useful" log line "Start untar layer" seems to come from here: Which would seem to call this function: And this function does... an untar, basically, from what I can tell. There's no way to go drill deeper on what exactly there fails but there does not appear to be anything overly strange or difficult in there. |
Okay, this turns out to be a red herring. The actual issue appears to be the line before, which for some reason is not being logged as failed:
It is shown in the lines above:
... that "legacy" mounts are being forced. And this fails:
So this is not a problem of podman per se - but it is a problem caused by the storage driver using legacy mount instead of the standard zfs mount. This behaviour was introduced a long time ago (ping @Mic92): So the questions become then:
|
What might work is setting mountpoint=none and |
Aha - any hints on where that could be set (or would that require a rebuild)? Or do you mean using 'overlay' instead of 'zfs' and then specifying mountopt and mount_program? |
|
Can confirm that this indeed works. Now to figure out how to make this work with podman... |
Not even sure about the mounting anymore now. I ran podman in truss:
...and it appears that there is data being written to mount point at least:
There's a good number of these before things go bad, so that would at least appear to have passed the point where a failing mount would cause trouble. Unless it's all buffered or god knows and the error only bubbles up later. The first occurrence of "not permitted" is after a good few files and dirs appear to have been created:
Not even sure how relevant it is. But right after:
So it would appear then that something barfed during extraction/copy of the archive? Added the full truss log here if anyone wants to take a look. |
Trying some basic podman things in a FreeBSD 14.1-RELEASE jail. Permissions have been given to the jail:
Trying a basic image:
root@web-podman:~ # podman --log-level trace run --rm --platform linux/x86_64 docker.io/debian:latest NAME=FreeBSD cat /etc/debian-version
This fails due to "something" being not permitted. Unfortunately, even "trace" log level doesn't say anything about what is failing or not permitted.
Reading/writing/creating things in the ZFS dataset appears to be working fine from within the jail commandline. Kind of stumped here, any pointers would be greatly appreciated.
The text was updated successfully, but these errors were encountered: