[BUG] Mode updates leave persistent access ACLs inconsistent #10

Closed
opened 2026-09-29 14:23:54 +02:00 by erikinkinen · 0 comments
Owner

Summary

The ext metadata setter writes mode bits without changing the corresponding access-ACL classes. On an inode with a valid access ACL, changing owner/group/other mode permissions can leave internally inconsistent persistent metadata. The complete permission reader then rejects that inode instead of returning usable evidence.

Reproduction

Create admitted ext media with a valid access ACL corresponding to mode 0750, then request a native metadata mode change to 0700 through the original authorized provider route. Read complete permission evidence from the same retained inode afterwards. Current source updates the mode field only, leaving the old group or mask permissions in the ACL. This report is source-confirmed; tests, images and VM runs were not executed.

Expected and actual behavior

Expected: update the owner, group-or-mask and other access-ACL permissions with the requested mode in the same original metadata operation. Preserve named entries, default ACLs, shared value ranges, shared external blocks and value-inode lifetimes through copy-on-write as needed. Retain native ceilings, metadata invalidation, checksums, quota accounting, journal rollback and uncertain-write handling.

Actual: apply_mode changes only the inode mode bytes. No ACL edit accompanies write_metadata_update. A subsequent complete ACL/mode comparison refuses the inconsistent result. No native authority escape is claimed.

Environment and identity

  • Component revision: E2fsd 407efa3ea1.
  • Integration selection: 328c153f6420049d75a57230d78c27703ce4bead.
  • Image/runtime/toolchain: not executed for this finding.
  • Route: admitted original mounted ext inode and private native metadata operation.
  • Last known working revision: unknown.

Evidence and prior checks

Persistent ACL metadata checkpoint — 29 September 2026: e2fsd ac258003, docs 2d3de8f0, integration cd4f7625.

The original ext metadata operation now preflights all selected fields and complete access ACLs, changes only owner/group-or-mask/other permissions, and preserves named/default entries and full-width owner IDs. Shared tables and immutable values use copy-on-write with exact reference lifetimes. Local alias pressure uses actual table geometry, the other attribute store or value-inode storage. Root metadata follows the original native scope; the full nonzero table reference domain has no separate 1024-owner ceiling. The incompatible Hurd/EA count-word layout refuses during mount parsing.

Mode/ACL coherence and attribute accounting are implemented. Modern charges follow every descriptor's owner; legacy values retain original independent quota identities. Growth, truncation and inline conversion conserve charges, fast symlinks distinguish attributes from data, and retained inline payload is persisted before quota scanning reuses its scratch. Every edit retains the original transaction, checksums and permission epoch. Uncertain persistent completion remains fail-stop without replay. No capability, endpoint or private inode-selector ABI is added.

Twenty-four new controls are authored and unrun, covering actual media/provider metadata, sharing, full IDs, root, both storage-movement directions, large immutable ACLs, count/space exhaustion, quota identity/cluster charges, real quota-file inline conversion, growth/truncation, fast symlinks, journal rollback and uncertain writes. Rustfmt was applied. Changed Rust source remains below one thousand lines (maximum 922), with inline rustdoc and missing_docs retained. A read-only inventory covers 76 repositories and 3355 tracked source files; none reaches one thousand lines. Duplicate raw quota decoding was removed and directory allocation I/O was moved into its existing module.

The provider permission pass continues with operation-specific conditional native effects and native scenario authoring. Native filesystem mediation, both complete EriX guest-build generations and the external Rust/LLVM guest rebuild remain unfinished. The checklist now exposes the completed provider media portion separately; recalculation is 16.23% weighted, 4.81% whole-item, 20/460 parents and 437/897 sub-items. The weighted percentage still rounds to 16.23%; it has been recalculated. Reviews: provider, manual, Integration.

Source review of media/metadata.rs and media/xattr/access_acl/decode.rs establishes the write and later refusal paths. The provider already invalidates permission observations before metadata attempts; this report concerns persistent mode/ACL coherence. Existing controls and new mutation controls will remain authored-but-unrun under the user testing waiver.

Tracking

Complete within ext permission coherence, with provider review, manual review, Integration review and phase completion. This continues the implemented value-inode acquisition and reference-lifetime work.

## Summary The ext metadata setter writes mode bits without changing the corresponding access-ACL classes. On an inode with a valid access ACL, changing owner/group/other mode permissions can leave internally inconsistent persistent metadata. The complete permission reader then rejects that inode instead of returning usable evidence. ## Reproduction Create admitted ext media with a valid access ACL corresponding to mode 0750, then request a native metadata mode change to 0700 through the original authorized provider route. Read complete permission evidence from the same retained inode afterwards. Current source updates the mode field only, leaving the old group or mask permissions in the ACL. This report is source-confirmed; tests, images and VM runs were not executed. ## Expected and actual behavior Expected: update the owner, group-or-mask and other access-ACL permissions with the requested mode in the same original metadata operation. Preserve named entries, default ACLs, shared value ranges, shared external blocks and value-inode lifetimes through copy-on-write as needed. Retain native ceilings, metadata invalidation, checksums, quota accounting, journal rollback and uncertain-write handling. Actual: apply_mode changes only the inode mode bytes. No ACL edit accompanies write_metadata_update. A subsequent complete ACL/mode comparison refuses the inconsistent result. No native authority escape is claimed. ## Environment and identity - Component revision: E2fsd 407efa3ea1580a74806d6040e8cd05f2f81d932a. - Integration selection: 328c153f6420049d75a57230d78c27703ce4bead. - Image/runtime/toolchain: not executed for this finding. - Route: admitted original mounted ext inode and private native metadata operation. - Last known working revision: unknown. ## Evidence and prior checks Persistent ACL metadata checkpoint — 29 September 2026: [e2fsd `ac258003`](https://git.erikinkinen.fi/erix/e2fsd/commit/ac2580033ecc3176faea703be41d0c947c0abd1f), [docs `2d3de8f0`](https://git.erikinkinen.fi/erix/docs/commit/2d3de8f040764eb6e236e4c1f88f71c9d693df12), [integration `cd4f7625`](https://git.erikinkinen.fi/erix/integration/commit/cd4f762543502a9d785331a2c001f26e0b1ce92a). The original ext metadata operation now preflights all selected fields and complete access ACLs, changes only owner/group-or-mask/other permissions, and preserves named/default entries and full-width owner IDs. Shared tables and immutable values use copy-on-write with exact reference lifetimes. Local alias pressure uses actual table geometry, the other attribute store or value-inode storage. Root metadata follows the original native scope; the full nonzero table reference domain has no separate 1024-owner ceiling. The incompatible Hurd/EA count-word layout refuses during mount parsing. [Mode/ACL coherence](https://git.erikinkinen.fi/erix/e2fsd/issues/10) and [attribute accounting](https://git.erikinkinen.fi/erix/e2fsd/issues/11) are implemented. Modern charges follow every descriptor's owner; legacy values retain original independent quota identities. Growth, truncation and inline conversion conserve charges, fast symlinks distinguish attributes from data, and retained inline payload is persisted before quota scanning reuses its scratch. Every edit retains the original transaction, checksums and permission epoch. Uncertain persistent completion remains fail-stop without replay. No capability, endpoint or private inode-selector ABI is added. Twenty-four new controls are authored and unrun, covering actual media/provider metadata, sharing, full IDs, root, both storage-movement directions, large immutable ACLs, count/space exhaustion, quota identity/cluster charges, real quota-file inline conversion, growth/truncation, fast symlinks, journal rollback and uncertain writes. Rustfmt was applied. Changed Rust source remains below one thousand lines (maximum 922), with inline rustdoc and missing_docs retained. A read-only inventory covers 76 repositories and 3355 tracked source files; none reaches one thousand lines. Duplicate raw quota decoding was removed and directory allocation I/O was moved into its existing module. The [provider permission pass](https://git.erikinkinen.fi/erix/e2fsd/issues/8) continues with operation-specific conditional native effects and native scenario authoring. [Native filesystem mediation](https://git.erikinkinen.fi/erix/posixd/issues/10), both complete EriX guest-build generations and the external Rust/LLVM guest rebuild remain unfinished. The checklist now exposes the completed provider media portion separately; recalculation is **16.23% weighted**, **4.81% whole-item**, **20/460 parents** and **437/897 sub-items**. The weighted percentage still rounds to 16.23%; it has been recalculated. Reviews: [provider](https://git.erikinkinen.fi/erix/e2fsd/pulls/3), [manual](https://git.erikinkinen.fi/erix/docs/pulls/4), [Integration](https://git.erikinkinen.fi/erix/integration/pulls/12). Source review of media/metadata.rs and media/xattr/access_acl/decode.rs establishes the write and later refusal paths. The provider already invalidates permission observations before metadata attempts; this report concerns persistent mode/ACL coherence. Existing controls and new mutation controls will remain authored-but-unrun under the user testing waiver. ## Tracking Complete within [ext permission coherence](https://git.erikinkinen.fi/erix/e2fsd/issues/8), with [provider review](https://git.erikinkinen.fi/erix/e2fsd/pulls/3), [manual review](https://git.erikinkinen.fi/erix/docs/pulls/4), [Integration review](https://git.erikinkinen.fi/erix/integration/pulls/12) and [phase completion](https://git.erikinkinen.fi/erix/integration/issues/65). This continues the implemented value-inode acquisition and reference-lifetime work.
erikinkinen added this to the Alpha 1 milestone 2026-10-30 09:33:46 +01:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
erix/e2fsd#10
No description provided.