[FEATURE] Implement original-object mode ownership and access operations #29
Labels
No labels
alpha-1
bug
ci
docs
duplicate
enhancement
help wanted
invalid
performance
phase-6
question
refactor
security
wontfix
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
erix/posixd#29
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem and motivation
Build tools need chmod/fchmod/fchmodat, chown/fchown/fchownat/lchown and access/faccessat over their original delegated files. Existing Open, namespace mutations and truncate use fresh mode/access-ACL evidence; ext creation already inherits complete default ACLs and persistent mode updates preserve named ACL entries. The compatibility metadata-operation consumers and conditional original-object mutation path remain missing.
Proposed behavior and scope
Implement exact versioned descriptor and pathname metadata intents with original client identity, complete raw paths, follow/no-follow policy and full-width owner/group fields with explicit unchanged values. A pathname operation uses the existing scoped resolver without allocating or publishing an fd. A descriptor operation retains the existing original description, including read-only content access, independently of fresh metadata authorization.
Native mutation requires the same live scope, original object and fresh permission revision in one provider turn. A writable native scope and mount remain mandatory. The compatibility caller must own the file; UID zero adds no bypass. Restricted ownership policy allows only preserving the owner and selecting an effective/supplementary group. Mode changes constrain set-group-ID by actual group membership; ownership changes apply the documented regular-file set-ID clearing policy. Type, endpoint and content access never come from mode bits.
Access uses real IDs by default and effective IDs only when explicitly requested, including every prefix search. Requested permissions are checked individually; existence queries still require actual original native existence. Success is an observation and never a reusable admission token. Normal I/O retains its existing open-description access without new per-read/write DAC checks.
Preserve process umask, inherited default/access ACL policy, named entries and mode/mask correspondence. Ext changes use the original complete transaction and ACL owners; RAM and selected FAT metadata retain their documented ACL support. Unknown or unsupported evidence is explicit and never treated as ACL absence. Coordinate LibIPC, Lib-posixabi, Posixd, Vfsd, RAM/ext/FAT, Integration and maintained manuals.
Authority, security and reliability
Authenticate the original receiver and staged client before selecting descriptive inputs. Retain original scope, mount/provider, candidate, revision, native caller and cleanup owners. No path reopening after permission checks, new native route, implicit credential transition, UID-zero privilege, broad metadata grant or field-based capability synthesis is allowed.
Consume the original condition at the provider; revision change-and-restore cannot revive it. Correlate the entire intended update before success or reuse. Definite refusal, stale evidence and uncertain completion remain distinct. Capacity admission precedes effects; cancellation, signal delivery, rejected completion and final alias retirement keep original ownership. Metadata changes do not revoke independently admitted ordinary content access or move cursors.
Acceptance criteria
Checklist
Alternatives and tradeoffs
Share the existing resolver, complete streaming ACL fold, provider permission revisions and transaction machinery. Pathname reopening would separate the permission verdict from its selected object. Native capabilities still bound all metadata policy; implicit superuser or newly discovered provider authority cannot replace that boundary. The current optional access/default ACL profile remains distinct from the base POSIX permission API.
Behavioral references are the Open Group access contract, ownership contract, mode contract, and maintained ACL specification. Implementation and fixtures are original; no external code is copied.
Tracking and rollout
Related: credential and ACL enforcement, filesystem semantics, retained truncate/sync, compatibility ABI, phase completion, mediator review, ABI review and Integration review.
Finish provider/native ownership before compatibility consumers, then the complete controls, audit, documentation and signed rollout. Do not substitute an intermediate codec for complete acceptance. Tests, builds, lint checks, generated documentation, VM/profiler execution and CI observation remain deferred. Both full EriX guest generations and external Rust/LLVM guest rebuilding remain required and unperformed.
Original mode ownership and access completion — 2 October 2026
F_OK, unavailable metadata and read-only mount denial remain distinct.
Full libc/system acceptance, both full EriX guest generations and external Rust/LLVM guest rebuilding remain required and unperformed.
Conditional native permission updates — 2 October 2026
No new native grant or endpoint is added.
Compatibility chmod/chown/access consumers, complete VM workloads and full feature acceptance remain open. Both full EriX guest generations and external Rust/LLVM guest rebuilding remain required and unperformed.
Related records and contracts
erikinkinen referenced this issue from erix/coreutils2026-10-02 06:55:13 +02:00
erikinkinen referenced this issue from erix/docs2026-10-02 06:55:36 +02:00
erikinkinen referenced this issue from erix/e2fsd2026-10-02 06:56:50 +02:00
erikinkinen referenced this issue from erix/exsh2026-10-02 06:56:51 +02:00
erikinkinen referenced this issue from erix/extop2026-10-02 06:56:52 +02:00
erikinkinen referenced this issue from erix/fatd2026-10-02 06:56:53 +02:00
erikinkinen referenced this issue from erix/integration2026-10-02 06:56:58 +02:00
erikinkinen referenced this issue from erix/launchd2026-10-02 06:57:02 +02:00
erikinkinen referenced this issue from erix/lib-ipc2026-10-02 06:57:07 +02:00
erikinkinen referenced this issue from erix/lib-posixabi2026-10-02 06:57:09 +02:00
erikinkinen referenced this issue from erix/lib-posixabi2026-10-02 06:57:09 +02:00
erikinkinen referenced this issue from erix/lib-stdio2026-10-02 06:57:10 +02:00
erikinkinen referenced this issue from erix/loaderd2026-10-02 06:57:13 +02:00
erikinkinen referenced this issue2026-10-02 06:57:18 +02:00
erikinkinen referenced this issue from erix/procd2026-10-02 06:57:21 +02:00
erikinkinen referenced this issue from erix/ramfsd2026-10-02 06:57:22 +02:00
erikinkinen referenced this issue from erix/rootd2026-10-02 06:57:22 +02:00
erikinkinen referenced this issue from erix/timed2026-10-02 06:57:24 +02:00
erikinkinen referenced this issue from erix/ttyd2026-10-02 06:57:27 +02:00
erikinkinen referenced this issue from erix/vfsd2026-10-02 06:57:27 +02:00