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

Fix lib injection artifact file permission #3527

Merged

Conversation

TonyCTHsu
Copy link
Contributor

@TonyCTHsu TonyCTHsu commented Mar 15, 2024

What does this PR do?

The change moved the packaging into /tmp the file permissions there default to being wide open. This PR changes the permission to drwxr-xr-x

@TonyCTHsu TonyCTHsu added the dev/tooling Involves tools (e.g. Rubocop, CodeCov) label Mar 15, 2024
@TonyCTHsu TonyCTHsu self-assigned this Mar 15, 2024
@TonyCTHsu TonyCTHsu added this to the 1.21.1 milestone Mar 15, 2024
@TonyCTHsu TonyCTHsu marked this pull request as ready for review March 15, 2024 15:04
@TonyCTHsu TonyCTHsu requested a review from a team as a code owner March 15, 2024 15:04
@@ -5,7 +5,7 @@ echo -n "$RUBY_PACKAGE_VERSION" > auto_inject-ruby.version

source common_build_functions.sh

chmod a+r -R ../tmp/*
chmod -R a+r,go-w ../tmp/*
Copy link
Member

Choose a reason for hiding this comment

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

Can you add a comment here explaining what the permission change is accomplishing, so we can reference it in the future?

Copy link
Member

Choose a reason for hiding this comment

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

Is ../tmp here the same as the top-level /tmp in the root of the filesystem?

If so, should we maybe use a subdirectory of tmp? E.g. so that we don't accidentally package other things that may have left files in /tmp?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Is ../tmp here the same as the top-level /tmp in the root of the filesystem?

No, this is under the dd-trace-rb

@TonyCTHsu TonyCTHsu merged commit 91feddd into master Mar 18, 2024
216 of 219 checks passed
@TonyCTHsu TonyCTHsu deleted the tonycthsu/fix-lib-injection-artifact-file-permission branch March 18, 2024 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev/tooling Involves tools (e.g. Rubocop, CodeCov)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants