Carry comment: the web server reads the file, no verifier enforces it

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Eureka 2026-11-14 08:44:30 +00:00
commit d13d98a083

View file

@ -824,8 +824,8 @@ impl StaticReleasePort for FilesystemStaticRelease {
.mode(0o444)
.open(&temporary_carry)?;
// The creation mode is masked by the service's umask
// (UMask=0027 yields 0440); the sealed-tree verifier accepts
// exactly 0444, so say it on the open handle.
// (UMask=0027 yields 0440), and the web server reads this file
// as "other"; say 0444 on the open handle.
file.set_permissions(fs::Permissions::from_mode(0o444))?;
file.write_all(&bytes)?;
file.sync_all()?;