@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.
@@ -2275,7 +2275,8 @@ var OpfsFs = class {
2275
2275
  if (owner?.socket && owner.fifo) throw new Error("a new node is a socket or a FIFO, not both");
2276
2276
  const kind = directory ? void 0 : owner?.socket ? "socket" : owner?.fifo ? "fifo" : void 0;
2277
2277
  const unique = kind === "fifo" ? { ino: inodeOf(`${path}\0${crypto.randomUUID()}`) } : {};
2278
- const fields = kind ? { ...owned4, ...unique, [kind]: true } : owned4;
2278
+ const fifoMode = owner?.fifo && owner.mode !== void 0 ? { mode: owner.mode & PERM_MASK } : {};
2279
+ const fields = kind ? { ...owned4, ...fifoMode, ...unique, [kind]: true } : owned4;
2279
2280
  if (fields) await this.meta.update(path, (entry) => ({ ...occupied(entry), path, ...fields }));
2280
2281
  }
2281
2282
  guarded = [];
@@ -9625,7 +9626,7 @@ function satisfies(version, range2) {
9625
9626
  }
9626
9627
 
9627
9628
  // src/version.ts
9628
- var KERNEL_VERSION = true ? "1.196.15" : "0.0.0-dev";
9629
+ var KERNEL_VERSION = true ? "1.196.16" : "0.0.0-dev";
9629
9630
  var OS_RELEASE = "6.0.0-slicc";
9630
9631
  function procVersion() {
9631
9632
  return `Linux version ${OS_RELEASE} (slicc-kernel ${KERNEL_VERSION}) #1 SMP PREEMPT_DYNAMIC
@@ -16824,7 +16825,7 @@ var MountFs = class _MountFs {
16824
16825
  async mkfifo(found, real, owner) {
16825
16826
  const { mount, rel: rel2 } = found;
16826
16827
  if (!mount.caps.fifos) throw errnoError("EPERM", `${real}: this mount has no FIFOs`);
16827
- const made2 = await this.driverOwner(found, real, owner, false);
16828
+ const made2 = await this.driverOwner(found, real, owner, false) ?? { mode: owner.mode };
16828
16829
  await this.table.commit(real);
16829
16830
  this.table.forget(mount, real);
16830
16831
  try {
@@ -18146,7 +18147,12 @@ async function run(entry, path, req) {
18146
18147
  case "copy":
18147
18148
  return copyOp(entry, path, req);
18148
18149
  case "mkfifo": {
18149
- const owner = ownerFor2(entry, req.mode ?? 438) ?? { uid: 0, gid: 0 };
18150
+ const mode = (req.mode ?? 438) & 4095;
18151
+ const owner = ownerFor2(entry, mode) ?? {
18152
+ uid: 0,
18153
+ gid: 0,
18154
+ mode: mode & ~(entry.umask?.() ?? 18)
18155
+ };
18150
18156
  await createExclusive(fs, path, { ...owner, fifo: true });
18151
18157
  entry.fresh?.(path);
18152
18158
  return done2;
@@ -23855,7 +23861,13 @@ ${SCRIPT_HELP}
23855
23861
  const bound3 = await this.bound(path, r.cwd, asked, void 0, reads);
23856
23862
  if (!bound3) return failed2("EPERM", requestedText(await this.missingBacking(r.bound) ?? path));
23857
23863
  const changed2 = changedDecision(r.bound, r, bound3, path);
23858
- if (changed2 !== void 0) return failed2("EPERM", requestedText(changed2));
23864
+ if (changed2 !== void 0) {
23865
+ const missing7 = ["chainSha256", "routeSha256"].filter(
23866
+ (key) => bound3[key] !== void 0 && r[key] === void 0
23867
+ );
23868
+ 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` : "";
23869
+ return failed2("EPERM", requestedText(changed2) + hint);
23870
+ }
23859
23871
  const now = await this.rootOnly(r.cwd, args);
23860
23872
  const flipped = Object.keys(r.rootOnly).find((at) => r.rootOnly[at] && now[at] !== true);
23861
23873
  if (flipped !== void 0) return failed2("EPERM", `sudo: ${flipped} is no longer root-only`);