§H.12 step 14: C accessors for BMAPFMT block-ACL fields
blk_owner_fp_get/_set, blk_acl_allow_get/_set, blk_acl_ttl_get/_set, blk_flags_get/_set -- thin read-modify-write wrappers over the existing blk_get_meta()/blk_set_meta() (caching/dirty-tracking already owned there). Sets up the C-primitive layer FORTH wrappers (step 15) will call, mirroring the word-level ACL system's own split. Verified 3-arch boot to ok> (amd64/aarch64/riscv64). Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
c19cc07ee3
commit
15e6836ca3
+6
-1
@@ -4063,7 +4063,12 @@ work, not new invention.
|
||||
(bits 0/1/2, `1ull << n`) defined in `block_subsystem.h` right above `blk_meta_t`, `flags`
|
||||
field comment updated to point at them. Verified 3-arch boot to `ok>`
|
||||
(amd64/aarch64/riscv64).
|
||||
- [ ] **14.** Add C get/set accessors for the new fields in `block_subsystem.c`.
|
||||
- [x] **14. DONE 2026-09-03.** `blk_owner_fp_get`/`_set`, `blk_acl_allow_get`/`_set`,
|
||||
`blk_acl_ttl_get`/`_set`, `blk_flags_get`/`_set` added — thin read-modify-write wrappers
|
||||
over the existing `blk_get_meta()`/`blk_set_meta()` (which already own caching/dirty-
|
||||
tracking; these add no new state). FORTH wrappers (step 15) call these, not
|
||||
`blk_get_meta()`/`blk_set_meta()` directly, mirroring the word-level ACL system's own
|
||||
C-primitive/FORTH-policy split. Verified 3-arch boot to `ok>` (amd64/aarch64/riscv64).
|
||||
- [ ] **15.** Add FORTH wrappers (`BLK-ACL-ALLOW@`/`!`, `BLK-ACL-TTL@`/`!`, `BLK-OWNER@`).
|
||||
- [ ] **16.** Add a new policy capsule (mirroring `ACL.4th`) with a real fast-deny check on
|
||||
top — no stub, per this project's standing "no stubs or TODOs, ever" rule (§C).
|
||||
|
||||
Reference in New Issue
Block a user