@ai-ecoverse/slicc-kernel 1.196.15 → 1.196.16

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.
@@ -9292,7 +9292,7 @@ var init_version = __esm({
9292
9292
  "src/version.ts"() {
9293
9293
  "use strict";
9294
9294
  init_captured_globals();
9295
- KERNEL_VERSION = true ? "1.196.15" : "0.0.0-dev";
9295
+ KERNEL_VERSION = true ? "1.196.16" : "0.0.0-dev";
9296
9296
  OS_RELEASE = "6.0.0-slicc";
9297
9297
  }
9298
9298
  });
@@ -9291,7 +9291,7 @@ var init_version = __esm({
9291
9291
  "src/version.ts"() {
9292
9292
  "use strict";
9293
9293
  init_captured_globals();
9294
- KERNEL_VERSION = true ? "1.196.15" : "0.0.0-dev";
9294
+ KERNEL_VERSION = true ? "1.196.16" : "0.0.0-dev";
9295
9295
  OS_RELEASE = "6.0.0-slicc";
9296
9296
  }
9297
9297
  });
package/dist/node.js CHANGED
@@ -7734,7 +7734,7 @@ function satisfies(version, range2) {
7734
7734
  }
7735
7735
 
7736
7736
  // src/version.ts
7737
- var KERNEL_VERSION = true ? "1.196.15" : "0.0.0-dev";
7737
+ var KERNEL_VERSION = true ? "1.196.16" : "0.0.0-dev";
7738
7738
  var OS_RELEASE = "6.0.0-slicc";
7739
7739
  function procVersion() {
7740
7740
  return `Linux version ${OS_RELEASE} (slicc-kernel ${KERNEL_VERSION}) #1 SMP PREEMPT_DYNAMIC
@@ -14027,7 +14027,7 @@ var MountFs = class _MountFs {
14027
14027
  async mkfifo(found, real, owner) {
14028
14028
  const { mount, rel: rel2 } = found;
14029
14029
  if (!mount.caps.fifos) throw errnoError("EPERM", `${real}: this mount has no FIFOs`);
14030
- const made2 = await this.driverOwner(found, real, owner, false);
14030
+ const made2 = await this.driverOwner(found, real, owner, false) ?? { mode: owner.mode };
14031
14031
  await this.table.commit(real);
14032
14032
  this.table.forget(mount, real);
14033
14033
  try {
@@ -15297,7 +15297,12 @@ async function run(entry, path, req) {
15297
15297
  case "copy":
15298
15298
  return copyOp(entry, path, req);
15299
15299
  case "mkfifo": {
15300
- const owner = ownerFor(entry, req.mode ?? 438) ?? { uid: 0, gid: 0 };
15300
+ const mode = (req.mode ?? 438) & 4095;
15301
+ const owner = ownerFor(entry, mode) ?? {
15302
+ uid: 0,
15303
+ gid: 0,
15304
+ mode: mode & ~(entry.umask?.() ?? 18)
15305
+ };
15301
15306
  await createExclusive(fs, path, { ...owner, fifo: true });
15302
15307
  entry.fresh?.(path);
15303
15308
  return done;
@@ -20869,7 +20874,13 @@ ${SCRIPT_HELP}
20869
20874
  const bound3 = await this.bound(path, r.cwd, asked, void 0, reads);
20870
20875
  if (!bound3) return failed2("EPERM", requestedText(await this.missingBacking(r.bound) ?? path));
20871
20876
  const changed2 = changedDecision(r.bound, r, bound3, path);
20872
- if (changed2 !== void 0) return failed2("EPERM", requestedText(changed2));
20877
+ if (changed2 !== void 0) {
20878
+ const missing7 = ["chainSha256", "routeSha256"].filter(
20879
+ (key) => bound3[key] !== void 0 && r[key] === void 0
20880
+ );
20881
+ const hint = missing7.length && changedFile(r.bound, bound3.hashes) === void 0 ? `; the saved request lacks ${missing7.join(" and ")}; pass back the whole request from approve unchanged` : "";
20882
+ return failed2("EPERM", requestedText(changed2) + hint);
20883
+ }
20873
20884
  const now = await this.rootOnly(r.cwd, args);
20874
20885
  const flipped = Object.keys(r.rootOnly).find((at) => r.rootOnly[at] && now[at] !== true);
20875
20886
  if (flipped !== void 0) return failed2("EPERM", `sudo: ${flipped} is no longer root-only`);
@@ -34045,7 +34056,8 @@ var OpfsFs = class {
34045
34056
  if (owner?.socket && owner.fifo) throw new Error("a new node is a socket or a FIFO, not both");
34046
34057
  const kind = directory ? void 0 : owner?.socket ? "socket" : owner?.fifo ? "fifo" : void 0;
34047
34058
  const unique = kind === "fifo" ? { ino: inodeOf(`${path}\0${crypto.randomUUID()}`) } : {};
34048
- const fields2 = kind ? { ...owned4, ...unique, [kind]: true } : owned4;
34059
+ const fifoMode = owner?.fifo && owner.mode !== void 0 ? { mode: owner.mode & PERM_MASK } : {};
34060
+ const fields2 = kind ? { ...owned4, ...fifoMode, ...unique, [kind]: true } : owned4;
34049
34061
  if (fields2) await this.meta.update(path, (entry) => ({ ...occupied(entry), path, ...fields2 }));
34050
34062
  }
34051
34063
  guarded = [];