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
This commit is contained in:
@@ -115,7 +115,7 @@ func testALinkInTheMeshsTreeLeadingOutOfItIsNotTheTree(t *testing.T) {
|
||||
t.Fatal(err)
|
||||
}
|
||||
r := &declaration.Directory{ID: "postgres.data", Path: filepath.Join(meshDataRoot, "postgres", "data"), Mode: "0750"}
|
||||
out, err := applyDirectory(r, store.Applied{}, true)
|
||||
out, err := applyDirectory(r, store.Applied{}, true, nil)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user