diff --git a/scripts/build-module.sh b/scripts/build-module.sh index 0185c41d..021f5207 100755 --- a/scripts/build-module.sh +++ b/scripts/build-module.sh @@ -72,6 +72,8 @@ while IFS= read -r file; do mkdir -p "$stage/$(dirname "$file")" cp "$file" "$stage/$file" done < <(jq -r '.[]' <<<"$extras") +# Keep packaged module directories from being writable by group or other users. +find "$stage" -type d -exec chmod go-w {} + archive="$output/${crate}-${version}-${host}.tar.gz" tar -C "$stage" -czf "$archive" . echo "$archive"