Skip to content

fix(registry): coreutils stat/chmod/ls show real permission bits#269

Merged
NathanFlurry merged 2 commits into
mainfrom
stack/fix-registry-coreutils-stat-chmod-ls-show-real-permission-bits-rppqxnlo
Jul 4, 2026
Merged

fix(registry): coreutils stat/chmod/ls show real permission bits#269
NathanFlurry merged 2 commits into
mainfrom
stack/fix-registry-coreutils-stat-chmod-ls-show-real-permission-bits-rppqxnlo

Conversation

@NathanFlurry

@NathanFlurry NathanFlurry commented Jul 4, 2026

Copy link
Copy Markdown
Member

No description provided.

@NathanFlurry

Copy link
Copy Markdown
Member Author

Stack for rivet-dev/secure-exec

Get stack: forklift get 269
Push local edits: forklift submit
Merge when ready: forklift merge 269

Teach the VM's filesystem layer POSIX permission semantics so native C tools
(vim, coreutils) behave like Linux:
- wasi-libc patch exposes host permission bits through new host_fs.fd_mode /
  path_mode imports so stat/fstat/lstat return real mode bits (0644/0755)
- chmod/fchmod implemented via the host_fs bridge (previously ENOSYS)
- access() reflects the mode's rwx bits (X_OK no longer always succeeds)
- truncate/ftruncate update the size stat reports; fd metadata stays coherent
- fixes an intermittent EFAULT on create/write under wasm heap growth
This fixes vim opening every file readonly and 'touch: Bad address', with a
comprehensive fs_probe.c that is diffed 1:1 against native Linux.
@NathanFlurry NathanFlurry force-pushed the stack/feat-registry-filesystem-native-parity-stat-mode-bits-chmod-access-ozpppswp branch from 3fdd7fb to b18da94 Compare July 4, 2026 19:23
@NathanFlurry NathanFlurry force-pushed the stack/fix-registry-coreutils-stat-chmod-ls-show-real-permission-bits-rppqxnlo branch from 8145b07 to a325c65 Compare July 4, 2026 19:23
@NathanFlurry NathanFlurry changed the base branch from stack/feat-registry-filesystem-native-parity-stat-mode-bits-chmod-access-ozpppswp to main July 4, 2026 19:27
@NathanFlurry NathanFlurry merged commit a325c65 into main Jul 4, 2026
2 of 3 checks passed
@railway-app railway-app Bot temporarily deployed to secure-exec / preview July 4, 2026 19:27 Inactive
@NathanFlurry NathanFlurry deleted the stack/fix-registry-coreutils-stat-chmod-ls-show-real-permission-bits-rppqxnlo branch July 4, 2026 19:27
@railway-app railway-app Bot temporarily deployed to secure-exec / production July 4, 2026 19:27 Inactive
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.

1 participant