@secure-exec/core 0.2.1 → 0.3.0-rc.1

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 (248) hide show
  1. package/README.md +5 -5
  2. package/dist/binary.d.ts +4 -0
  3. package/dist/binary.js +25 -0
  4. package/dist/bytes.d.ts +2 -0
  5. package/dist/bytes.js +6 -0
  6. package/dist/callbacks.d.ts +41 -0
  7. package/dist/callbacks.js +94 -0
  8. package/dist/cargo.d.ts +2 -0
  9. package/dist/cargo.js +142 -0
  10. package/dist/correlation.d.ts +10 -0
  11. package/dist/correlation.js +49 -0
  12. package/dist/descriptors.d.ts +34 -0
  13. package/dist/descriptors.js +37 -0
  14. package/dist/event-buffer.d.ts +90 -0
  15. package/dist/event-buffer.js +313 -0
  16. package/dist/ext.d.ts +7 -0
  17. package/dist/ext.js +13 -0
  18. package/dist/filesystem.d.ts +41 -0
  19. package/dist/filesystem.js +70 -0
  20. package/dist/frame-payload-codec.d.ts +8 -0
  21. package/dist/frame-payload-codec.js +14 -0
  22. package/dist/frame-rpc.d.ts +38 -0
  23. package/dist/frame-rpc.js +73 -0
  24. package/dist/frame-stream.d.ts +27 -0
  25. package/dist/frame-stream.js +99 -0
  26. package/dist/framing.d.ts +7 -0
  27. package/dist/framing.js +22 -0
  28. package/dist/generated/AcpLimitsConfig.d.ts +4 -0
  29. package/dist/generated/AcpLimitsConfig.js +2 -0
  30. package/dist/generated/CreateVmConfig.d.ts +19 -0
  31. package/dist/generated/FsPermissionRule.d.ts +6 -0
  32. package/dist/generated/FsPermissionRuleSet.d.ts +6 -0
  33. package/dist/generated/FsPermissionRuleSet.js +1 -0
  34. package/dist/generated/FsPermissionScope.d.ts +3 -0
  35. package/dist/generated/FsPermissionScope.js +1 -0
  36. package/dist/generated/HttpLimitsConfig.d.ts +3 -0
  37. package/dist/generated/HttpLimitsConfig.js +2 -0
  38. package/dist/generated/JsModuleResolution.d.ts +1 -0
  39. package/dist/generated/JsModuleResolution.js +2 -0
  40. package/dist/generated/JsRuntimeConfig.d.ts +26 -0
  41. package/dist/generated/JsRuntimeConfig.js +1 -0
  42. package/dist/generated/JsRuntimeLimitsConfig.d.ts +7 -0
  43. package/dist/generated/JsRuntimeLimitsConfig.js +2 -0
  44. package/dist/generated/JsRuntimePlatform.d.ts +1 -0
  45. package/dist/generated/JsRuntimePlatform.js +2 -0
  46. package/dist/generated/MountPluginDescriptor.d.ts +4 -0
  47. package/dist/generated/MountPluginDescriptor.js +2 -0
  48. package/dist/generated/NativeRootFilesystemConfig.d.ts +5 -0
  49. package/dist/generated/NativeRootFilesystemConfig.js +1 -0
  50. package/dist/generated/PatternPermissionRule.d.ts +6 -0
  51. package/dist/generated/PatternPermissionRule.js +1 -0
  52. package/dist/generated/PatternPermissionRuleSet.d.ts +6 -0
  53. package/dist/generated/PatternPermissionRuleSet.js +1 -0
  54. package/dist/generated/PatternPermissionScope.d.ts +3 -0
  55. package/dist/generated/PatternPermissionScope.js +1 -0
  56. package/dist/generated/PermissionMode.d.ts +1 -0
  57. package/dist/generated/PermissionMode.js +2 -0
  58. package/dist/generated/PermissionsPolicy.d.ts +10 -0
  59. package/dist/generated/PermissionsPolicy.js +1 -0
  60. package/dist/generated/PluginLimitsConfig.d.ts +4 -0
  61. package/dist/generated/PluginLimitsConfig.js +2 -0
  62. package/dist/generated/PythonLimitsConfig.d.ts +5 -0
  63. package/dist/generated/PythonLimitsConfig.js +2 -0
  64. package/dist/generated/ResourceLimitsConfig.d.ts +22 -0
  65. package/dist/generated/ResourceLimitsConfig.js +2 -0
  66. package/dist/generated/RootFilesystemConfig.d.ts +9 -0
  67. package/dist/generated/RootFilesystemConfig.js +1 -0
  68. package/dist/generated/RootFilesystemEntry.d.ts +13 -0
  69. package/dist/generated/RootFilesystemEntry.js +1 -0
  70. package/dist/generated/RootFilesystemEntryEncoding.d.ts +1 -0
  71. package/dist/generated/RootFilesystemEntryEncoding.js +2 -0
  72. package/dist/generated/RootFilesystemEntryKind.d.ts +1 -0
  73. package/dist/generated/RootFilesystemEntryKind.js +2 -0
  74. package/dist/generated/RootFilesystemLowerDescriptor.d.ts +7 -0
  75. package/dist/generated/RootFilesystemLowerDescriptor.js +1 -0
  76. package/dist/generated/RootFilesystemMode.d.ts +1 -0
  77. package/dist/generated/RootFilesystemMode.js +2 -0
  78. package/dist/generated/ToolLimitsConfig.d.ts +10 -0
  79. package/dist/generated/ToolLimitsConfig.js +2 -0
  80. package/dist/generated/VmDnsConfig.d.ts +6 -0
  81. package/dist/generated/VmDnsConfig.js +2 -0
  82. package/dist/generated/VmLimitsConfig.d.ts +18 -0
  83. package/dist/generated/VmLimitsConfig.js +1 -0
  84. package/dist/generated/VmListenPolicyConfig.d.ts +5 -0
  85. package/dist/generated/VmListenPolicyConfig.js +2 -0
  86. package/dist/generated/WasmLimitsConfig.d.ts +5 -0
  87. package/dist/generated/WasmLimitsConfig.js +2 -0
  88. package/dist/generated-protocol.d.ts +1037 -0
  89. package/dist/generated-protocol.js +2887 -0
  90. package/dist/index.d.ts +24 -62
  91. package/dist/index.js +24 -53
  92. package/dist/json.d.ts +2 -0
  93. package/dist/json.js +20 -0
  94. package/dist/kernel-proxy.d.ts +149 -0
  95. package/dist/kernel-proxy.js +1733 -0
  96. package/dist/native-client.d.ts +41 -0
  97. package/dist/native-client.js +124 -0
  98. package/dist/node-runtime.d.ts +443 -0
  99. package/dist/node-runtime.js +569 -0
  100. package/dist/numbers.d.ts +1 -0
  101. package/dist/numbers.js +8 -0
  102. package/dist/ownership.d.ts +18 -0
  103. package/dist/ownership.js +77 -0
  104. package/dist/permissions.d.ts +29 -0
  105. package/dist/permissions.js +68 -0
  106. package/dist/process.d.ts +35 -0
  107. package/dist/process.js +125 -0
  108. package/dist/protocol-client.d.ts +46 -0
  109. package/dist/protocol-client.js +180 -0
  110. package/dist/protocol-frames.d.ts +68 -0
  111. package/dist/protocol-frames.js +139 -0
  112. package/dist/protocol-maps.d.ts +28 -0
  113. package/dist/protocol-maps.js +217 -0
  114. package/dist/protocol-schema.d.ts +10 -0
  115. package/dist/protocol-schema.js +11 -0
  116. package/dist/request-payloads.d.ts +137 -0
  117. package/dist/request-payloads.js +210 -0
  118. package/dist/response-payloads.d.ts +107 -0
  119. package/dist/response-payloads.js +161 -0
  120. package/dist/sidecar-client.d.ts +242 -0
  121. package/dist/sidecar-client.js +797 -0
  122. package/dist/state.d.ts +40 -0
  123. package/dist/state.js +44 -0
  124. package/dist/test-runtime.d.ts +526 -0
  125. package/dist/test-runtime.js +2119 -0
  126. package/dist/vm-config.d.ts +31 -0
  127. package/dist/vm-config.js +1 -0
  128. package/fixtures/alpine-defaults.json +520 -0
  129. package/fixtures/base-filesystem.json +528 -0
  130. package/package.json +193 -115
  131. package/LICENSE +0 -191
  132. package/dist/bridge-setup.d.ts +0 -6
  133. package/dist/bridge-setup.js +0 -9
  134. package/dist/esm-compiler.d.ts +0 -18
  135. package/dist/esm-compiler.js +0 -72
  136. package/dist/fs-helpers.d.ts +0 -23
  137. package/dist/fs-helpers.js +0 -41
  138. package/dist/generated/isolate-runtime.d.ts +0 -19
  139. package/dist/generated/isolate-runtime.js +0 -21
  140. package/dist/generated/polyfills.d.ts +0 -82
  141. package/dist/generated/polyfills.js +0 -82
  142. package/dist/isolate-runtime/apply-custom-global-policy.js +0 -53
  143. package/dist/isolate-runtime/apply-timing-mitigation-freeze.js +0 -130
  144. package/dist/isolate-runtime/apply-timing-mitigation-off.js +0 -14
  145. package/dist/isolate-runtime/bridge-attach.js +0 -29
  146. package/dist/isolate-runtime/bridge-initial-globals.js +0 -385
  147. package/dist/isolate-runtime/eval-script-result.js +0 -8
  148. package/dist/isolate-runtime/global-exposure-helpers.js +0 -36
  149. package/dist/isolate-runtime/init-commonjs-module-globals.js +0 -28
  150. package/dist/isolate-runtime/override-process-cwd.js +0 -8
  151. package/dist/isolate-runtime/override-process-env.js +0 -8
  152. package/dist/isolate-runtime/require-setup.js +0 -4153
  153. package/dist/isolate-runtime/set-commonjs-file-globals.js +0 -36
  154. package/dist/isolate-runtime/set-stdin-data.js +0 -10
  155. package/dist/isolate-runtime/setup-dynamic-import.js +0 -123
  156. package/dist/isolate-runtime/setup-fs-facade.js +0 -87
  157. package/dist/kernel/command-registry.d.ts +0 -44
  158. package/dist/kernel/command-registry.js +0 -114
  159. package/dist/kernel/device-backend.d.ts +0 -14
  160. package/dist/kernel/device-backend.js +0 -251
  161. package/dist/kernel/device-layer.d.ts +0 -12
  162. package/dist/kernel/device-layer.js +0 -271
  163. package/dist/kernel/dns-cache.d.ts +0 -29
  164. package/dist/kernel/dns-cache.js +0 -52
  165. package/dist/kernel/fd-table.d.ts +0 -84
  166. package/dist/kernel/fd-table.js +0 -278
  167. package/dist/kernel/file-lock.d.ts +0 -34
  168. package/dist/kernel/file-lock.js +0 -122
  169. package/dist/kernel/host-adapter.d.ts +0 -50
  170. package/dist/kernel/host-adapter.js +0 -8
  171. package/dist/kernel/index.d.ts +0 -36
  172. package/dist/kernel/index.js +0 -34
  173. package/dist/kernel/kernel.d.ts +0 -9
  174. package/dist/kernel/kernel.js +0 -1415
  175. package/dist/kernel/mount-table.d.ts +0 -75
  176. package/dist/kernel/mount-table.js +0 -353
  177. package/dist/kernel/permissions.d.ts +0 -36
  178. package/dist/kernel/permissions.js +0 -150
  179. package/dist/kernel/pipe-manager.d.ts +0 -64
  180. package/dist/kernel/pipe-manager.js +0 -267
  181. package/dist/kernel/proc-backend.d.ts +0 -30
  182. package/dist/kernel/proc-backend.js +0 -428
  183. package/dist/kernel/proc-layer.d.ts +0 -11
  184. package/dist/kernel/proc-layer.js +0 -507
  185. package/dist/kernel/process-table.d.ts +0 -126
  186. package/dist/kernel/process-table.js +0 -651
  187. package/dist/kernel/pty.d.ts +0 -109
  188. package/dist/kernel/pty.js +0 -552
  189. package/dist/kernel/socket-table.d.ts +0 -312
  190. package/dist/kernel/socket-table.js +0 -1188
  191. package/dist/kernel/timer-table.d.ts +0 -54
  192. package/dist/kernel/timer-table.js +0 -108
  193. package/dist/kernel/types.d.ts +0 -541
  194. package/dist/kernel/types.js +0 -98
  195. package/dist/kernel/user.d.ts +0 -29
  196. package/dist/kernel/user.js +0 -35
  197. package/dist/kernel/vfs.d.ts +0 -82
  198. package/dist/kernel/vfs.js +0 -25
  199. package/dist/kernel/wait.d.ts +0 -45
  200. package/dist/kernel/wait.js +0 -112
  201. package/dist/kernel/wstatus.d.ts +0 -21
  202. package/dist/kernel/wstatus.js +0 -33
  203. package/dist/module-resolver.d.ts +0 -29
  204. package/dist/module-resolver.js +0 -314
  205. package/dist/package-bundler.d.ts +0 -41
  206. package/dist/package-bundler.js +0 -497
  207. package/dist/runtime-driver.d.ts +0 -66
  208. package/dist/shared/api-types.d.ts +0 -83
  209. package/dist/shared/bridge-contract.d.ts +0 -772
  210. package/dist/shared/bridge-contract.js +0 -169
  211. package/dist/shared/console-formatter.d.ts +0 -22
  212. package/dist/shared/console-formatter.js +0 -161
  213. package/dist/shared/constants.d.ts +0 -3
  214. package/dist/shared/constants.js +0 -3
  215. package/dist/shared/errors.d.ts +0 -16
  216. package/dist/shared/errors.js +0 -21
  217. package/dist/shared/esm-utils.d.ts +0 -28
  218. package/dist/shared/esm-utils.js +0 -97
  219. package/dist/shared/global-exposure.d.ts +0 -38
  220. package/dist/shared/global-exposure.js +0 -876
  221. package/dist/shared/in-memory-fs.d.ts +0 -16
  222. package/dist/shared/in-memory-fs.js +0 -115
  223. package/dist/shared/permissions.d.ts +0 -36
  224. package/dist/shared/permissions.js +0 -314
  225. package/dist/shared/require-setup.d.ts +0 -6
  226. package/dist/shared/require-setup.js +0 -9
  227. package/dist/test/block-store-conformance.d.ts +0 -34
  228. package/dist/test/block-store-conformance.js +0 -251
  229. package/dist/test/metadata-store-conformance.d.ts +0 -37
  230. package/dist/test/metadata-store-conformance.js +0 -646
  231. package/dist/test/vfs-conformance.d.ts +0 -65
  232. package/dist/test/vfs-conformance.js +0 -842
  233. package/dist/types.d.ts +0 -98
  234. package/dist/types.js +0 -6
  235. package/dist/vfs/chunked-vfs.d.ts +0 -66
  236. package/dist/vfs/chunked-vfs.js +0 -1290
  237. package/dist/vfs/host-block-store.d.ts +0 -19
  238. package/dist/vfs/host-block-store.js +0 -97
  239. package/dist/vfs/memory-block-store.d.ts +0 -16
  240. package/dist/vfs/memory-block-store.js +0 -45
  241. package/dist/vfs/memory-metadata.d.ts +0 -75
  242. package/dist/vfs/memory-metadata.js +0 -528
  243. package/dist/vfs/sqlite-metadata.d.ts +0 -91
  244. package/dist/vfs/sqlite-metadata.js +0 -582
  245. package/dist/vfs/types.d.ts +0 -210
  246. package/dist/vfs/types.js +0 -8
  247. /package/dist/{runtime-driver.js → generated/CreateVmConfig.js} +0 -0
  248. /package/dist/{shared/api-types.js → generated/FsPermissionRule.js} +0 -0
@@ -0,0 +1,31 @@
1
+ export type { AcpLimitsConfig } from "./generated/AcpLimitsConfig.js";
2
+ export type { CreateVmConfig } from "./generated/CreateVmConfig.js";
3
+ export type { FsPermissionRule } from "./generated/FsPermissionRule.js";
4
+ export type { FsPermissionRuleSet } from "./generated/FsPermissionRuleSet.js";
5
+ export type { FsPermissionScope } from "./generated/FsPermissionScope.js";
6
+ export type { HttpLimitsConfig } from "./generated/HttpLimitsConfig.js";
7
+ export type { JsModuleResolution } from "./generated/JsModuleResolution.js";
8
+ export type { JsRuntimeConfig } from "./generated/JsRuntimeConfig.js";
9
+ export type { JsRuntimeLimitsConfig } from "./generated/JsRuntimeLimitsConfig.js";
10
+ export type { JsRuntimePlatform } from "./generated/JsRuntimePlatform.js";
11
+ export type { MountPluginDescriptor } from "./generated/MountPluginDescriptor.js";
12
+ export type { NativeRootFilesystemConfig } from "./generated/NativeRootFilesystemConfig.js";
13
+ export type { PatternPermissionRule } from "./generated/PatternPermissionRule.js";
14
+ export type { PatternPermissionRuleSet } from "./generated/PatternPermissionRuleSet.js";
15
+ export type { PatternPermissionScope } from "./generated/PatternPermissionScope.js";
16
+ export type { PermissionMode } from "./generated/PermissionMode.js";
17
+ export type { PermissionsPolicy } from "./generated/PermissionsPolicy.js";
18
+ export type { PluginLimitsConfig } from "./generated/PluginLimitsConfig.js";
19
+ export type { PythonLimitsConfig } from "./generated/PythonLimitsConfig.js";
20
+ export type { ResourceLimitsConfig } from "./generated/ResourceLimitsConfig.js";
21
+ export type { RootFilesystemConfig } from "./generated/RootFilesystemConfig.js";
22
+ export type { RootFilesystemEntry } from "./generated/RootFilesystemEntry.js";
23
+ export type { RootFilesystemEntryEncoding } from "./generated/RootFilesystemEntryEncoding.js";
24
+ export type { RootFilesystemEntryKind } from "./generated/RootFilesystemEntryKind.js";
25
+ export type { RootFilesystemLowerDescriptor } from "./generated/RootFilesystemLowerDescriptor.js";
26
+ export type { RootFilesystemMode } from "./generated/RootFilesystemMode.js";
27
+ export type { ToolLimitsConfig } from "./generated/ToolLimitsConfig.js";
28
+ export type { VmDnsConfig } from "./generated/VmDnsConfig.js";
29
+ export type { VmLimitsConfig } from "./generated/VmLimitsConfig.js";
30
+ export type { VmListenPolicyConfig } from "./generated/VmListenPolicyConfig.js";
31
+ export type { WasmLimitsConfig } from "./generated/WasmLimitsConfig.js";
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,520 @@
1
+ {
2
+ "image": "alpine:3.22",
3
+ "createdAt": "2026-04-01T18:44:12.482Z",
4
+ "environment": {
5
+ "env": {
6
+ "CHARSET": "UTF-8",
7
+ "HOME": "/home/user",
8
+ "HOSTNAME": "1e3e3d3175cb",
9
+ "LANG": "C.UTF-8",
10
+ "LC_COLLATE": "C",
11
+ "LOGNAME": "user",
12
+ "PAGER": "less",
13
+ "PATH": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
14
+ "SHELL": "/bin/sh",
15
+ "USER": "user"
16
+ },
17
+ "prompt": "\\h:\\w\\$ "
18
+ },
19
+ "filesystem": {
20
+ "entries": [
21
+ {
22
+ "path": "/",
23
+ "type": "directory",
24
+ "mode": "755",
25
+ "uid": 0,
26
+ "gid": 0
27
+ },
28
+ {
29
+ "path": "/bin",
30
+ "type": "directory",
31
+ "mode": "755",
32
+ "uid": 0,
33
+ "gid": 0
34
+ },
35
+ {
36
+ "path": "/etc",
37
+ "type": "directory",
38
+ "mode": "755",
39
+ "uid": 0,
40
+ "gid": 0
41
+ },
42
+ {
43
+ "path": "/etc/alpine-release",
44
+ "type": "file",
45
+ "mode": "644",
46
+ "uid": 0,
47
+ "gid": 0,
48
+ "content": "3.22.3\n"
49
+ },
50
+ {
51
+ "path": "/etc/apk",
52
+ "type": "directory",
53
+ "mode": "755",
54
+ "uid": 0,
55
+ "gid": 0
56
+ },
57
+ {
58
+ "path": "/etc/busybox-paths.d",
59
+ "type": "directory",
60
+ "mode": "755",
61
+ "uid": 0,
62
+ "gid": 0
63
+ },
64
+ {
65
+ "path": "/etc/crontabs",
66
+ "type": "directory",
67
+ "mode": "755",
68
+ "uid": 0,
69
+ "gid": 0
70
+ },
71
+ {
72
+ "path": "/etc/group",
73
+ "type": "file",
74
+ "mode": "644",
75
+ "uid": 0,
76
+ "gid": 0,
77
+ "content": "root:x:0:root\nbin:x:1:root,bin,daemon\ndaemon:x:2:root,bin,daemon\nsys:x:3:root,bin\nadm:x:4:root,daemon\ntty:x:5:\ndisk:x:6:root\nlp:x:7:lp\nkmem:x:9:\nwheel:x:10:root\nfloppy:x:11:root\nmail:x:12:mail\nnews:x:13:news\nuucp:x:14:uucp\ncron:x:16:cron\naudio:x:18:\ncdrom:x:19:\ndialout:x:20:root\nftp:x:21:\nsshd:x:22:\ninput:x:23:\ntape:x:26:root\nvideo:x:27:root\nnetdev:x:28:\nkvm:x:34:kvm\ngames:x:35:\nshadow:x:42:\nwww-data:x:82:\nusers:x:100:games\nntp:x:123:\nabuild:x:300:\nutmp:x:406:\nping:x:999:\nnogroup:x:65533:\nnobody:x:65534:\nuser:x:1000:\n"
78
+ },
79
+ {
80
+ "path": "/etc/hostname",
81
+ "type": "file",
82
+ "mode": "644",
83
+ "uid": 0,
84
+ "gid": 0,
85
+ "content": "1e3e3d3175cb\n"
86
+ },
87
+ {
88
+ "path": "/etc/logrotate.d",
89
+ "type": "directory",
90
+ "mode": "755",
91
+ "uid": 0,
92
+ "gid": 0
93
+ },
94
+ {
95
+ "path": "/etc/modprobe.d",
96
+ "type": "directory",
97
+ "mode": "755",
98
+ "uid": 0,
99
+ "gid": 0
100
+ },
101
+ {
102
+ "path": "/etc/modules-load.d",
103
+ "type": "directory",
104
+ "mode": "755",
105
+ "uid": 0,
106
+ "gid": 0
107
+ },
108
+ {
109
+ "path": "/etc/network",
110
+ "type": "directory",
111
+ "mode": "755",
112
+ "uid": 0,
113
+ "gid": 0
114
+ },
115
+ {
116
+ "path": "/etc/nsswitch.conf",
117
+ "type": "file",
118
+ "mode": "644",
119
+ "uid": 0,
120
+ "gid": 0,
121
+ "content": "# musl itself does not support NSS, however some third-party DNS\n# implementations use the nsswitch.conf file to determine what\n# policy to follow.\n# Editing this file is not recommended.\nhosts: files dns\n"
122
+ },
123
+ {
124
+ "path": "/etc/opt",
125
+ "type": "directory",
126
+ "mode": "755",
127
+ "uid": 0,
128
+ "gid": 0
129
+ },
130
+ {
131
+ "path": "/etc/os-release",
132
+ "type": "symlink",
133
+ "mode": "777",
134
+ "uid": 0,
135
+ "gid": 0,
136
+ "target": "../usr/lib/os-release"
137
+ },
138
+ {
139
+ "path": "/etc/passwd",
140
+ "type": "file",
141
+ "mode": "644",
142
+ "uid": 0,
143
+ "gid": 0,
144
+ "content": "root:x:0:0:root:/root:/bin/sh\nbin:x:1:1:bin:/bin:/sbin/nologin\ndaemon:x:2:2:daemon:/sbin:/sbin/nologin\nlp:x:4:7:lp:/var/spool/lpd:/sbin/nologin\nsync:x:5:0:sync:/sbin:/bin/sync\nshutdown:x:6:0:shutdown:/sbin:/sbin/shutdown\nhalt:x:7:0:halt:/sbin:/sbin/halt\nmail:x:8:12:mail:/var/mail:/sbin/nologin\nnews:x:9:13:news:/usr/lib/news:/sbin/nologin\nuucp:x:10:14:uucp:/var/spool/uucppublic:/sbin/nologin\ncron:x:16:16:cron:/var/spool/cron:/sbin/nologin\nftp:x:21:21::/var/lib/ftp:/sbin/nologin\nsshd:x:22:22:sshd:/dev/null:/sbin/nologin\ngames:x:35:35:games:/usr/games:/sbin/nologin\nntp:x:123:123:NTP:/var/empty:/sbin/nologin\nguest:x:405:100:guest:/dev/null:/sbin/nologin\nnobody:x:65534:65534:nobody:/:/sbin/nologin\nuser:x:1000:1000::/home/user:/bin/sh\n"
145
+ },
146
+ {
147
+ "path": "/etc/periodic",
148
+ "type": "directory",
149
+ "mode": "755",
150
+ "uid": 0,
151
+ "gid": 0
152
+ },
153
+ {
154
+ "path": "/etc/profile",
155
+ "type": "file",
156
+ "mode": "644",
157
+ "uid": 0,
158
+ "gid": 0,
159
+ "content": "export PATH=\"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin\"\n\nexport PAGER=less\numask 022\n\n# use nicer PS1 for bash and busybox ash\nif [ -n \"$BASH_VERSION\" -o \"$BB_ASH_VERSION\" ]; then\n\tPS1='\\h:\\w\\$ '\n# use nicer PS1 for zsh\nelif [ -n \"$ZSH_VERSION\" ]; then\n\tPS1='%m:%~%# '\n# set up fallback default PS1\nelse\n\t: \"${HOSTNAME:=$(hostname)}\"\n\tPS1='${HOSTNAME%%.*}:$PWD'\n\t[ \"$(id -u)\" -eq 0 ] && PS1=\"${PS1}# \" || PS1=\"${PS1}\\$ \"\nfi\n\nfor script in /etc/profile.d/*.sh ; do\n\tif [ -r \"$script\" ] ; then\n\t\t. \"$script\"\n\tfi\ndone\nunset script\n"
160
+ },
161
+ {
162
+ "path": "/etc/profile.d",
163
+ "type": "directory",
164
+ "mode": "755",
165
+ "uid": 0,
166
+ "gid": 0
167
+ },
168
+ {
169
+ "path": "/etc/secfixes.d",
170
+ "type": "directory",
171
+ "mode": "755",
172
+ "uid": 0,
173
+ "gid": 0
174
+ },
175
+ {
176
+ "path": "/etc/shadow",
177
+ "type": "file",
178
+ "mode": "640",
179
+ "uid": 0,
180
+ "gid": 42,
181
+ "content": "root:*::0:::::\nbin:!::0:::::\ndaemon:!::0:::::\nlp:!::0:::::\nsync:!::0:::::\nshutdown:!::0:::::\nhalt:!::0:::::\nmail:!::0:::::\nnews:!::0:::::\nuucp:!::0:::::\ncron:!::0:::::\nftp:!::0:::::\nsshd:!::0:::::\ngames:!::0:::::\nntp:!::0:::::\nguest:!::0:::::\nnobody:!::0:::::\nuser:!:20544:0:99999:7:::\n"
182
+ },
183
+ {
184
+ "path": "/etc/shells",
185
+ "type": "file",
186
+ "mode": "644",
187
+ "uid": 0,
188
+ "gid": 0,
189
+ "content": "# valid login shells\n/bin/sh\n/bin/ash\n"
190
+ },
191
+ {
192
+ "path": "/etc/ssl",
193
+ "type": "directory",
194
+ "mode": "755",
195
+ "uid": 0,
196
+ "gid": 0
197
+ },
198
+ {
199
+ "path": "/etc/ssl1.1",
200
+ "type": "directory",
201
+ "mode": "755",
202
+ "uid": 0,
203
+ "gid": 0
204
+ },
205
+ {
206
+ "path": "/etc/sysctl.d",
207
+ "type": "directory",
208
+ "mode": "755",
209
+ "uid": 0,
210
+ "gid": 0
211
+ },
212
+ {
213
+ "path": "/etc/udhcpc",
214
+ "type": "directory",
215
+ "mode": "755",
216
+ "uid": 0,
217
+ "gid": 0
218
+ },
219
+ {
220
+ "path": "/home",
221
+ "type": "directory",
222
+ "mode": "755",
223
+ "uid": 0,
224
+ "gid": 0
225
+ },
226
+ {
227
+ "path": "/home/user",
228
+ "type": "directory",
229
+ "mode": "2755",
230
+ "uid": 1000,
231
+ "gid": 1000
232
+ },
233
+ {
234
+ "path": "/lib",
235
+ "type": "directory",
236
+ "mode": "755",
237
+ "uid": 0,
238
+ "gid": 0
239
+ },
240
+ {
241
+ "path": "/lib/apk",
242
+ "type": "directory",
243
+ "mode": "755",
244
+ "uid": 0,
245
+ "gid": 0
246
+ },
247
+ {
248
+ "path": "/lib/firmware",
249
+ "type": "directory",
250
+ "mode": "755",
251
+ "uid": 0,
252
+ "gid": 0
253
+ },
254
+ {
255
+ "path": "/lib/modules-load.d",
256
+ "type": "directory",
257
+ "mode": "755",
258
+ "uid": 0,
259
+ "gid": 0
260
+ },
261
+ {
262
+ "path": "/lib/sysctl.d",
263
+ "type": "directory",
264
+ "mode": "755",
265
+ "uid": 0,
266
+ "gid": 0
267
+ },
268
+ {
269
+ "path": "/media",
270
+ "type": "directory",
271
+ "mode": "755",
272
+ "uid": 0,
273
+ "gid": 0
274
+ },
275
+ {
276
+ "path": "/media/cdrom",
277
+ "type": "directory",
278
+ "mode": "755",
279
+ "uid": 0,
280
+ "gid": 0
281
+ },
282
+ {
283
+ "path": "/media/floppy",
284
+ "type": "directory",
285
+ "mode": "755",
286
+ "uid": 0,
287
+ "gid": 0
288
+ },
289
+ {
290
+ "path": "/media/usb",
291
+ "type": "directory",
292
+ "mode": "755",
293
+ "uid": 0,
294
+ "gid": 0
295
+ },
296
+ {
297
+ "path": "/mnt",
298
+ "type": "directory",
299
+ "mode": "755",
300
+ "uid": 0,
301
+ "gid": 0
302
+ },
303
+ {
304
+ "path": "/opt",
305
+ "type": "directory",
306
+ "mode": "755",
307
+ "uid": 0,
308
+ "gid": 0
309
+ },
310
+ {
311
+ "path": "/root",
312
+ "type": "directory",
313
+ "mode": "700",
314
+ "uid": 0,
315
+ "gid": 0
316
+ },
317
+ {
318
+ "path": "/run",
319
+ "type": "directory",
320
+ "mode": "755",
321
+ "uid": 0,
322
+ "gid": 0
323
+ },
324
+ {
325
+ "path": "/run/lock",
326
+ "type": "directory",
327
+ "mode": "755",
328
+ "uid": 0,
329
+ "gid": 0
330
+ },
331
+ {
332
+ "path": "/sbin",
333
+ "type": "directory",
334
+ "mode": "755",
335
+ "uid": 0,
336
+ "gid": 0
337
+ },
338
+ {
339
+ "path": "/srv",
340
+ "type": "directory",
341
+ "mode": "755",
342
+ "uid": 0,
343
+ "gid": 0
344
+ },
345
+ {
346
+ "path": "/sys",
347
+ "type": "directory",
348
+ "mode": "555",
349
+ "uid": 0,
350
+ "gid": 0
351
+ },
352
+ {
353
+ "path": "/tmp",
354
+ "type": "directory",
355
+ "mode": "1777",
356
+ "uid": 0,
357
+ "gid": 0
358
+ },
359
+ {
360
+ "path": "/usr",
361
+ "type": "directory",
362
+ "mode": "755",
363
+ "uid": 0,
364
+ "gid": 0
365
+ },
366
+ {
367
+ "path": "/usr/bin",
368
+ "type": "directory",
369
+ "mode": "755",
370
+ "uid": 0,
371
+ "gid": 0
372
+ },
373
+ {
374
+ "path": "/usr/bin/env",
375
+ "type": "symlink",
376
+ "mode": "777",
377
+ "uid": 0,
378
+ "gid": 0,
379
+ "target": "/bin/busybox"
380
+ },
381
+ {
382
+ "path": "/usr/lib",
383
+ "type": "directory",
384
+ "mode": "755",
385
+ "uid": 0,
386
+ "gid": 0
387
+ },
388
+ {
389
+ "path": "/usr/lib/os-release",
390
+ "type": "file",
391
+ "mode": "644",
392
+ "uid": 0,
393
+ "gid": 0,
394
+ "content": "NAME=\"Alpine Linux\"\nID=alpine\nVERSION_ID=3.22.3\nPRETTY_NAME=\"Alpine Linux v3.22\"\nHOME_URL=\"https://alpinelinux.org/\"\nBUG_REPORT_URL=\"https://gitlab.alpinelinux.org/alpine/aports/-/issues\"\n"
395
+ },
396
+ {
397
+ "path": "/usr/local",
398
+ "type": "directory",
399
+ "mode": "755",
400
+ "uid": 0,
401
+ "gid": 0
402
+ },
403
+ {
404
+ "path": "/usr/sbin",
405
+ "type": "directory",
406
+ "mode": "755",
407
+ "uid": 0,
408
+ "gid": 0
409
+ },
410
+ {
411
+ "path": "/usr/share",
412
+ "type": "directory",
413
+ "mode": "755",
414
+ "uid": 0,
415
+ "gid": 0
416
+ },
417
+ {
418
+ "path": "/var",
419
+ "type": "directory",
420
+ "mode": "755",
421
+ "uid": 0,
422
+ "gid": 0
423
+ },
424
+ {
425
+ "path": "/var/cache",
426
+ "type": "directory",
427
+ "mode": "755",
428
+ "uid": 0,
429
+ "gid": 0
430
+ },
431
+ {
432
+ "path": "/var/empty",
433
+ "type": "directory",
434
+ "mode": "555",
435
+ "uid": 0,
436
+ "gid": 0
437
+ },
438
+ {
439
+ "path": "/var/lib",
440
+ "type": "directory",
441
+ "mode": "755",
442
+ "uid": 0,
443
+ "gid": 0
444
+ },
445
+ {
446
+ "path": "/var/local",
447
+ "type": "directory",
448
+ "mode": "755",
449
+ "uid": 0,
450
+ "gid": 0
451
+ },
452
+ {
453
+ "path": "/var/lock",
454
+ "type": "symlink",
455
+ "mode": "777",
456
+ "uid": 0,
457
+ "gid": 0,
458
+ "target": "../run/lock"
459
+ },
460
+ {
461
+ "path": "/var/log",
462
+ "type": "directory",
463
+ "mode": "755",
464
+ "uid": 0,
465
+ "gid": 0
466
+ },
467
+ {
468
+ "path": "/var/mail",
469
+ "type": "directory",
470
+ "mode": "755",
471
+ "uid": 0,
472
+ "gid": 0
473
+ },
474
+ {
475
+ "path": "/var/opt",
476
+ "type": "directory",
477
+ "mode": "755",
478
+ "uid": 0,
479
+ "gid": 0
480
+ },
481
+ {
482
+ "path": "/var/run",
483
+ "type": "symlink",
484
+ "mode": "777",
485
+ "uid": 0,
486
+ "gid": 0,
487
+ "target": "../run"
488
+ },
489
+ {
490
+ "path": "/var/spool",
491
+ "type": "directory",
492
+ "mode": "755",
493
+ "uid": 0,
494
+ "gid": 0
495
+ },
496
+ {
497
+ "path": "/var/spool/cron",
498
+ "type": "directory",
499
+ "mode": "755",
500
+ "uid": 0,
501
+ "gid": 0
502
+ },
503
+ {
504
+ "path": "/var/spool/cron/crontabs",
505
+ "type": "symlink",
506
+ "mode": "777",
507
+ "uid": 0,
508
+ "gid": 0,
509
+ "target": "../../../etc/crontabs"
510
+ },
511
+ {
512
+ "path": "/var/tmp",
513
+ "type": "directory",
514
+ "mode": "1777",
515
+ "uid": 0,
516
+ "gid": 0
517
+ }
518
+ ]
519
+ }
520
+ }