@ai-ecoverse/slicc-kernel 1.195.0 → 1.195.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/async-process.js +1 -1
- package/dist/cloudflare-sources.js +1 -1
- package/dist/cloudflare.js +16 -15
- package/dist/cloudflare.js.map +2 -2
- package/dist/kernel-worker.js +16 -15
- package/dist/kernel-worker.js.map +2 -2
- package/dist/node-process-worker.cjs +1 -1
- package/dist/node-process-worker.js +1 -1
- package/dist/node.js +16 -15
- package/dist/node.js.map +2 -2
- package/dist/process-worker.js +1 -1
- package/package.json +3 -3
package/dist/kernel-worker.js
CHANGED
|
@@ -9280,7 +9280,7 @@ function satisfies(version, range2) {
|
|
|
9280
9280
|
}
|
|
9281
9281
|
|
|
9282
9282
|
// src/version.ts
|
|
9283
|
-
var KERNEL_VERSION = true ? "1.195.
|
|
9283
|
+
var KERNEL_VERSION = true ? "1.195.1" : "0.0.0-dev";
|
|
9284
9284
|
var OS_RELEASE = "6.0.0-slicc";
|
|
9285
9285
|
function procVersion() {
|
|
9286
9286
|
return `Linux version ${OS_RELEASE} (slicc-kernel ${KERNEL_VERSION}) #1 SMP PREEMPT_DYNAMIC
|
|
@@ -22557,6 +22557,7 @@ var Sudo = class {
|
|
|
22557
22557
|
for (const file of new Set(files)) {
|
|
22558
22558
|
if (await this.trusted(file)) continue;
|
|
22559
22559
|
const real = await this.real(file);
|
|
22560
|
+
if (Object.hasOwn(found, real)) continue;
|
|
22560
22561
|
found[real] = await fs.readFileBuffer(real).then(sha256, () => "");
|
|
22561
22562
|
}
|
|
22562
22563
|
return found;
|
|
@@ -37214,7 +37215,7 @@ var Launcher = class {
|
|
|
37214
37215
|
const ids = { pid: req.exec ? caller : pid, ppid: caller };
|
|
37215
37216
|
const stamp = await this.sealed.stamp(ids, cred, this.tagsOf(ppid));
|
|
37216
37217
|
const interpreters = await this.interpreterChain(planned, booked.cwd, scope);
|
|
37217
|
-
const trusted = this.usersMode === "enforce" && await this.trustedFiles(planned, req.file, booked.cwd
|
|
37218
|
+
const trusted = this.usersMode === "enforce" && await this.trustedFiles(planned, req.file, booked.cwd);
|
|
37218
37219
|
const swap = await this.sealed.consume({
|
|
37219
37220
|
ticket,
|
|
37220
37221
|
stamp,
|
|
@@ -37235,7 +37236,7 @@ var Launcher = class {
|
|
|
37235
37236
|
}
|
|
37236
37237
|
const scrub = scrubberOf(secrets);
|
|
37237
37238
|
const recheck = async (next3) => {
|
|
37238
|
-
const same3 = sameList(planFiles(next3), planFiles(planned)) && sameList(await this.interpreterChain(next3, booked.cwd, scope), interpreters) && (this.usersMode === "enforce" && await this.trustedFiles(next3, req.file, booked.cwd
|
|
37239
|
+
const same3 = sameList(planFiles(next3), planFiles(planned)) && sameList(await this.interpreterChain(next3, booked.cwd, scope), interpreters) && (this.usersMode === "enforce" && await this.trustedFiles(next3, req.file, booked.cwd)) === trusted;
|
|
37239
37240
|
if (!same3) throw new SpawnError("EACCES");
|
|
37240
37241
|
};
|
|
37241
37242
|
return { env, pid, cwd: booked.cwd, ...scrub ? { scrub } : {}, recheck };
|
|
@@ -37260,8 +37261,8 @@ var Launcher = class {
|
|
|
37260
37261
|
if (!scoped || system?.glue === scoped.glue) return `/usr/bin/${name2}`;
|
|
37261
37262
|
return scoped.glue;
|
|
37262
37263
|
}
|
|
37263
|
-
async trustedFiles(planned, file, cwd
|
|
37264
|
-
const files = await this.backingOf(planned, file, cwd
|
|
37264
|
+
async trustedFiles(planned, file, cwd) {
|
|
37265
|
+
const files = await this.backingOf(planned, file, cwd);
|
|
37265
37266
|
for (const at of files) {
|
|
37266
37267
|
if (!await rootOnly(this.base, await physicalPathAsync(this.base, at))) return false;
|
|
37267
37268
|
}
|
|
@@ -37270,7 +37271,7 @@ var Launcher = class {
|
|
|
37270
37271
|
async unchanged(planned, file, cwd, grant) {
|
|
37271
37272
|
const approved = grant?.files;
|
|
37272
37273
|
if (!approved) return {};
|
|
37273
|
-
const files = await this.backingOf(planned, file, cwd
|
|
37274
|
+
const files = await this.backingOf(planned, file, cwd);
|
|
37274
37275
|
refuseChanged(approved, await this.sudoer.digests([file, ...files]));
|
|
37275
37276
|
return { pinned: approved };
|
|
37276
37277
|
}
|
|
@@ -37303,18 +37304,18 @@ var Launcher = class {
|
|
|
37303
37304
|
async backing(asked, cwd) {
|
|
37304
37305
|
const file = await this.execFile(asked, cwd);
|
|
37305
37306
|
const { planned } = await this.plan(file, [file], cwd, "");
|
|
37306
|
-
return planned && this.backingOf(planned, file, cwd
|
|
37307
|
+
return planned && this.backingOf(planned, file, cwd);
|
|
37307
37308
|
}
|
|
37308
|
-
async backingOf(planned, file, cwd
|
|
37309
|
-
const { glue, wasm, imports } = planned.target;
|
|
37309
|
+
async backingOf(planned, file, cwd) {
|
|
37310
|
+
const { glue, wasm, imports, copy } = planned.target;
|
|
37310
37311
|
const files = [glue, wasm, ...imports ? [imports] : []];
|
|
37311
|
-
const
|
|
37312
|
-
for (const name2 of [file, ...planned.via ?? []]) {
|
|
37313
|
-
if (name2.includes("/") && !COMMAND2.test(name2))
|
|
37314
|
-
const
|
|
37315
|
-
if (
|
|
37312
|
+
const sources = planned.sources ?? [];
|
|
37313
|
+
for (const [i, name2] of [file, ...planned.via ?? []].entries()) {
|
|
37314
|
+
if (name2.includes("/") && !COMMAND2.test(name2)) files.push(this.fs.resolvePath(cwd, name2));
|
|
37315
|
+
const source = sources[i];
|
|
37316
|
+
if (source !== void 0) files.push(source);
|
|
37316
37317
|
}
|
|
37317
|
-
files.push(...
|
|
37318
|
+
files.push(...copy ? [copy] : [], ...planned.binfmts ?? []);
|
|
37318
37319
|
const roots = await this.roots();
|
|
37319
37320
|
for (const at of [...files]) {
|
|
37320
37321
|
const root = packageRootOf(at, roots) ?? PACKAGE_ROOT.exec(at)?.[1];
|