-
Notifications
You must be signed in to change notification settings - Fork 14
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
Test suite does not support rootless containers. #27
Comments
Well, in this case the user has to be smart enough to use it appropriately. We don't have probes for caps yet, and I never have seen some. |
It's certainly easy enough to do with |
Imho with Net-Ping it should be allowed for tests to fail. It's highly specific to the user environment. firewall's, routing, docker, ... Only when he understands why a test fails, he can override it, eg. via capsh seems to be linux specific only. Much better would be crosstesting via external ping/ping6. |
I would ask
Capsh is |
If you try to run this in a rootless container you'll see a lot of failures.
This is because the test suite is not capability aware. It assumes if it has root is has
CAP_NET_RAW
, but it is smart enough to at least know these tests are problematic.You can see this by building a rootless container with
buildah
. Use the attachedbuild.sh
script likebuildah unshare ./build.sh
Then run the test suite with
podman
as a regular user,You can run it again with
cap_net_raw
to see the diff,build.sh.txt
The text was updated successfully, but these errors were encountered: