Skip to content

fix(fs): enforce write limits on chmod copy-on-write#456

Merged
chaliy merged 1 commit intomainfrom
claude/fix-417-Y2nIj
Mar 2, 2026
Merged

fix(fs): enforce write limits on chmod copy-on-write#456
chaliy merged 1 commit intomainfrom
claude/fix-417-Y2nIj

Conversation

@chaliy
Copy link
Contributor

@chaliy chaliy commented Mar 1, 2026

Summary

  • Call check_write_limits() before copy-on-write in chmod() to prevent bypassing limits
  • Ensure parent directory exists in upper before writing (same pattern as other CoW paths)

Test plan

  • test_chmod_cow_enforces_write_limits - chmod on lower file near limit is rejected
  • All existing overlay tests pass

Closes #417

@chaliy chaliy force-pushed the claude/fix-417-Y2nIj branch from 5e908ef to 247ebf4 Compare March 2, 2026 00:02
@chaliy chaliy merged commit 418011a into main Mar 2, 2026
17 checks passed
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.

[M-3] OverlayFs chmod copy-on-write bypasses limits

2 participants