@dr-co/dsh-node-client 0.0.62 → 0.0.63

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.
Files changed (2) hide show
  1. package/lib/sandbox.mjs +8 -1
  2. package/package.json +1 -1
package/lib/sandbox.mjs CHANGED
@@ -22,7 +22,14 @@ import { spawnSync } from 'node:child_process'
22
22
  export const MODES = ['ro', 'rw', 'full']
23
23
 
24
24
  /** Сигнатуры отказа, которые печатает ядро под `bwrap` (как в DSH). */
25
- export const DENIAL_SIGNATURES = ['read-only file system']
25
+ export const DENIAL_SIGNATURES = [
26
+ 'read-only file system',
27
+ // rw-профиль закрывает всё вне roots через ro-bind, и ядро отвечает не
28
+ // «read-only», а «permission denied». Без этих двух строк отказ ядра выглядел
29
+ // обычной ошибкой команды, и человеку не задавался вопрос о расширении.
30
+ 'permission denied',
31
+ 'operation not permitted',
32
+ ]
26
33
 
27
34
  /** Признаки поломки самого раннера: это не отказ политики, а «не запустилось». */
28
35
  export const RUNNER_SIGNATURES = ['bwrap: ']
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dr-co/dsh-node-client",
3
- "version": "0.0.62",
3
+ "version": "0.0.63",
4
4
  "description": "Client for dsh-nodes: runs on a remote machine, declares its APIs and executes commands from a DSH session",
5
5
  "type": "module",
6
6
  "bin": {