@ai-ecoverse/slicc-kernel 1.196.30 → 1.196.32
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 +3 -1
- package/dist/async-process.js +1 -1
- package/dist/cloudflare-sources.js +1 -1
- package/dist/cloudflare.js +87 -20
- package/dist/cloudflare.js.map +3 -3
- package/dist/index.js.map +2 -2
- package/dist/kernel-worker.js +87 -20
- package/dist/kernel-worker.js.map +3 -3
- package/dist/node-process-worker.cjs +1 -1
- package/dist/node-process-worker.js +1 -1
- package/dist/node.js +87 -20
- package/dist/node.js.map +3 -3
- package/dist/process-worker.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1157,6 +1157,7 @@ On a private root (no peer transport), replacing an empty directory first tries
|
|
|
1157
1157
|
- Its default export receives `{ fetch }`, the kernel's network transport. It returns `{ handlers, capabilities }`.
|
|
1158
1158
|
- Its worker gets a JS program's lockdown before the module loads: its own `fetch`, `WebSocket`, storage and workers are `undefined`, and a worker where one cannot be removed does not start the driver.
|
|
1159
1159
|
- The handlers are path-based: `getattr`, `readdir`, `open`/`read`/`write`/`release` on handles, `mkdir`, `rmdir`, `unlink`, `rename`, and optionally `symlink`, `readlink`, `setattr` (`mode`, `mtime`, `atime`, `size` to truncate, and `uid`/`gid`) and `statfs`. An attribute may carry `atime`; a driver that leaves it out reports its `mtime` as the access time, and ignores the `atime` of a `setattr` (hostfs and fsa do). tmpfs keeps both: `touch -a` and `utimensat` set its access time, and reading a file leaves it, as with `noatime`.
|
|
1160
|
+
- For `open(path, { create: true, exclusive: true, ... })`, the driver must create a new entry atomically or return `EEXIST` without touching the entry that won the race. The kernel checks the name before opening it for compatibility with drivers that ignore this flag. That check cannot close a race with another writer: a driver lacking exclusive-create support should return `ENOTSUP`. The FSA adapter uses its underlying filesystem’s exclusive-create operation when available. Its Web Lock coordinates participating kernel clients, but the browser File System Access API has no atomic create-if-absent primitive against a native host process changing a picked folder.
|
|
1160
1161
|
- An optional `mount({ source, options })` handler validates the source.
|
|
1161
1162
|
- Errors carry a POSIX `code`.
|
|
1162
1163
|
- `@ai-ecoverse/slicc-kernel/driver` exports the types and `fsError`.
|
|
@@ -1409,8 +1410,9 @@ With `users: 'enforce'` the kernel checks every file call that reaches it agains
|
|
|
1409
1410
|
```
|
|
1410
1411
|
Defaults env_keep += "GH_TOKEN GITHUB_TOKEN"
|
|
1411
1412
|
```
|
|
1413
|
+
- **Request limits:** `proc-sudo` accepts at most 4096 caller environment entries and 1 MiB of UTF-8 data, counting `NAME=value` and one terminating NUL per entry. These limits apply before `env_keep` or approval, including entries that would be discarded. A separately supplied `TERM` is also budgeted if it is not already present with the same value. An oversized request fails with `E2BIG`; the kernel does not truncate it.
|
|
1412
1414
|
- **The line:** `env_keep` takes a double-quoted list of names separated by spaces or tabs, or one name without quotes. `+=` adds to the list, `-=` removes the entries written exactly so, `=` replaces the list and `!env_keep` empties it. `Defaults:<user|%group|ALL>[,…] env_keep …` does the same for those callers, and a line may set several things (`Defaults:cone env_keep += "GH_TOKEN", timestamp_timeout=10`). The order is the one of the [timestamp settings](#sudo-timestamps): the lines for everyone first, then the caller's, each in file order. The list starts empty: sudo's built-in list (`DISPLAY`, `PS1`, `LS_COLORS`, …) and its `env_check` list (`LANG`, `LC_*`, `TZ`, …) aren't there, and `env_check`, `env_delete`, `env_reset`, `secure_path`, the `SETENV:` tag and `sudo -E` or `--preserve-env` aren't supported.
|
|
1413
|
-
- **What matches:** a name matches the variable of that name. A `*` matches any run of characters, none included, and an entry may have several (`GH_*`, `*_TOKEN`); it is the only wildcard. The matching is sudo's own, which looks for the text after a `*` once, where it first occurs: `*_TOKEN` matches `GH_TOKEN` and not `MY_GH_TOKEN`, so name a prefix (`MY_*`) for such names. An entry with `=` must match the name and the value (`MODE=dry*`). As in sudo, a variable whose value starts with `() ` (an exported bash function) is dropped unless an entry matched its value as well (`BASH_FUNC_x%%=()*`), and `LOGNAME` and `USER` go together: keeping one keeps
|
|
1415
|
+
- **What matches:** a name matches the variable of that name. A `*` matches any run of characters, none included, and an entry may have several (`GH_*`, `*_TOKEN`); it is the only wildcard. The matching is sudo's own, which looks for the text after a `*` once, where it first occurs: `*_TOKEN` matches `GH_TOKEN` and not `MY_GH_TOKEN`, so name a prefix (`MY_*`) for such names. An entry with `=` must match the name and the value (`MODE=dry*`). As in sudo, a variable whose value starts with `() ` (an exported bash function) is dropped unless an entry matched its value as well (`BASH_FUNC_x%%=()*`), and `LOGNAME` and `USER` go together: keeping one keeps both original values, even if they differ. If only one is present, its value fills the missing name, as in sudoers’ `rebuild_env`.
|
|
1414
1416
|
- **What a kept variable replaces:** the value the kernel would have set, so keeping `HOME` or `SHELL` gives the command the caller's, with what that means for a program that reads its configuration from there, as sudoers(5) warns. `PATH` stays the fixed one (sudo's `secure_path`), `TERM` keeps its own check (sudo's `env_check`), and `PWD` and the four `SUDO_*` variables are always the kernel's.
|
|
1415
1417
|
- **Where it applies:** every `sudo` that runs a command under `users: 'enforce'`, whatever allowed it (an approval, `NOPASSWD`, a timestamp, an effective uid of 0). A request [run later](#running-a-request-later-sudorun) has none of these variables. The approval request is unchanged: it doesn't list them, and their values never reach the approver.
|
|
1416
1418
|
- `sudo -l` shows the entries that match the caller as sudo prints them (`env_keep+="GH_TOKEN GITHUB_TOKEN"`, `env_keep-=GH_TOKEN`, `!env_keep`), and `visudo -c` the list for everyone.
|
package/dist/async-process.js
CHANGED
|
@@ -1576,7 +1576,7 @@ function createParentRefreshCount() {
|
|
|
1576
1576
|
}
|
|
1577
1577
|
|
|
1578
1578
|
// src/version.ts
|
|
1579
|
-
var KERNEL_VERSION = true ? "1.196.
|
|
1579
|
+
var KERNEL_VERSION = true ? "1.196.32" : "0.0.0-dev";
|
|
1580
1580
|
var OS_RELEASE = "6.0.0-slicc";
|
|
1581
1581
|
function procVersion() {
|
|
1582
1582
|
return `Linux version ${OS_RELEASE} (slicc-kernel ${KERNEL_VERSION}) #1 SMP PREEMPT_DYNAMIC
|