@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/cloudflare.js
CHANGED
|
@@ -5109,7 +5109,7 @@ function satisfies(version, range2) {
|
|
|
5109
5109
|
}
|
|
5110
5110
|
|
|
5111
5111
|
// src/version.ts
|
|
5112
|
-
var KERNEL_VERSION = true ? "1.195.
|
|
5112
|
+
var KERNEL_VERSION = true ? "1.195.1" : "0.0.0-dev";
|
|
5113
5113
|
var OS_RELEASE = "6.0.0-slicc";
|
|
5114
5114
|
function procVersion() {
|
|
5115
5115
|
return `Linux version ${OS_RELEASE} (slicc-kernel ${KERNEL_VERSION}) #1 SMP PREEMPT_DYNAMIC
|
|
@@ -19410,6 +19410,7 @@ var Sudo = class {
|
|
|
19410
19410
|
for (const file of new Set(files)) {
|
|
19411
19411
|
if (await this.trusted(file)) continue;
|
|
19412
19412
|
const real2 = await this.real(file);
|
|
19413
|
+
if (Object.hasOwn(found, real2)) continue;
|
|
19413
19414
|
found[real2] = await fs.readFileBuffer(real2).then(sha2562, () => "");
|
|
19414
19415
|
}
|
|
19415
19416
|
return found;
|
|
@@ -36797,7 +36798,7 @@ var Launcher = class {
|
|
|
36797
36798
|
const ids = { pid: req.exec ? caller : pid, ppid: caller };
|
|
36798
36799
|
const stamp = await this.sealed.stamp(ids, cred, this.tagsOf(ppid));
|
|
36799
36800
|
const interpreters = await this.interpreterChain(planned, booked.cwd, scope);
|
|
36800
|
-
const trusted = this.usersMode === "enforce" && await this.trustedFiles(planned, req.file, booked.cwd
|
|
36801
|
+
const trusted = this.usersMode === "enforce" && await this.trustedFiles(planned, req.file, booked.cwd);
|
|
36801
36802
|
const swap = await this.sealed.consume({
|
|
36802
36803
|
ticket: ticket2,
|
|
36803
36804
|
stamp,
|
|
@@ -36818,7 +36819,7 @@ var Launcher = class {
|
|
|
36818
36819
|
}
|
|
36819
36820
|
const scrub = scrubberOf(secrets);
|
|
36820
36821
|
const recheck = async (next3) => {
|
|
36821
|
-
const same2 = 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
|
|
36822
|
+
const same2 = 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;
|
|
36822
36823
|
if (!same2) throw new SpawnError("EACCES");
|
|
36823
36824
|
};
|
|
36824
36825
|
return { env, pid, cwd: booked.cwd, ...scrub ? { scrub } : {}, recheck };
|
|
@@ -36843,8 +36844,8 @@ var Launcher = class {
|
|
|
36843
36844
|
if (!scoped || system?.glue === scoped.glue) return `/usr/bin/${name2}`;
|
|
36844
36845
|
return scoped.glue;
|
|
36845
36846
|
}
|
|
36846
|
-
async trustedFiles(planned, file, cwd
|
|
36847
|
-
const files = await this.backingOf(planned, file, cwd
|
|
36847
|
+
async trustedFiles(planned, file, cwd) {
|
|
36848
|
+
const files = await this.backingOf(planned, file, cwd);
|
|
36848
36849
|
for (const at of files) {
|
|
36849
36850
|
if (!await rootOnly(this.base, await physicalPathAsync(this.base, at))) return false;
|
|
36850
36851
|
}
|
|
@@ -36853,7 +36854,7 @@ var Launcher = class {
|
|
|
36853
36854
|
async unchanged(planned, file, cwd, grant) {
|
|
36854
36855
|
const approved = grant?.files;
|
|
36855
36856
|
if (!approved) return {};
|
|
36856
|
-
const files = await this.backingOf(planned, file, cwd
|
|
36857
|
+
const files = await this.backingOf(planned, file, cwd);
|
|
36857
36858
|
refuseChanged(approved, await this.sudoer.digests([file, ...files]));
|
|
36858
36859
|
return { pinned: approved };
|
|
36859
36860
|
}
|
|
@@ -36886,18 +36887,18 @@ var Launcher = class {
|
|
|
36886
36887
|
async backing(asked, cwd) {
|
|
36887
36888
|
const file = await this.execFile(asked, cwd);
|
|
36888
36889
|
const { planned } = await this.plan(file, [file], cwd, "");
|
|
36889
|
-
return planned && this.backingOf(planned, file, cwd
|
|
36890
|
+
return planned && this.backingOf(planned, file, cwd);
|
|
36890
36891
|
}
|
|
36891
|
-
async backingOf(planned, file, cwd
|
|
36892
|
-
const { glue, wasm, imports } = planned.target;
|
|
36892
|
+
async backingOf(planned, file, cwd) {
|
|
36893
|
+
const { glue, wasm, imports, copy } = planned.target;
|
|
36893
36894
|
const files = [glue, wasm, ...imports ? [imports] : []];
|
|
36894
|
-
const
|
|
36895
|
-
for (const name2 of [file, ...planned.via ?? []]) {
|
|
36896
|
-
if (name2.includes("/") && !COMMAND2.test(name2))
|
|
36897
|
-
const
|
|
36898
|
-
if (
|
|
36895
|
+
const sources = planned.sources ?? [];
|
|
36896
|
+
for (const [i, name2] of [file, ...planned.via ?? []].entries()) {
|
|
36897
|
+
if (name2.includes("/") && !COMMAND2.test(name2)) files.push(this.fs.resolvePath(cwd, name2));
|
|
36898
|
+
const source = sources[i];
|
|
36899
|
+
if (source !== void 0) files.push(source);
|
|
36899
36900
|
}
|
|
36900
|
-
files.push(...
|
|
36901
|
+
files.push(...copy ? [copy] : [], ...planned.binfmts ?? []);
|
|
36901
36902
|
const roots = await this.roots();
|
|
36902
36903
|
for (const at of [...files]) {
|
|
36903
36904
|
const root = packageRootOf(at, roots) ?? PACKAGE_ROOT.exec(at)?.[1];
|