The node-engine gives a directory's contents its new owner (design 47 H2, H-A-545, H-A-550, H-A-554, H-A-556) #256

Merged
mesh-tools merged 3 commits from fix/gitea-runs-as into main 2026-11-23 11:31:54 +00:00
3 Commits
Author SHA1 Message Date
jschoubben 70d410934f The node-engine states it gives a directory's contents their new owner
readsNow states the reader capability directory-contents-owner, which mesh-sdk's
ManifestNeeds names for every manifest declaring runs-as, so the module graph
orders a move to an account of its own after this engine runs on its node.

Builds: design 47 H2 H-A-554 (1), H-A-556
2026-11-23 12:25:59 +01:00
jschoubben 684931e099 Give a directory's contents before the directory, matched by user
Review round 1: the contents are now given before the directory's own owner
changes, so a walk that fails leaves the directory as it was and the next apply
walks again; an entry gone meanwhile is nothing to give. An entry is matched by
its user alone: one of another user is left with everything below it, and one
given the new user gets the new group only where its group was the previous
group. A test now applies a directory whose owner changed, with stand-ins for
the chowns, and shows the contents given first and a placed child left.

Builds: design 47 H2 H-A-550, H-A-554 (2)
2026-11-23 12:25:59 +01:00
jschoubben d16c4cd003 A directory whose owner changes gives its contents the new owner
A module moved to an account of its own (runs-as) has files below its
directories that it wrote as the account it ran as before (gitea's webhook
secret, 0600, as the operator's account); the node-engine changed only the
directory's owner, so the new account could not read them. Now applyDirectory
and applyMeshDirectory give the new owner to what the previous owner held below
the directory, but never a path the declaration or another module's composition
places (and what lies below it), never an entry another account owns, never
through a link (Lchown) and never on another file system.

Builds: design 47 H2 H-A-545 (2), H-A-550
2026-11-23 12:07:40 +01:00