fix(mosaic): fail closed on unsafe brain cleanup and config

This commit is contained in:
be-coder-07
2026-08-05 17:19:50 -05:00
parent 6afb3cb5b3
commit 656fa9ceb7
8 changed files with 202 additions and 63 deletions
+4
View File
@@ -22,6 +22,8 @@ export interface SecureFileSnapshot {
mode: number;
dev: number | bigint;
ino: number | bigint;
uid: number;
gid: number;
}
function sameIdentity(
@@ -235,6 +237,8 @@ export function readRegularFileSecure(
mode: Number(opened.mode),
dev: opened.dev,
ino: opened.ino,
uid: opened.uid,
gid: opened.gid,
};
} finally {
closeDescriptors(openedFile.descriptors);