Skip to content
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

Invoke initgroups() iff we got enough privileges (#11869) #11872

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jvgutierrez
Copy link
Member

Follow up of #11855, that rendered unusable ATS as root when spawned via traffic_manager. As mentioned on #11869, traffic_manager drops privileges when spawned as root and as consequence by the time that traffic_server attempts to call initgroups() it gets an EPERM error.

Fixes #11869

Copy link
Member

@maskit maskit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change is necessary for 9.2.x, which uses traffic_manager. I don't think we need this for 10.x but it's probably nice to keep the code consistent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Ready to Merge
Status: No status
Development

Successfully merging this pull request may close these issues.

ATS 9.2.6 fails to start as root
3 participants