@ai-ecoverse/slicc-kernel 1.196.24 → 1.196.25

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
@@ -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()`.
@@ -1543,7 +1543,7 @@ function createParentRefreshCount() {
1543
1543
  }
1544
1544
 
1545
1545
  // src/version.ts
1546
- var KERNEL_VERSION = true ? "1.196.24" : "0.0.0-dev";
1546
+ var KERNEL_VERSION = true ? "1.196.25" : "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