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: use cache directory in users home instead of system-wide tmp dir #55

Merged
merged 3 commits into from
Apr 15, 2024

Conversation

kayahr
Copy link

@kayahr kayahr commented Apr 12, 2024

Using a cache directory in users home directory fixes problems with conflicting user permissions and is also more secure because other users cannot inject executable code by placing a manipulated file in tmp.

Fixes #51

@robertsLando robertsLando changed the title Use cache directory in users home instead of system-wide tmp dir fix: use cache directory in users home instead of system-wide tmp dir Apr 12, 2024
Copy link
Member

@robertsLando robertsLando left a comment

Choose a reason for hiding this comment

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

Add a mention on readme please here: https://github.com/yao-pkg/pkg#native-addons

@robertsLando robertsLando merged commit a217727 into yao-pkg:main Apr 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Permission problems with /tmp/pkg directory when multiple users use packaged binaries with native node modules
2 participants