bidi2pdf 0.1.13 → 0.1.14

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 (109) hide show
  1. checksums.yaml +4 -4
  2. data/.devcontainer/Dockerfile +53 -0
  3. data/.devcontainer/devcontainer.json +51 -0
  4. data/.devcontainer/docker-compose.yml +33 -0
  5. data/.ruby-gemset +1 -1
  6. data/.ruby-version +1 -1
  7. data/CHANGELOG.md +46 -6
  8. data/README.md +12 -0
  9. data/docker/Dockerfile +1 -1
  10. data/docker/Dockerfile.slim +2 -2
  11. data/docker/chrome-driver/chrome.json +874 -0
  12. data/lib/bidi2pdf/bidi/browser_tab.rb +52 -0
  13. data/lib/bidi2pdf/bidi/commands/capture_screenshot.rb +33 -0
  14. data/lib/bidi2pdf/bidi/commands/set_viewport.rb +32 -0
  15. data/lib/bidi2pdf/bidi/commands.rb +2 -0
  16. data/lib/bidi2pdf/cli.rb +11 -1
  17. data/lib/bidi2pdf/launcher.rb +5 -3
  18. data/lib/bidi2pdf/test_helpers/images.rb +8 -0
  19. data/lib/bidi2pdf/test_helpers/pdf_reader_utils.rb +1 -2
  20. data/lib/bidi2pdf/test_helpers/pdf_text_sanitizer.rb +1 -2
  21. data/lib/bidi2pdf/test_helpers/testcontainers/chromedriver_container.rb +1 -1
  22. data/lib/bidi2pdf/test_helpers/testcontainers/chromedriver_test_helper.rb +18 -0
  23. data/lib/bidi2pdf/test_helpers/testcontainers/container_endpoint.rb +30 -0
  24. data/lib/bidi2pdf/test_helpers/testcontainers/testcontainers_refinement.rb +33 -0
  25. data/lib/bidi2pdf/test_helpers/testcontainers.rb +1 -0
  26. data/lib/bidi2pdf/version.rb +1 -1
  27. data/lib/bidi2pdf.rb +2 -0
  28. data/sig/bidi2pdf/bidi/add_headers_interceptor.rbs +16 -9
  29. data/sig/bidi2pdf/bidi/auth_interceptor.rbs +32 -7
  30. data/sig/bidi2pdf/bidi/browser.rbs +4 -31
  31. data/sig/bidi2pdf/bidi/browser_console_logger.rbs +59 -0
  32. data/sig/bidi2pdf/bidi/browser_tab.rbs +252 -25
  33. data/sig/bidi2pdf/bidi/client.rbs +95 -43
  34. data/sig/bidi2pdf/bidi/command_manager.rbs +5 -17
  35. data/sig/bidi2pdf/bidi/commands/add_intercept.rbs +16 -8
  36. data/sig/bidi2pdf/bidi/commands/base.rbs +49 -9
  37. data/sig/bidi2pdf/bidi/commands/browser_close.rbs +3 -1
  38. data/sig/bidi2pdf/bidi/commands/browser_create_user_context.rbs +2 -0
  39. data/sig/bidi2pdf/bidi/commands/browser_remove_user_context.rbs +19 -0
  40. data/sig/bidi2pdf/bidi/commands/browsing_context_close.rbs +8 -2
  41. data/sig/bidi2pdf/bidi/commands/browsing_context_navigate.rbs +12 -6
  42. data/sig/bidi2pdf/bidi/commands/browsing_context_print.rbs +10 -5
  43. data/sig/bidi2pdf/bidi/commands/cancel_auth.rbs +8 -2
  44. data/sig/bidi2pdf/bidi/commands/capture_screenshot.rbs +31 -0
  45. data/sig/bidi2pdf/bidi/commands/cdp_get_session.rbs +17 -0
  46. data/sig/bidi2pdf/bidi/commands/create_window.rbs +4 -0
  47. data/sig/bidi2pdf/bidi/commands/get_user_contexts.rbs +2 -0
  48. data/sig/bidi2pdf/bidi/commands/network_continue.rbs +4 -0
  49. data/sig/bidi2pdf/bidi/commands/page_print.rbs +28 -0
  50. data/sig/bidi2pdf/bidi/commands/print_parameters_validator.rbs +3 -0
  51. data/sig/bidi2pdf/bidi/commands/provide_credentials.rbs +12 -6
  52. data/sig/bidi2pdf/bidi/commands/script_evaluate.rbs +4 -0
  53. data/sig/bidi2pdf/bidi/commands/session_end.rbs +2 -0
  54. data/sig/bidi2pdf/bidi/commands/session_status.rbs +3 -1
  55. data/sig/bidi2pdf/bidi/commands/session_subscribe.rbs +4 -0
  56. data/sig/bidi2pdf/bidi/commands/set_tab_cookie.rbs +51 -23
  57. data/sig/bidi2pdf/bidi/commands/set_usercontext_cookie.rbs +17 -19
  58. data/sig/bidi2pdf/bidi/commands/set_viewport.rbs +31 -0
  59. data/sig/bidi2pdf/bidi/connection_manager.rbs +2 -1
  60. data/sig/bidi2pdf/bidi/event_manager.rbs +14 -19
  61. data/sig/bidi2pdf/bidi/interceptor.rbs +5 -0
  62. data/sig/bidi2pdf/bidi/js_logger_helper.rbs +9 -0
  63. data/sig/bidi2pdf/bidi/logger_events.rbs +21 -0
  64. data/sig/bidi2pdf/bidi/navigation_failed_events.rbs +17 -0
  65. data/sig/bidi2pdf/bidi/network_event.rbs +54 -46
  66. data/sig/bidi2pdf/bidi/network_event_formatters/network_event_console_formatter.rbs +63 -0
  67. data/sig/bidi2pdf/bidi/network_event_formatters/network_event_formatter_utils.rbs +15 -0
  68. data/sig/bidi2pdf/bidi/network_event_formatters/network_event_html_formatter.rbs +18 -0
  69. data/sig/bidi2pdf/bidi/network_event_formatters.rbs +6 -0
  70. data/sig/bidi2pdf/bidi/network_events.rbs +14 -39
  71. data/sig/bidi2pdf/bidi/session.rbs +144 -31
  72. data/sig/bidi2pdf/bidi/user_context.rbs +64 -45
  73. data/sig/bidi2pdf/bidi/web_socket_dispatcher.rbs +22 -30
  74. data/sig/bidi2pdf/chromedriver_manager.rbs +57 -22
  75. data/sig/bidi2pdf/cli.rbs +22 -2
  76. data/sig/bidi2pdf/dsl.rbs +34 -0
  77. data/sig/bidi2pdf/launcher.rbs +39 -1
  78. data/sig/bidi2pdf/notifications/event.rbs +40 -0
  79. data/sig/bidi2pdf/notifications/instrumenter.rbs +21 -0
  80. data/sig/bidi2pdf/notifications/logging_subscriber.rbs +41 -0
  81. data/sig/bidi2pdf/notifications.rbs +24 -0
  82. data/sig/bidi2pdf/process_tree.rbs +2 -2
  83. data/sig/bidi2pdf/session_runner.rbs +41 -1
  84. data/sig/bidi2pdf/test_helpers/configuration.rbs +51 -0
  85. data/sig/bidi2pdf/test_helpers/images/extractor.rbs +43 -0
  86. data/sig/bidi2pdf/test_helpers/images/image_similarity_checker.rbs +35 -0
  87. data/sig/bidi2pdf/test_helpers/images/tiff_helper.rbs +70 -0
  88. data/sig/bidi2pdf/test_helpers/images.rbs +0 -0
  89. data/sig/bidi2pdf/test_helpers/matchers/contains_pdf_image.rbs +0 -0
  90. data/sig/bidi2pdf/test_helpers/matchers/contains_pdf_text.rbs +0 -0
  91. data/sig/bidi2pdf/test_helpers/matchers/have_pdf_page_count.rbs +0 -0
  92. data/sig/bidi2pdf/test_helpers/matchers/match_pdf_text.rbs +0 -0
  93. data/sig/bidi2pdf/test_helpers/pdf_file_helper.rbs +23 -0
  94. data/sig/bidi2pdf/test_helpers/pdf_reader_utils.rbs +49 -0
  95. data/sig/bidi2pdf/test_helpers/pdf_text_sanitizer.rbs +38 -0
  96. data/sig/bidi2pdf/test_helpers/spec_paths_helper.rbs +35 -0
  97. data/sig/bidi2pdf/test_helpers/testcontainers/chromedriver_container.rbs +43 -0
  98. data/sig/bidi2pdf/test_helpers/testcontainers/chromedriver_test_helper.rbs +45 -0
  99. data/sig/bidi2pdf/test_helpers/testcontainers/container_endpoint.rbs +25 -0
  100. data/sig/bidi2pdf/test_helpers/testcontainers/shared_docker_network.rbs +3 -0
  101. data/sig/bidi2pdf/test_helpers/testcontainers/testcontainers_refinement.rbs +47 -0
  102. data/sig/bidi2pdf/test_helpers/testcontainers.rbs +6 -0
  103. data/sig/bidi2pdf/test_helpers.rbs +0 -0
  104. data/sig/bidi2pdf/verbose_logger.rbs +37 -0
  105. data/sig/bidi2pdf/version.rbs +3 -0
  106. data/sig/bidi2pdf.rbs +112 -2
  107. data/tasks/generate_rbs.rake +11 -11
  108. metadata +59 -7
  109. data/sig/bidi2pdf/utils.rbs +0 -5
@@ -0,0 +1,874 @@
1
+ {
2
+ "defaultAction": "SCMP_ACT_ERRNO",
3
+ "defaultErrnoRet": 1,
4
+ "archMap": [
5
+ {
6
+ "architecture": "SCMP_ARCH_X86_64",
7
+ "subArchitectures": [
8
+ "SCMP_ARCH_X86",
9
+ "SCMP_ARCH_X32"
10
+ ]
11
+ },
12
+ {
13
+ "architecture": "SCMP_ARCH_AARCH64",
14
+ "subArchitectures": [
15
+ "SCMP_ARCH_ARM"
16
+ ]
17
+ },
18
+ {
19
+ "architecture": "SCMP_ARCH_MIPS64",
20
+ "subArchitectures": [
21
+ "SCMP_ARCH_MIPS",
22
+ "SCMP_ARCH_MIPS64N32"
23
+ ]
24
+ },
25
+ {
26
+ "architecture": "SCMP_ARCH_MIPS64N32",
27
+ "subArchitectures": [
28
+ "SCMP_ARCH_MIPS",
29
+ "SCMP_ARCH_MIPS64"
30
+ ]
31
+ },
32
+ {
33
+ "architecture": "SCMP_ARCH_MIPSEL64",
34
+ "subArchitectures": [
35
+ "SCMP_ARCH_MIPSEL",
36
+ "SCMP_ARCH_MIPSEL64N32"
37
+ ]
38
+ },
39
+ {
40
+ "architecture": "SCMP_ARCH_MIPSEL64N32",
41
+ "subArchitectures": [
42
+ "SCMP_ARCH_MIPSEL",
43
+ "SCMP_ARCH_MIPSEL64"
44
+ ]
45
+ },
46
+ {
47
+ "architecture": "SCMP_ARCH_S390X",
48
+ "subArchitectures": [
49
+ "SCMP_ARCH_S390"
50
+ ]
51
+ },
52
+ {
53
+ "architecture": "SCMP_ARCH_RISCV64",
54
+ "subArchitectures": null
55
+ }
56
+ ],
57
+ "syscalls": [
58
+ {
59
+ "names": [
60
+ "accept",
61
+ "accept4",
62
+ "access",
63
+ "adjtimex",
64
+ "alarm",
65
+ "bind",
66
+ "brk",
67
+ "cachestat",
68
+ "capget",
69
+ "capset",
70
+ "chdir",
71
+ "chmod",
72
+ "chown",
73
+ "chown32",
74
+ "clock_adjtime",
75
+ "clock_adjtime64",
76
+ "clock_getres",
77
+ "clock_getres_time64",
78
+ "clock_gettime",
79
+ "clock_gettime64",
80
+ "clock_nanosleep",
81
+ "clock_nanosleep_time64",
82
+ "close",
83
+ "close_range",
84
+ "connect",
85
+ "copy_file_range",
86
+ "creat",
87
+ "dup",
88
+ "dup2",
89
+ "dup3",
90
+ "epoll_create",
91
+ "epoll_create1",
92
+ "epoll_ctl",
93
+ "epoll_ctl_old",
94
+ "epoll_pwait",
95
+ "epoll_pwait2",
96
+ "epoll_wait",
97
+ "epoll_wait_old",
98
+ "eventfd",
99
+ "eventfd2",
100
+ "execve",
101
+ "execveat",
102
+ "exit",
103
+ "exit_group",
104
+ "faccessat",
105
+ "faccessat2",
106
+ "fadvise64",
107
+ "fadvise64_64",
108
+ "fallocate",
109
+ "fanotify_mark",
110
+ "fchdir",
111
+ "fchmod",
112
+ "fchmodat",
113
+ "fchmodat2",
114
+ "fchown",
115
+ "fchown32",
116
+ "fchownat",
117
+ "fcntl",
118
+ "fcntl64",
119
+ "fdatasync",
120
+ "fgetxattr",
121
+ "flistxattr",
122
+ "flock",
123
+ "fork",
124
+ "fremovexattr",
125
+ "fsetxattr",
126
+ "fstat",
127
+ "fstat64",
128
+ "fstatat64",
129
+ "fstatfs",
130
+ "fstatfs64",
131
+ "fsync",
132
+ "ftruncate",
133
+ "ftruncate64",
134
+ "futex",
135
+ "futex_requeue",
136
+ "futex_time64",
137
+ "futex_wait",
138
+ "futex_waitv",
139
+ "futex_wake",
140
+ "futimesat",
141
+ "getcpu",
142
+ "getcwd",
143
+ "getdents",
144
+ "getdents64",
145
+ "getegid",
146
+ "getegid32",
147
+ "geteuid",
148
+ "geteuid32",
149
+ "getgid",
150
+ "getgid32",
151
+ "getgroups",
152
+ "getgroups32",
153
+ "getitimer",
154
+ "getpeername",
155
+ "getpgid",
156
+ "getpgrp",
157
+ "getpid",
158
+ "getppid",
159
+ "getpriority",
160
+ "getrandom",
161
+ "getresgid",
162
+ "getresgid32",
163
+ "getresuid",
164
+ "getresuid32",
165
+ "getrlimit",
166
+ "get_robust_list",
167
+ "getrusage",
168
+ "getsid",
169
+ "getsockname",
170
+ "getsockopt",
171
+ "get_thread_area",
172
+ "gettid",
173
+ "gettimeofday",
174
+ "getuid",
175
+ "getuid32",
176
+ "getxattr",
177
+ "getxattrat",
178
+ "inotify_add_watch",
179
+ "inotify_init",
180
+ "inotify_init1",
181
+ "inotify_rm_watch",
182
+ "io_cancel",
183
+ "ioctl",
184
+ "io_destroy",
185
+ "io_getevents",
186
+ "io_pgetevents",
187
+ "io_pgetevents_time64",
188
+ "ioprio_get",
189
+ "ioprio_set",
190
+ "io_setup",
191
+ "io_submit",
192
+ "ipc",
193
+ "kill",
194
+ "landlock_add_rule",
195
+ "landlock_create_ruleset",
196
+ "landlock_restrict_self",
197
+ "lchown",
198
+ "lchown32",
199
+ "lgetxattr",
200
+ "link",
201
+ "linkat",
202
+ "listen",
203
+ "listmount",
204
+ "listxattr",
205
+ "listxattrat",
206
+ "llistxattr",
207
+ "_llseek",
208
+ "lremovexattr",
209
+ "lseek",
210
+ "lsetxattr",
211
+ "lstat",
212
+ "lstat64",
213
+ "madvise",
214
+ "map_shadow_stack",
215
+ "membarrier",
216
+ "memfd_create",
217
+ "memfd_secret",
218
+ "mincore",
219
+ "mkdir",
220
+ "mkdirat",
221
+ "mknod",
222
+ "mknodat",
223
+ "mlock",
224
+ "mlock2",
225
+ "mlockall",
226
+ "mmap",
227
+ "mmap2",
228
+ "mprotect",
229
+ "mq_getsetattr",
230
+ "mq_notify",
231
+ "mq_open",
232
+ "mq_timedreceive",
233
+ "mq_timedreceive_time64",
234
+ "mq_timedsend",
235
+ "mq_timedsend_time64",
236
+ "mq_unlink",
237
+ "mremap",
238
+ "mseal",
239
+ "msgctl",
240
+ "msgget",
241
+ "msgrcv",
242
+ "msgsnd",
243
+ "msync",
244
+ "munlock",
245
+ "munlockall",
246
+ "munmap",
247
+ "name_to_handle_at",
248
+ "nanosleep",
249
+ "newfstatat",
250
+ "_newselect",
251
+ "open",
252
+ "openat",
253
+ "openat2",
254
+ "pause",
255
+ "pidfd_open",
256
+ "pidfd_send_signal",
257
+ "pipe",
258
+ "pipe2",
259
+ "pkey_alloc",
260
+ "pkey_free",
261
+ "pkey_mprotect",
262
+ "poll",
263
+ "ppoll",
264
+ "ppoll_time64",
265
+ "prctl",
266
+ "pread64",
267
+ "preadv",
268
+ "preadv2",
269
+ "prlimit64",
270
+ "process_mrelease",
271
+ "pselect6",
272
+ "pselect6_time64",
273
+ "pwrite64",
274
+ "pwritev",
275
+ "pwritev2",
276
+ "read",
277
+ "readahead",
278
+ "readlink",
279
+ "readlinkat",
280
+ "readv",
281
+ "recv",
282
+ "recvfrom",
283
+ "recvmmsg",
284
+ "recvmmsg_time64",
285
+ "recvmsg",
286
+ "remap_file_pages",
287
+ "removexattr",
288
+ "removexattrat",
289
+ "rename",
290
+ "renameat",
291
+ "renameat2",
292
+ "restart_syscall",
293
+ "riscv_hwprobe",
294
+ "rmdir",
295
+ "rseq",
296
+ "rt_sigaction",
297
+ "rt_sigpending",
298
+ "rt_sigprocmask",
299
+ "rt_sigqueueinfo",
300
+ "rt_sigreturn",
301
+ "rt_sigsuspend",
302
+ "rt_sigtimedwait",
303
+ "rt_sigtimedwait_time64",
304
+ "rt_tgsigqueueinfo",
305
+ "sched_getaffinity",
306
+ "sched_getattr",
307
+ "sched_getparam",
308
+ "sched_get_priority_max",
309
+ "sched_get_priority_min",
310
+ "sched_getscheduler",
311
+ "sched_rr_get_interval",
312
+ "sched_rr_get_interval_time64",
313
+ "sched_setaffinity",
314
+ "sched_setattr",
315
+ "sched_setparam",
316
+ "sched_setscheduler",
317
+ "sched_yield",
318
+ "seccomp",
319
+ "select",
320
+ "semctl",
321
+ "semget",
322
+ "semop",
323
+ "semtimedop",
324
+ "semtimedop_time64",
325
+ "send",
326
+ "sendfile",
327
+ "sendfile64",
328
+ "sendmmsg",
329
+ "sendmsg",
330
+ "sendto",
331
+ "setfsgid",
332
+ "setfsgid32",
333
+ "setfsuid",
334
+ "setfsuid32",
335
+ "setgid",
336
+ "setgid32",
337
+ "setgroups",
338
+ "setgroups32",
339
+ "setitimer",
340
+ "setpgid",
341
+ "setpriority",
342
+ "setregid",
343
+ "setregid32",
344
+ "setresgid",
345
+ "setresgid32",
346
+ "setresuid",
347
+ "setresuid32",
348
+ "setreuid",
349
+ "setreuid32",
350
+ "setrlimit",
351
+ "set_robust_list",
352
+ "setsid",
353
+ "setsockopt",
354
+ "set_thread_area",
355
+ "set_tid_address",
356
+ "setuid",
357
+ "setuid32",
358
+ "setxattr",
359
+ "setxattrat",
360
+ "shmat",
361
+ "shmctl",
362
+ "shmdt",
363
+ "shmget",
364
+ "shutdown",
365
+ "sigaltstack",
366
+ "signalfd",
367
+ "signalfd4",
368
+ "sigprocmask",
369
+ "sigreturn",
370
+ "socketcall",
371
+ "socketpair",
372
+ "splice",
373
+ "stat",
374
+ "stat64",
375
+ "statfs",
376
+ "statfs64",
377
+ "statmount",
378
+ "statx",
379
+ "symlink",
380
+ "symlinkat",
381
+ "sync",
382
+ "sync_file_range",
383
+ "syncfs",
384
+ "sysinfo",
385
+ "tee",
386
+ "tgkill",
387
+ "time",
388
+ "timer_create",
389
+ "timer_delete",
390
+ "timer_getoverrun",
391
+ "timer_gettime",
392
+ "timer_gettime64",
393
+ "timer_settime",
394
+ "timer_settime64",
395
+ "timerfd_create",
396
+ "timerfd_gettime",
397
+ "timerfd_gettime64",
398
+ "timerfd_settime",
399
+ "timerfd_settime64",
400
+ "times",
401
+ "tkill",
402
+ "truncate",
403
+ "truncate64",
404
+ "ugetrlimit",
405
+ "umask",
406
+ "uname",
407
+ "unlink",
408
+ "unlinkat",
409
+ "uretprobe",
410
+ "utime",
411
+ "utimensat",
412
+ "utimensat_time64",
413
+ "utimes",
414
+ "vfork",
415
+ "vmsplice",
416
+ "wait4",
417
+ "waitid",
418
+ "waitpid",
419
+ "write",
420
+ "writev"
421
+ ],
422
+ "action": "SCMP_ACT_ALLOW"
423
+ },
424
+ {
425
+ "names": [
426
+ "process_vm_readv",
427
+ "process_vm_writev",
428
+ "ptrace"
429
+ ],
430
+ "action": "SCMP_ACT_ALLOW",
431
+ "includes": {
432
+ "minKernel": "4.8"
433
+ }
434
+ },
435
+ {
436
+ "names": [
437
+ "socket"
438
+ ],
439
+ "action": "SCMP_ACT_ALLOW",
440
+ "args": [
441
+ {
442
+ "index": 0,
443
+ "value": 40,
444
+ "op": "SCMP_CMP_NE"
445
+ }
446
+ ]
447
+ },
448
+ {
449
+ "names": [
450
+ "personality"
451
+ ],
452
+ "action": "SCMP_ACT_ALLOW",
453
+ "args": [
454
+ {
455
+ "index": 0,
456
+ "value": 0,
457
+ "op": "SCMP_CMP_EQ"
458
+ }
459
+ ]
460
+ },
461
+ {
462
+ "names": [
463
+ "personality"
464
+ ],
465
+ "action": "SCMP_ACT_ALLOW",
466
+ "args": [
467
+ {
468
+ "index": 0,
469
+ "value": 8,
470
+ "op": "SCMP_CMP_EQ"
471
+ }
472
+ ]
473
+ },
474
+ {
475
+ "names": [
476
+ "personality"
477
+ ],
478
+ "action": "SCMP_ACT_ALLOW",
479
+ "args": [
480
+ {
481
+ "index": 0,
482
+ "value": 131072,
483
+ "op": "SCMP_CMP_EQ"
484
+ }
485
+ ]
486
+ },
487
+ {
488
+ "names": [
489
+ "personality"
490
+ ],
491
+ "action": "SCMP_ACT_ALLOW",
492
+ "args": [
493
+ {
494
+ "index": 0,
495
+ "value": 131080,
496
+ "op": "SCMP_CMP_EQ"
497
+ }
498
+ ]
499
+ },
500
+ {
501
+ "names": [
502
+ "personality"
503
+ ],
504
+ "action": "SCMP_ACT_ALLOW",
505
+ "args": [
506
+ {
507
+ "index": 0,
508
+ "value": 4294967295,
509
+ "op": "SCMP_CMP_EQ"
510
+ }
511
+ ]
512
+ },
513
+ {
514
+ "names": [
515
+ "sync_file_range2",
516
+ "swapcontext"
517
+ ],
518
+ "action": "SCMP_ACT_ALLOW",
519
+ "includes": {
520
+ "arches": [
521
+ "ppc64le"
522
+ ]
523
+ }
524
+ },
525
+ {
526
+ "names": [
527
+ "arm_fadvise64_64",
528
+ "arm_sync_file_range",
529
+ "sync_file_range2",
530
+ "breakpoint",
531
+ "cacheflush",
532
+ "set_tls"
533
+ ],
534
+ "action": "SCMP_ACT_ALLOW",
535
+ "includes": {
536
+ "arches": [
537
+ "arm",
538
+ "arm64"
539
+ ]
540
+ }
541
+ },
542
+ {
543
+ "names": [
544
+ "arch_prctl"
545
+ ],
546
+ "action": "SCMP_ACT_ALLOW",
547
+ "includes": {
548
+ "arches": [
549
+ "amd64",
550
+ "x32"
551
+ ]
552
+ }
553
+ },
554
+ {
555
+ "names": [
556
+ "modify_ldt"
557
+ ],
558
+ "action": "SCMP_ACT_ALLOW",
559
+ "includes": {
560
+ "arches": [
561
+ "amd64",
562
+ "x32",
563
+ "x86"
564
+ ]
565
+ }
566
+ },
567
+ {
568
+ "names": [
569
+ "s390_pci_mmio_read",
570
+ "s390_pci_mmio_write",
571
+ "s390_runtime_instr"
572
+ ],
573
+ "action": "SCMP_ACT_ALLOW",
574
+ "includes": {
575
+ "arches": [
576
+ "s390",
577
+ "s390x"
578
+ ]
579
+ }
580
+ },
581
+ {
582
+ "names": [
583
+ "riscv_flush_icache"
584
+ ],
585
+ "action": "SCMP_ACT_ALLOW",
586
+ "includes": {
587
+ "arches": [
588
+ "riscv64"
589
+ ]
590
+ }
591
+ },
592
+ {
593
+ "names": [
594
+ "open_by_handle_at"
595
+ ],
596
+ "action": "SCMP_ACT_ALLOW",
597
+ "includes": {
598
+ "caps": [
599
+ "CAP_DAC_READ_SEARCH"
600
+ ]
601
+ }
602
+ },
603
+ {
604
+ "names": [
605
+ "unshare",
606
+ "setns"
607
+ ],
608
+ "action": "SCMP_ACT_ALLOW"
609
+ },
610
+ {
611
+ "names": [
612
+ "bpf",
613
+ "clone",
614
+ "clone3",
615
+ "fanotify_init",
616
+ "fsconfig",
617
+ "fsmount",
618
+ "fsopen",
619
+ "fspick",
620
+ "lookup_dcookie",
621
+ "lsm_get_self_attr",
622
+ "lsm_list_modules",
623
+ "lsm_set_self_attr",
624
+ "mount",
625
+ "mount_setattr",
626
+ "move_mount",
627
+ "open_tree",
628
+ "perf_event_open",
629
+ "quotactl",
630
+ "quotactl_fd",
631
+ "setdomainname",
632
+ "sethostname",
633
+ "syslog",
634
+ "umount",
635
+ "umount2"
636
+ ],
637
+ "action": "SCMP_ACT_ALLOW",
638
+ "includes": {
639
+ "caps": [
640
+ "CAP_SYS_ADMIN"
641
+ ]
642
+ }
643
+ },
644
+ {
645
+ "names": [
646
+ "clone"
647
+ ],
648
+ "action": "SCMP_ACT_ALLOW",
649
+ "args": [
650
+ {
651
+ "index": 0,
652
+ "value": 2114060288,
653
+ "op": "SCMP_CMP_MASKED_EQ"
654
+ }
655
+ ],
656
+ "excludes": {
657
+ "caps": [
658
+ "CAP_SYS_ADMIN"
659
+ ],
660
+ "arches": [
661
+ "s390",
662
+ "s390x"
663
+ ]
664
+ }
665
+ },
666
+ {
667
+ "names": [
668
+ "clone"
669
+ ],
670
+ "action": "SCMP_ACT_ALLOW",
671
+ "args": [
672
+ {
673
+ "index": 0,
674
+ "op": "SCMP_CMP_MASKED_EQ",
675
+ "value": 2114060288,
676
+ "valueTwo": 0
677
+ }
678
+ ],
679
+ "excludes": {
680
+ "caps": [
681
+ "CAP_SYS_ADMIN"
682
+ ],
683
+ "arches": [
684
+ "s390",
685
+ "s390x"
686
+ ]
687
+ }
688
+ },
689
+ {
690
+ "names": [
691
+ "clone"
692
+ ],
693
+ "action": "SCMP_ACT_ALLOW"
694
+ },
695
+ {
696
+ "names": [
697
+ "clone"
698
+ ],
699
+ "action": "SCMP_ACT_ALLOW",
700
+ "args": [
701
+ {
702
+ "index": 1,
703
+ "value": 2114060288,
704
+ "op": "SCMP_CMP_MASKED_EQ"
705
+ }
706
+ ],
707
+ "comment": "s390 parameter ordering for clone is different",
708
+ "includes": {
709
+ "arches": [
710
+ "s390",
711
+ "s390x"
712
+ ]
713
+ },
714
+ "excludes": {
715
+ "caps": [
716
+ "CAP_SYS_ADMIN"
717
+ ]
718
+ }
719
+ },
720
+ {
721
+ "names": [
722
+ "clone3"
723
+ ],
724
+ "action": "SCMP_ACT_ERRNO",
725
+ "errnoRet": 38,
726
+ "excludes": {
727
+ "caps": [
728
+ "CAP_SYS_ADMIN"
729
+ ]
730
+ }
731
+ },
732
+ {
733
+ "names": [
734
+ "reboot"
735
+ ],
736
+ "action": "SCMP_ACT_ALLOW",
737
+ "includes": {
738
+ "caps": [
739
+ "CAP_SYS_BOOT"
740
+ ]
741
+ }
742
+ },
743
+ {
744
+ "names": [
745
+ "chroot"
746
+ ],
747
+ "action": "SCMP_ACT_ALLOW"
748
+ },
749
+ {
750
+ "names": [
751
+ "delete_module",
752
+ "init_module",
753
+ "finit_module"
754
+ ],
755
+ "action": "SCMP_ACT_ALLOW",
756
+ "includes": {
757
+ "caps": [
758
+ "CAP_SYS_MODULE"
759
+ ]
760
+ }
761
+ },
762
+ {
763
+ "names": [
764
+ "acct"
765
+ ],
766
+ "action": "SCMP_ACT_ALLOW",
767
+ "includes": {
768
+ "caps": [
769
+ "CAP_SYS_PACCT"
770
+ ]
771
+ }
772
+ },
773
+ {
774
+ "names": [
775
+ "kcmp",
776
+ "pidfd_getfd",
777
+ "process_madvise",
778
+ "process_vm_readv",
779
+ "process_vm_writev",
780
+ "ptrace"
781
+ ],
782
+ "action": "SCMP_ACT_ALLOW",
783
+ "includes": {
784
+ "caps": [
785
+ "CAP_SYS_PTRACE"
786
+ ]
787
+ }
788
+ },
789
+ {
790
+ "names": [
791
+ "iopl",
792
+ "ioperm"
793
+ ],
794
+ "action": "SCMP_ACT_ALLOW",
795
+ "includes": {
796
+ "caps": [
797
+ "CAP_SYS_RAWIO"
798
+ ]
799
+ }
800
+ },
801
+ {
802
+ "names": [
803
+ "settimeofday",
804
+ "stime",
805
+ "clock_settime",
806
+ "clock_settime64"
807
+ ],
808
+ "action": "SCMP_ACT_ALLOW",
809
+ "includes": {
810
+ "caps": [
811
+ "CAP_SYS_TIME"
812
+ ]
813
+ }
814
+ },
815
+ {
816
+ "names": [
817
+ "vhangup"
818
+ ],
819
+ "action": "SCMP_ACT_ALLOW",
820
+ "includes": {
821
+ "caps": [
822
+ "CAP_SYS_TTY_CONFIG"
823
+ ]
824
+ }
825
+ },
826
+ {
827
+ "names": [
828
+ "get_mempolicy",
829
+ "mbind",
830
+ "set_mempolicy",
831
+ "set_mempolicy_home_node"
832
+ ],
833
+ "action": "SCMP_ACT_ALLOW",
834
+ "includes": {
835
+ "caps": [
836
+ "CAP_SYS_NICE"
837
+ ]
838
+ }
839
+ },
840
+ {
841
+ "names": [
842
+ "syslog"
843
+ ],
844
+ "action": "SCMP_ACT_ALLOW",
845
+ "includes": {
846
+ "caps": [
847
+ "CAP_SYSLOG"
848
+ ]
849
+ }
850
+ },
851
+ {
852
+ "names": [
853
+ "bpf"
854
+ ],
855
+ "action": "SCMP_ACT_ALLOW",
856
+ "includes": {
857
+ "caps": [
858
+ "CAP_BPF"
859
+ ]
860
+ }
861
+ },
862
+ {
863
+ "names": [
864
+ "perf_event_open"
865
+ ],
866
+ "action": "SCMP_ACT_ALLOW",
867
+ "includes": {
868
+ "caps": [
869
+ "CAP_PERFMON"
870
+ ]
871
+ }
872
+ }
873
+ ]
874
+ }