-
Notifications
You must be signed in to change notification settings - Fork 18k
os/exec: “operation not permitted” in TestCredentialNoSetGroups #24736
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
Comments
What is special about this machine? The test works fine on my Arch Linux box. Are you running the test as your regular user? Does running the test alone fail too? |
It's a company-owned virtualized machine running a variant of Debian Testing. I'm sure there are many special things about it, but I'm sure I can't enumerate them. 🙂 I am running the test as my regular user. The test fails in isolation, and the test binary also fails if I run in directly.
|
If you modify the code to panic right before it re-runs itself (the test binary), and look at Does the issue persist if you |
Indeed weird, it works in my Ubuntu Bionic vm. What does |
Oh, here's a clue. My current primary group is not the group that owns my
So the test binary is executable by group |
And indeed, after So it seems the test is sensitive to primary group changes? |
So, what's the right behavior here? Should the test pass even if the group doesn't match, or perhaps we should skip the test if the user's primary group doesn't match the test binary's primary group? |
This happened to me too. It's most likely because the LDAP server started reporting a different primary group for you; it did for me. This is not a common situation. I don't think anything needs to change in Go. |
TestCredentialNoSetGroups
fails reliably on my (Debian-based) Linux machine.(CC: @ianlancetaylor, @walac)
The text was updated successfully, but these errors were encountered: