-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Security: ignore file ownership when extracting Go
Certain Go tarballs specified that some files, such as the `go` binary, were supposed to be owned by a non-root user. When running as root, dp-golang extracted those files and preserved ownership, which lead to those files being writable by a non-root user. At the very least, this affected Go tarballs on macOS before 1.21. This switches to extracting the tarballs with `tar`’s `--no-same-owner` and `--no-same-permissions` flags.
- Loading branch information
1 parent
721fd97
commit 457d930
Showing
2 changed files
with
28 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters