@ai-ecoverse/slicc-kernel 1.196.52 → 1.196.53

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 CHANGED
@@ -1417,7 +1417,7 @@ With `users: 'enforce'` the kernel checks every file call that reaches it agains
1417
1417
  ```
1418
1418
  Defaults env_keep += "GH_TOKEN GITHUB_TOKEN"
1419
1419
  ```
1420
- - **Request limits:** `proc-sudo` accepts up to 4096 arguments and 4096 caller environment entries. They share a 1 MiB UTF-8 byte budget: each argument and each `NAME=value` entry costs its encoded length plus one terminating NUL, even for an empty argument. 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.
1420
+ - **Request limits:** `proc-sudo` accepts up to 4096 arguments and 4096 caller environment entries. They share a 1 MiB UTF-8 byte budget: each argument and each `NAME=value` entry costs its encoded length plus one terminating NUL, even for an empty argument. 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 argument that is not a string or contains a NUL is invalid (`EINVAL`), even if the vector is also too large. Otherwise an oversized request fails with `E2BIG`; the kernel does not truncate it. `sudoRun` validates replay arguments with the same UTF-8 count, including each terminator; a malformed saved request returns `EINVAL`. Timestamp and replay log lines and command-policy denials are capped at 4096 UTF-8 bytes of displayed text. `PWD` is quoted and capped separately at 768 bytes, so it cannot displace `USER`, `TIMESTAMP` or `REPLAY`, or `COMMAND`. A clipped command or diagnostic command name ends in `… [sha256=<hex>]` before any reason text; the digest is SHA-256 of the UTF-8 JSON array of the complete arguments (resolved argv for audit logs, typed argv for caller diagnostics). A shortened metadata field alone has an ellipsis, not a command digest. These limits also apply to changed-command and command-not-found messages. This affects display only: matching, approval, replay and execution use the complete arguments.
1421
1421
  - **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.
1422
1422
  - **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`.
1423
1423
  - **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.
@@ -1601,7 +1601,7 @@ var EMSCRIPTEN_FIXED_DIRS = [
1601
1601
  var EARLY_WHOLE_FILE = 64 * 1024;
1602
1602
 
1603
1603
  // src/version.ts
1604
- var KERNEL_VERSION = true ? "1.196.52" : "0.0.0-dev";
1604
+ var KERNEL_VERSION = true ? "1.196.53" : "0.0.0-dev";
1605
1605
  var OS_RELEASE = "6.0.0-slicc";
1606
1606
  function procVersion() {
1607
1607
  return `Linux version ${OS_RELEASE} (slicc-kernel ${KERNEL_VERSION}) #1 SMP PREEMPT_DYNAMIC