@ai-ecoverse/slicc-kernel 1.196.24 → 1.196.26
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 +2 -2
- package/dist/async-process.js +1 -1
- package/dist/cloudflare-sources.js +1 -1
- package/dist/cloudflare.js +127 -14
- package/dist/cloudflare.js.map +3 -3
- package/dist/kernel-worker.js +127 -14
- package/dist/kernel-worker.js.map +3 -3
- package/dist/meta.js.map +2 -2
- package/dist/node-process-worker.cjs +1 -1
- package/dist/node-process-worker.js +1 -1
- package/dist/node.js +127 -14
- package/dist/node.js.map +3 -3
- package/dist/process-worker.js +1 -1
- package/dist/types/fs/meta.d.ts +2 -0
- package/dist/types/fs/opfs.d.ts +8 -0
- package/dist/types/fs/private-rename.d.ts +3 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1133,7 +1133,7 @@ A lookup follows at most 40 symlinks, as Linux does: the 41st is `ELOOP`, for WA
|
|
|
1133
1133
|
|
|
1134
1134
|
OPFS renames use `FileSystemHandle.move()` when available. If a directory handle has no native move, the kernel coordinates with writers before copying the tree and deleting the source. Replacing an empty directory also uses this coordination. A shared-capable root without the locks needed for a copy returns `EBUSY` instead.
|
|
1135
1135
|
|
|
1136
|
-
On a private root (no peer transport), an absent or explicitly unsupported
|
|
1136
|
+
On a private root (no peer transport), replacing an empty directory first tries staging the empty destination and moving the source into place. A successful native replacement preserves open file handles without reading the tree. If a move is absent or explicitly unsupported, the kernel restores the destination before falling back to a local copy. Before copying, the kernel drains operations on the source and destination trees. If a conflicting operation or write session remains open past a short grace period, the rename returns `EBUSY` without copying; finish the operation and retry. Later conflicting operations wait for the copy, with a bounded wait. A writer elsewhere on the root need not close. A local-folder mount commits writes under both operands before dispatch, so a shell can rename a directory while its descriptor remains open. A caller using the raw folder driver directly must close an overlapping uncommitted write session before retrying. This ordering is local to the kernel: it cannot coordinate writes from a native app or another tab that independently mounts the same local folder. The source is kept intact until every byte has been copied; a copy failure leaves an existing destination intact or removes a newly created one. On a root configured for peers, a rename that did not coordinate a copy still returns `EBUSY` instead of copying, even if no peer is currently visible. Other native failures report their own errno, such as `ENOENT` for a vanished source or `EACCES` for a denied move.
|
|
1137
1137
|
|
|
1138
1138
|
**FIFOs** (`mkfifo`, #896):
|
|
1139
1139
|
- **Creating one:** an Emscripten program's `mkfifo`/`mknod(S_IFIFO)` makes a FIFO node on the OPFS root (in `/tmp`, `/home` and the rest), owned by the caller, with mode `mode & ~umask`. `stat`, `ls -l` (`p`) and `test -p` show it as a FIFO, in Emscripten, WASI and JS programs. A WASIX program makes one through `slicc_fs.path_mkfifo` (see [File modes and the umask](#file-modes-and-the-umask); its libc uses it from wasix-sysroot -33), and `stat`s, `open`s, reads and writes one like any program. An existing name is `EEXIST`. tmpfs mounts (`/dev/shm`, a tmpfs `/tmp`) have FIFO nodes too, through the driver's `fifos` capability ([#907](https://github.com/ai-ecoverse/slicc-kernel/issues/907)). hostfs, `fsa` and media mounts have none, so `mkfifo` there is `EPERM`, and `EROFS` on a readonly path.
|
|
@@ -1438,7 +1438,7 @@ As in sudo(8), a person's approval is remembered for a few minutes: until then,
|
|
|
1438
1438
|
- **The settings** are sudoers(5) `Defaults` lines, in `/etc/sudoers` and `/etc/sudoers.d/*` with the same trust checks as the rules: `Defaults timestamp_timeout=10`, `Defaults timestamp_type=global`, several at once separated by commas (`Defaults timestamp_timeout=2.5, timestamp_type=ppid`), `!timestamp_timeout` for 0, and the same for some users with `Defaults:<user|%group|ALL>[,…]` (`Defaults:cone timestamp_type=global`, `Defaults:%sudo timestamp_timeout=0`). As in sudoers(5), the lines for everyone count first and then the lines for the caller (by name or one of its groups), each set in file order, so a later line wins over an earlier one and a line for the caller wins over any line for everyone. The only other setting is `env_keep`, which follows the same order (see **The environment** under [Sudo](#sudo)). Any other `Defaults` (`env_reset`, `env_check`, `env_delete`, `secure_path`, `Defaults@host`, `Defaults>root`, `Defaults!cmnd`, `timestamp_type=kernel`, `+=` or `-=` on anything but `env_keep`) is refused as a line that doesn't parse: it changes nothing, and `sudo`, `sudo -l` and `visudo -c` report it. `sudo -l` shows the lines for the caller first, as sudo does (`Matching Defaults entries for cone on slicc:` and their values), and `visudo -c` lists the values that apply.
|
|
1439
1439
|
- **The flags,** as in sudo(8):
|
|
1440
1440
|
- `sudo -n <command>` runs inside the window and fails with `sudo: a password is required` outside it, without asking.
|
|
1441
|
-
- `sudo -v` asks a person to start a timestamp, and runs nothing: the request has `validate: true`, `argv: []` and `path: ''`, and an approver should show it as starting a sudo timestamp for `user`, with no command. Approved by a person, it writes or refreshes the timestamp; inside the window it only refreshes it, without asking; with `-n` outside the window it fails without asking. A plain `'once'` exits 0 but writes nothing, and says so on standard error (`sudo: approved, but the approver didn't say a person decided, so no timestamp was recorded`). A caller whose lines are all `NOPASSWD`, or with an effective uid of 0, succeeds at once; one no line allows anything fails with `Sorry, user <user> may not run sudo on <host>.`
|
|
1441
|
+
- `sudo -v` asks a person to start a timestamp, and runs nothing: the request has `validate: true`, `argv: []` and `path: ''`, and an approver should show it as starting a sudo timestamp for `user`, with no command. The hook gets the physical path of the cwd supplied to `sudo -v` if the caller can enter it. If that path was removed or the caller can no longer search it, the hook gets `cwd: ''`. An Emscripten program starts in `/` and tries to enter its requested working directory; if that fails and it launches `sudo` from `/`, the hook sees `/` because that is the directory supplied to `sudo`, not because `sudo -v` substituted it. An empty `cwd` is not a directory approved for execution. Command execution and replay still require a verified directory. Approved by a person, it writes or refreshes the timestamp; inside the window it only refreshes it, without asking; with `-n` outside the window it fails without asking. A plain `'once'` exits 0 but writes nothing, and says so on standard error (`sudo: approved, but the approver didn't say a person decided, so no timestamp was recorded`). A caller whose lines are all `NOPASSWD`, or with an effective uid of 0, succeeds at once; one no line allows anything fails with `Sorry, user <user> may not run sudo on <host>.`
|
|
1442
1442
|
- `sudo -k` ends the current timestamp (the one `timestamp_type` names for the caller). `sudo -k <command>` (and `-kv`, `-kl`) ignores the timestamp, asks as if there were none, and writes none, leaving the current one as it was.
|
|
1443
1443
|
- `sudo -K` removes every timestamp of the caller. `-k` and `-K` need no line in the policy, and with users `'off'` or `'report'`, `-k`, `-K` and `-v` do nothing and succeed.
|
|
1444
1444
|
- **In tests,** `createNodeKernel({ sudo: { clock } })` reads the time of timestamps from `clock.now()`, such as `fakeCronClock()` from `@ai-ecoverse/slicc-kernel/testing`; otherwise it is the monotonic `performance.now()`.
|
package/dist/async-process.js
CHANGED
|
@@ -1543,7 +1543,7 @@ function createParentRefreshCount() {
|
|
|
1543
1543
|
}
|
|
1544
1544
|
|
|
1545
1545
|
// src/version.ts
|
|
1546
|
-
var KERNEL_VERSION = true ? "1.196.
|
|
1546
|
+
var KERNEL_VERSION = true ? "1.196.26" : "0.0.0-dev";
|
|
1547
1547
|
var OS_RELEASE = "6.0.0-slicc";
|
|
1548
1548
|
function procVersion() {
|
|
1549
1549
|
return `Linux version ${OS_RELEASE} (slicc-kernel ${KERNEL_VERSION}) #1 SMP PREEMPT_DYNAMIC
|