Commit f3179f7
policy: ensure workers do not read fs for policy
This prevents a main thread from rewriting the policy file and loading
a worker that has a different policy from the main thread.
PR-URL: #25710
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>1 parent ebcdbeb commit f3179f7Copy full SHA for f3179f7
File tree
Expand file treeCollapse file tree
5 files changed
+138
-16
lines changedOpen diff view settings
Filter options
- lib/internal
- bootstrap
- process
- test/parallel
Expand file treeCollapse file tree
5 files changed
+138
-16
lines changedOpen diff view settings
Collapse file
lib/internal/bootstrap/node.js
Copy file name to clipboardExpand all lines: lib/internal/bootstrap/node.js+5-5Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
173 | 173 | |
174 | 174 | |
175 | 175 | |
176 | | - |
| 176 | + |
177 | 177 | |
178 | 178 | |
179 | 179 | |
| ||
364 | 364 | |
365 | 365 | |
366 | 366 | |
367 | | - |
368 | | - |
369 | 367 | |
370 | 368 | |
371 | 369 | |
| ||
382 | 380 | |
383 | 381 | |
384 | 382 | |
385 | | - |
| 383 | + |
| 384 | + |
| 385 | + |
386 | 386 | |
387 | 387 | |
388 | 388 | |
| ||
476 | 476 | |
477 | 477 | |
478 | 478 | |
479 | | - |
| 479 | + |
480 | 480 | |
481 | 481 | |
482 | 482 | |
|
Collapse file
lib/internal/process/policy.js
Copy file name to clipboardExpand all lines: lib/internal/process/policy.js+18Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
5 | 5 | |
6 | 6 | |
7 | 7 | |
| 8 | + |
| 9 | + |
8 | 10 | |
9 | 11 | |
10 | 12 | |
11 | 13 | |
| 14 | + |
| 15 | + |
12 | 16 | |
13 | 17 | |
14 | 18 | |
| ||
31 | 35 | |
32 | 36 | |
33 | 37 | |
| 38 | + |
| 39 | + |
| 40 | + |
| 41 | + |
| 42 | + |
| 43 | + |
| 44 | + |
| 45 | + |
| 46 | + |
| 47 | + |
| 48 | + |
| 49 | + |
| 50 | + |
| 51 | + |
34 | 52 | |
35 | 53 | |
36 | 54 | |
|
Collapse file
lib/internal/process/worker_thread_only.js
Copy file name to clipboardExpand all lines: lib/internal/process/worker_thread_only.js+14-2Lines changed: 14 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
43 | 43 | |
44 | 44 | |
45 | 45 | |
46 | | - |
| 46 | + |
47 | 47 | |
48 | 48 | |
49 | 49 | |
50 | 50 | |
51 | | - |
| 51 | + |
| 52 | + |
| 53 | + |
| 54 | + |
| 55 | + |
| 56 | + |
| 57 | + |
| 58 | + |
| 59 | + |
| 60 | + |
| 61 | + |
| 62 | + |
| 63 | + |
52 | 64 | |
53 | 65 | |
54 | 66 | |
|
Collapse file
+4Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
12 | 12 | |
13 | 13 | |
14 | 14 | |
| 15 | + |
15 | 16 | |
16 | 17 | |
17 | 18 | |
| ||
112 | 113 | |
113 | 114 | |
114 | 115 | |
| 116 | + |
| 117 | + |
| 118 | + |
115 | 119 | |
116 | 120 | |
117 | 121 | |
|
Collapse file
test/parallel/test-policy-integrity.js
Copy file name to clipboardExpand all lines: test/parallel/test-policy-integrity.js+97-9Lines changed: 97 additions & 9 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
33 | 33 | |
34 | 34 | |
35 | 35 | |
| 36 | + |
| 37 | + |
| 38 | + |
| 39 | + |
| 40 | + |
| 41 | + |
| 42 | + |
| 43 | + |
| 44 | + |
| 45 | + |
| 46 | + |
36 | 47 | |
37 | 48 | |
38 | 49 | |
| ||
49 | 60 | |
50 | 61 | |
51 | 62 | |
| 63 | + |
52 | 64 | |
53 | | - |
| 65 | + |
54 | 66 | |
55 | 67 | |
56 | 68 | |
| ||
65 | 77 | |
66 | 78 | |
67 | 79 | |
68 | | - |
| 80 | + |
| 81 | + |
| 82 | + |
69 | 83 | |
70 | 84 | |
71 | 85 | |
| ||
74 | 88 | |
75 | 89 | |
76 | 90 | |
77 | | - |
78 | | - |
79 | | - |
80 | | - |
81 | | - |
82 | | - |
83 | | - |
| 91 | + |
| 92 | + |
| 93 | + |
| 94 | + |
| 95 | + |
| 96 | + |
| 97 | + |
| 98 | + |
| 99 | + |
| 100 | + |
| 101 | + |
| 102 | + |
| 103 | + |
| 104 | + |
| 105 | + |
| 106 | + |
| 107 | + |
| 108 | + |
| 109 | + |
84 | 110 | |
85 | 111 | |
86 | 112 | |
| ||
195 | 221 | |
196 | 222 | |
197 | 223 | |
| 224 | + |
| 225 | + |
| 226 | + |
| 227 | + |
| 228 | + |
| 229 | + |
| 230 | + |
| 231 | + |
| 232 | + |
| 233 | + |
| 234 | + |
| 235 | + |
| 236 | + |
| 237 | + |
| 238 | + |
198 | 239 | |
199 | 240 | |
200 | 241 | |
| ||
295 | 336 | |
296 | 337 | |
297 | 338 | |
| 339 | + |
| 340 | + |
| 341 | + |
| 342 | + |
| 343 | + |
| 344 | + |
| 345 | + |
| 346 | + |
| 347 | + |
| 348 | + |
| 349 | + |
| 350 | + |
| 351 | + |
| 352 | + |
| 353 | + |
| 354 | + |
| 355 | + |
| 356 | + |
| 357 | + |
| 358 | + |
| 359 | + |
| 360 | + |
| 361 | + |
| 362 | + |
| 363 | + |
| 364 | + |
| 365 | + |
| 366 | + |
| 367 | + |
| 368 | + |
| 369 | + |
| 370 | + |
| 371 | + |
| 372 | + |
| 373 | + |
| 374 | + |
| 375 | + |
| 376 | + |
| 377 | + |
| 378 | + |
| 379 | + |
| 380 | + |
| 381 | + |
| 382 | + |
| 383 | + |
| 384 | + |
| 385 | + |
0 commit comments