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

[18.09] prometheus/exporters: fix regression in DynamicUser behavior #51560

Conversation

delroth
Copy link
Contributor

@delroth delroth commented Dec 5, 2018

Cherry-pick from #51545 onto 18.09.

Instead of setting User/Group only when DynamicUser is disabled, the
previous version of the code set it only when it was enabled. This
caused services with DynamicUser enabled to actually run as nobody, and
services without DynamicUser enabled to run as root.

Regression from fbb7e0c.

(cherry picked from commit 10041e7)
@delroth
Copy link
Contributor Author

delroth commented Dec 5, 2018

(cc @globin -- not sure if you were planning to do it on your own, so here's a PR for convenience)

@globin
Copy link
Member

globin commented Dec 5, 2018

Yes, sorry just did it myself, noticing this too late.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants