Skip to content

Drop privileges before creating temporary directory#2667

Merged
sebix merged 1 commit intocerttools:developfrom
creideiki:drop-privileges-for-intelmqctl-tests
Nov 7, 2025
Merged

Drop privileges before creating temporary directory#2667
sebix merged 1 commit intocerttools:developfrom
creideiki:drop-privileges-for-intelmqctl-tests

Conversation

@creideiki
Copy link
Contributor

Otherwise, when the tests are run as root, the temporary directory gets created as root, but the cleanup code runs with dropped privileges, so it cannot remove it.

Otherwise, when the tests are run as root, the temporary directory
gets created as root, but the cleanup code runs with dropped
privileges, so it cannot remove it.
@creideiki
Copy link
Contributor Author

This makes no practical difference in GitHub CI, since its runners are regular users. However, we want to run tests in our internal CI as well, and there, the runners are root.

Copy link
Contributor

@kamil-certat kamil-certat left a comment

Choose a reason for hiding this comment

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

LGTM

@sebix sebix self-assigned this Nov 7, 2025
@sebix sebix added this to the 3.5.1 Patch release milestone Nov 7, 2025
@sebix sebix merged commit 0342b77 into certtools:develop Nov 7, 2025
29 of 30 checks passed
@creideiki creideiki deleted the drop-privileges-for-intelmqctl-tests branch November 7, 2025 12:50
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