-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
e2e: rethink setenforce-0 #18564
Comments
Commit 3a3c558 added these lines but there's no indication of why SELinux would play a role. Maybe because the registry setup mounts HOME directories into the registry container? I wonder if we couldn't just nuke all this code and use the |
Yes please nuke this, I was also very surprised when I saw it. This by definition also means it skips all these test as rootless as setenfore is only allowed as root. |
I didn't volunteer (yet) to do the work as time is scarce. But I had a quick look and it seems like a bit of work to get the entire file migrated. |
We should not change selinux, in a parallel context this can change the behavior of other tests and we should never disable selinux anyway. Lets see if this passes CI or not. Fixes containers#18564 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Given that this doesn't work in a parallel context anyway (TOCTOU) I am just going to remove the setenfore calls and see if CI passes (#18607). We can look into using hack/podman-registry-go another time. |
Found by accident while reviewing #18544:
podman/test/e2e/login_logout_test.go
Lines 45 to 50 in 493aac6
podman/test/e2e/push_test.go
Lines 248 to 252 in 493aac6
Let's understand if/why these are needed.
The text was updated successfully, but these errors were encountered: