-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
BUG: Problem with selinux/runc>=1.0.0-rc7 #3045
Comments
Did you build your own runc, without the "selinux" buildtag? |
Yes I did, cf. above:
The exact build steps from the tutorial are:
This works with the runc-tags I indicated:
Each runc-version was built separately of course. |
Should be git clone https://github.com/opencontainers/runc.git $GOPATH/src/github.com/opencontainers/runc |
Since not all platforms support SELinux runc version needs to be modified. Podman is using SELinux so it requires a runc that understands it. |
Fair enough, I'll put that additional tag in the PR for updating the installation. However, the build still does not succeed (now with having built runc from master, using
All variants of glib* are installed, and the linker should be able to find it:
If I then try to also build podman with
So, after several hours of trying, the simple fact remains that building podman together with the latest runc does not work, but that things do work (albeit potentially with selinux bugs?) before runc-v1.0.0-rc7. I'd appreciate some help here, because I'm a bit out of my depth here... |
Is this an SELInux issue? |
@rhatdan |
Ok I am going to close this issue then. |
Weeeeeell, are you going to open an issue with selinux then? I'm preparing the PR for cleaning up the installation docs, and right now, the (corrected) build instructions (i.e. with the build tag you wanted) yield a broken installation on RHEL with selinux. (and without the build tag the installation is also broken, unless runc is taken <1.0.0-rc7). |
Well this is not caused by SELinux, your system got mislabeled somehow. Potentially from running containers with SELinux disabled, but I have no idea how. And there is little SELinux can do about a mislabeled system. |
TBH, I don't see where there could be such a "somehow". I followed the install instructions on a fresh RHEL VM, and I can get a working system without deactivating selinux if building runc<1.0.0-rc7 without the selinux-buildtag. You said above that runc however must be built with this tag, but then I end up with a broken build, somewhere in the interplay between selinux/runc/podman. Therefore, this issue is transparently not closed IMO, but maybe things will be easier to reason about once I get around to posting the PR for the documentation update. |
Well see if you can get a repeatable failure. |
As mentioned in #3068:
|
After building podman from master for #2887, I encountered a bug that is either due to podman, selinux or runc. I'm starting to file here, because I don't know if this is actually a runc-problem, because I'm encountering it when running podman, and because the usual crowd here (esp. @rhatdan) seems to be active in all three projects anyway.
Assume we have a simple file
test.dockrf
:Then, after building runc (and podman) from master as described in the tutorial, I get:
I know there were some updates of runc regarding selinux recently, but it seems not everything is working yet (but then again, this might just be on the podman side). In any case, the container build succeeds for runc versions
1.0.0-rc4
,1.0.0-rc5
,1.0.0-rc6
, but fails for1.0.0-rc7
,1.0.0-rc8
, and master.The selinux config is from a vanilla azure RHEL machine:
The text was updated successfully, but these errors were encountered: