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

ENH: utils: acquire groups of intelmq user in drop_privileges #2507

Merged
merged 2 commits into from
Jul 9, 2024

Conversation

monoidic
Copy link
Contributor

@monoidic monoidic commented Jul 3, 2024

This adds additional, non-primary groups associated with the intelmq user when running drop_privileges. This makes the behaviour of running intelmqctl as root somewhat closer to the behaviour of running it via intelmq-manager, which runs sudo -u intelmqctl [...]

monoidic and others added 2 commits July 9, 2024 08:47
- `intelmq.lib.utils.drop_privileges`: When IntelMQ is called as `root` and dropping the privileges to user `intelmq`, also set the non-primary groups associated with the `intelmq` user. Makes the behaviour of running intelmqctl as `root` closer to the behaviour of `sudo -u intelmq ...` (PR#2507 by Mikk Margus Möll).
@sebix sebix merged commit b3096ba into certtools:develop Jul 9, 2024
20 checks passed
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.

3 participants