-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhow-it-works.html
More file actions
667 lines (593 loc) · 25.7 KB
/
Copy pathhow-it-works.html
File metadata and controls
667 lines (593 loc) · 25.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
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
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
---
layout: default
title: "How Sandlock Works"
description: "Sandlock combines Landlock, seccomp-bpf, and seccomp user notification into a single policy applied to a process before it executes. Architecture, enforcement paths, and kernel requirements."
permalink: /how-it-works.html
---
<style>
.layer-stack {
display: flex;
flex-direction: column;
gap: var(--space-4);
margin-top: var(--space-10);
}
.layer {
display: grid;
grid-template-columns: 200px 1fr;
gap: var(--space-8);
padding: var(--space-8);
background: white;
border: 1px solid var(--gray-200);
border-left: 3px solid var(--accent-500);
border-radius: var(--radius-lg);
}
.layer-head .tag {
font-family: var(--font-mono);
font-size: 10px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.12em;
color: var(--gray-400);
display: block;
margin-bottom: var(--space-2);
}
.layer-head h3 {
font-size: var(--text-xl);
font-weight: 800;
letter-spacing: -0.02em;
color: var(--gray-900);
line-height: var(--leading-tight);
}
.layer-head .enforced {
display: inline-flex;
align-items: center;
gap: 5px;
margin-top: var(--space-3);
font-family: var(--font-mono);
font-size: 10px;
text-transform: uppercase;
letter-spacing: 0.08em;
padding: 3px 8px;
border-radius: var(--radius-sm);
background: rgba(47, 125, 87, 0.1);
color: var(--success);
border: 1px solid rgba(47, 125, 87, 0.2);
}
.layer-head .enforced.userspace {
background: rgba(201, 161, 62, 0.1);
color: var(--accent-700);
border-color: rgba(201, 161, 62, 0.25);
}
.layer-body p {
font-size: var(--text-sm);
line-height: var(--leading-relaxed);
color: var(--gray-600);
}
.layer-body p + p {
margin-top: var(--space-4);
}
.layer-body ul {
margin-top: var(--space-4);
padding-left: var(--space-5);
}
.layer-body li {
font-size: var(--text-sm);
color: var(--gray-600);
line-height: var(--leading-relaxed);
margin-bottom: var(--space-2);
}
.layer-body strong {
color: var(--gray-900);
}
/* Confinement sequence. Two lanes on desktop, stacked on a phone, built from
text so it stays legible at any width. */
.flow {
display: grid;
grid-template-columns: 1.35fr 1fr;
gap: var(--space-8);
margin-top: var(--space-10);
align-items: start;
}
.flow-child,
.flow-parent {
padding: var(--space-6) var(--space-8);
background: white;
border: 1px solid var(--gray-200);
border-radius: var(--radius-lg);
}
.flow-child {
border-left: 3px solid var(--accent-500);
}
.flow-parent {
background: var(--gray-50);
}
.flow-lane-label {
font-family: var(--font-mono);
font-size: 10px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.12em;
color: var(--gray-400);
margin-bottom: var(--space-5);
}
.flow-lane-label code {
font-size: 1em;
text-transform: none;
letter-spacing: 0;
}
.flow-steps {
list-style: none;
position: relative;
}
.flow-steps li {
position: relative;
display: flex;
gap: var(--space-4);
padding-bottom: var(--space-4);
}
.flow-steps li:last-child {
padding-bottom: 0;
}
/* The rule joining one step marker to the next. */
.flow-steps li:not(:last-child)::before {
content: '';
position: absolute;
left: 11px;
top: 24px;
bottom: 0;
width: 1px;
background: var(--gray-200);
}
.flow-steps .n {
flex: none;
width: 23px;
height: 23px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-family: var(--font-mono);
font-size: 11px;
font-weight: 600;
color: var(--gray-500);
background: white;
border: 1px solid var(--gray-200);
position: relative;
z-index: 1;
}
.flow-steps li.is-key .n {
color: var(--gray-900);
background: var(--accent-300);
border-color: var(--accent-500);
}
.flow-steps .what {
font-size: var(--text-sm);
line-height: var(--leading-snug);
color: var(--gray-600);
padding-top: 3px;
}
.flow-steps .what code {
font-family: var(--font-mono);
font-size: 0.92em;
font-weight: 600;
color: var(--gray-900);
}
.flow-steps li.is-key .what {
color: var(--gray-800);
}
.flow-steps .what em {
display: block;
font-style: normal;
font-size: var(--text-xs);
color: var(--gray-500);
margin-top: 3px;
line-height: var(--leading-snug);
}
.flow-side {
list-style: none;
display: flex;
flex-direction: column;
gap: var(--space-3);
}
.flow-side li {
position: relative;
padding-left: var(--space-4);
font-size: var(--text-sm);
line-height: var(--leading-snug);
color: var(--gray-600);
}
.flow-side li::before {
content: '';
position: absolute;
left: 0;
top: 0.6em;
width: 6px;
height: 1px;
background: var(--gray-300);
}
.flow-note {
margin-top: var(--space-5);
padding-top: var(--space-4);
border-top: 1px solid var(--gray-200);
font-size: var(--text-xs);
line-height: var(--leading-relaxed);
color: var(--gray-500);
}
/* Component stack. */
.stack {
margin-top: var(--space-10);
}
.tier {
display: grid;
grid-template-columns: 110px 1fr;
gap: var(--space-6);
align-items: center;
padding: var(--space-5) 0;
position: relative;
}
.tier + .tier {
border-top: 1px solid var(--gray-200);
}
.tier-label {
font-family: var(--font-mono);
font-size: 10px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.12em;
color: var(--gray-400);
}
.tier-items {
display: flex;
flex-wrap: wrap;
gap: var(--space-3);
}
.chip {
padding: var(--space-3) var(--space-5);
background: white;
border: 1px solid var(--gray-200);
border-radius: var(--radius-md);
font-family: var(--font-mono);
font-size: var(--text-sm);
font-weight: 600;
color: var(--gray-900);
text-align: center;
}
.chip em {
display: block;
font-family: var(--font-sans);
font-style: normal;
font-size: var(--text-xs);
font-weight: 400;
color: var(--gray-500);
margin-top: 2px;
}
.chip.is-direct {
border-style: dashed;
border-color: var(--accent-500);
}
.chip.is-wide {
flex: 1;
}
.chip.is-core {
background: var(--gray-900);
color: white;
border-color: var(--gray-900);
}
.chip.is-core em {
color: rgba(255, 255, 255, 0.5);
}
.stack-note {
margin-top: var(--space-5);
font-size: var(--text-sm);
line-height: var(--leading-relaxed);
color: var(--gray-500);
}
.stack-note strong {
color: var(--gray-800);
}
.path-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: var(--space-5);
margin-top: var(--space-8);
}
@media (max-width: 900px) {
.layer {
grid-template-columns: 1fr;
gap: var(--space-5);
}
.flow {
grid-template-columns: 1fr;
gap: var(--space-5);
}
.tier {
grid-template-columns: 1fr;
gap: var(--space-3);
}
.chip {
flex: 1 1 100%;
}
.path-grid {
grid-template-columns: 1fr;
}
}
</style>
<section class="hero hero-page">
<div class="hero-container">
<div class="hero-badge">
<i data-lucide="cpu"></i>
<span>Architecture</span>
</div>
<h1>How Sandlock Works</h1>
<p class="subtitle">Sandlock is not a runtime the workload runs inside. It is a policy the kernel applies to a process, installed after <code class="inline" style="background:rgba(255,255,255,0.08);border-color:rgba(255,255,255,0.15);color:rgba(255,255,255,0.8)">fork()</code> and before <code class="inline" style="background:rgba(255,255,255,0.08);border-color:rgba(255,255,255,0.15);color:rgba(255,255,255,0.8)">exec()</code>, so the workload has never executed a single unconfined instruction.</p>
</div>
</section>
<section class="section">
<div class="section-container">
<div class="section-header">
<div class="section-badge">
<i data-lucide="layers"></i>
<span>Three mechanisms</span>
</div>
<h2 class="section-title">What Enforces What</h2>
<p class="section-subtitle">Sandlock pushes as much of the policy as possible into the kernel. Only the rules the kernel cannot express, such as "this destination IP" or "this HTTP path", reach the supervisor.</p>
</div>
<div class="layer-stack">
<div class="layer">
<div class="layer-head">
<span class="tag">Layer 1</span>
<h3>Landlock</h3>
<span class="enforced"><i data-lucide="shield" style="width:11px;height:11px"></i> Kernel</span>
</div>
<div class="layer-body">
<p>Landlock is Linux's unprivileged access-control LSM. Sandlock translates the policy's filesystem, network, and IPC rules into a Landlock ruleset and applies it to the child process. From that point the kernel evaluates every access against the ruleset, and the ruleset can never be relaxed for the lifetime of the process tree.</p>
<ul>
<li><strong>Filesystem.</strong> Read and write grants are recursive <code class="inline">PATH_BENEATH</code> rules. Because the kernel resolves the path itself at access time, these rules are immune to time-of-check/time-of-use attacks that defeat path-string filtering in userspace.</li>
<li><strong>TCP.</strong> Connect and bind port allowlists (Landlock ABI v4 and later).</li>
<li><strong>IPC.</strong> Abstract UNIX socket scoping and signal scoping (ABI v6), which keep a sandbox from reaching sibling processes on the host.</li>
</ul>
<p>Landlock costs nothing per syscall beyond the kernel's own check. This is why confinement is cheap enough to leave on for production workloads.</p>
</div>
</div>
<div class="layer">
<div class="layer-head">
<span class="tag">Layer 2</span>
<h3>seccomp-bpf</h3>
<span class="enforced"><i data-lucide="shield" style="width:11px;height:11px"></i> Kernel</span>
</div>
<div class="layer-body">
<p>A seccomp-bpf filter removes syscall families a confined workload has no legitimate use for, before any of them can reach the kernel's implementation. Sandlock always applies its default blocklist; a policy can add more denials on top of it, and can re-enable specific named groups such as System V IPC when a workload genuinely needs them.</p>
<p>The same filter installs the notification listener used by layer 3. Because the filter is installed alongside <code class="inline">NO_NEW_PRIVS</code>, the child cannot regain privileges through a setuid binary, and the filter is inherited by every descendant.</p>
<p>A <strong>no-supervisor mode</strong> uses only layers 1 and 2: Landlock plus a kernel-only deny filter, with no supervisor process at all. It is the mode used when nesting one sandlock inside another, since the kernel permits only one notification listener per task.</p>
</div>
</div>
<div class="layer">
<div class="layer-head">
<span class="tag">Layer 3</span>
<h3>seccomp user notification</h3>
<span class="enforced userspace"><i data-lucide="eye" style="width:11px;height:11px"></i> Supervisor</span>
</div>
<div class="layer-body">
<p>Some policy cannot be expressed as a static kernel rule. "Connect only to this IP", "stop at 512 MB of resident memory", "stage this write instead of performing it" all require a decision at the moment the syscall happens. Seccomp user notification hands those syscalls to an async supervisor running in the parent process.</p>
<p>The supervisor is the one component that is not the kernel, so Sandlock keeps its responsibilities narrow and its ordering fixed: built-in handlers run first, and any handlers a downstream crate registers run after them, which means a custom handler can extend confinement but never subvert it.</p>
</div>
</div>
</div>
</div>
</section>
<section class="section section-alt">
<div class="section-container narrow">
<div class="section-header">
<div class="section-badge">
<i data-lucide="git-commit-horizontal"></i>
<span>Startup</span>
</div>
<h2 class="section-title">The Confinement Sequence</h2>
<p class="section-subtitle">Order matters. Every restriction is in place before the workload's first instruction runs, and the parent only starts supervising after the child has confirmed the filter is installed.</p>
</div>
<div class="flow">
<div class="flow-child">
<div class="flow-lane-label">In the child, after <code>fork()</code></div>
<ol class="flow-steps">
<li><span class="n">1</span><span class="what"><code>setpgid(0,0)</code></span></li>
<li><span class="n">2</span><span class="what"><code>chdir(cwd)</code>, if the policy sets one</span></li>
<li class="is-key"><span class="n">3</span><span class="what"><code>NO_NEW_PRIVS</code><em>a setuid binary can now confer nothing</em></span></li>
<li class="is-key"><span class="n">4</span><span class="what"><code>Landlock</code> ruleset applied<em>filesystem, network, and IPC</em></span></li>
<li class="is-key"><span class="n">5</span><span class="what"><code>seccomp</code> filter installed<em>deny list plus the notification listener, whose descriptor goes to the parent</em></span></li>
<li><span class="n">6</span><span class="what">Wait for the parent's ready signal</span></li>
<li class="is-key"><span class="n">7</span><span class="what">Close every descriptor above stderr</span></li>
<li class="is-key"><span class="n">8</span><span class="what"><code>exec(cmd)</code><em>the workload's first instruction, already confined</em></span></li>
</ol>
</div>
<div class="flow-parent">
<div class="flow-lane-label">In the parent, meanwhile</div>
<ul class="flow-side">
<li>Receives the notification descriptor</li>
<li>Starts the supervisor on tokio</li>
<li>Patches the vDSO, if time is frozen</li>
<li>Starts the policy callback thread, if one is set</li>
<li>Starts the CPU throttle task, if one is set</li>
</ul>
<p class="flow-note">Everything on the left happens before the workload exists. Everything on the right supervises it once it does.</p>
</div>
</div>
<div class="callout">
<i data-lucide="info"></i>
<div class="callout-body">
<p><strong>Why fds are closed at step 7.</strong> A descriptor inherited from the parent is a capability the Landlock ruleset never sees: it was opened before confinement, so the kernel will honour it. Closing everything above stderr removes that escape hatch before <code class="inline">exec</code>.</p>
</div>
</div>
</div>
</section>
<section class="section">
<div class="section-container">
<div class="section-header">
<div class="section-badge">
<i data-lucide="radio"></i>
<span>The supervisor</span>
</div>
<h2 class="section-title">Which Syscalls Take a Round Trip</h2>
<p class="section-subtitle">Only the syscalls in this table are intercepted, and only when the corresponding policy feature is active. Everything else runs at full speed under the kernel filter.</p>
</div>
<div class="data-table-wrap">
<table class="data-table">
<thead>
<tr>
<th scope="col">Syscall</th>
<th scope="col">What the supervisor does</th>
</tr>
</thead>
<tbody>
<tr><th scope="row"><code>clone</code> / <code>fork</code> / <code>vfork</code></th><td>Enforces the concurrent process count</td></tr>
<tr><th scope="row"><code>mmap</code> / <code>munmap</code> / <code>brk</code> / <code>mremap</code></th><td>Tracks the memory limit</td></tr>
<tr><th scope="row"><code>connect</code> / <code>sendto</code> / <code>sendmsg</code></th><td>Destination IP allowlist, on-behalf execution, HTTP ACL redirect</td></tr>
<tr><th scope="row"><code>bind</code></th><td>On-behalf bind and port remapping</td></tr>
<tr><th scope="row"><code>openat</code></th><td>/proc virtualization and COW interception</td></tr>
<tr><th scope="row"><code>unlinkat</code> / <code>mkdirat</code> / <code>renameat2</code></th><td>COW write interception</td></tr>
<tr><th scope="row"><code>execve</code> / <code>execveat</code></th><td>Policy callback hold and vDSO re-patching</td></tr>
<tr><th scope="row"><code>getrandom</code></th><td>Deterministic PRNG injection</td></tr>
<tr><th scope="row"><code>clock_nanosleep</code> / <code>timer_settime</code></th><td>Timer adjustment when time is frozen</td></tr>
<tr><th scope="row"><code>getdents64</code></th><td>PID filtering and COW directory merging</td></tr>
<tr><th scope="row"><code>getsockname</code></th><td>Port remap translation</td></tr>
</tbody>
</table>
</div>
</div>
</section>
<section class="section section-alt">
<div class="section-container">
<div class="section-header">
<div class="section-badge">
<i data-lucide="split"></i>
<span>Network enforcement</span>
</div>
<h2 class="section-title">Two Paths, Chosen by Your Policy</h2>
<p class="section-subtitle">Sandlock picks the cheapest enforcement path that can express the rules you wrote. You do not configure this; it falls out of the policy.</p>
</div>
<div class="path-grid">
<div class="capability-card primary">
<div class="capability-icon"><i data-lucide="zap"></i></div>
<h3 class="capability-title">Direct path</h3>
<p class="capability-description">Selected when the policy is pure TCP port rules with no concrete host, IP, or CIDR, and no HTTP ACL. Landlock enforces the port allowlist in the kernel, and there is no per-syscall overhead at all.</p>
<div class="capability-features">
<div class="feature-item"><i data-lucide="check"></i><span>Zero userspace round trips</span></div>
<div class="feature-item"><i data-lucide="check"></i><span>Example: <code class="inline">--net-allow :443</code></span></div>
</div>
</div>
<div class="capability-card">
<div class="capability-icon"><i data-lucide="route"></i></div>
<h3 class="capability-title">On-behalf path</h3>
<p class="capability-description">Selected for any host, IP, or CIDR target, any UDP or ICMP rule, or any HTTP ACL rule, because the destination address has to be inspected and Landlock cannot do that. The supervisor duplicates the child's socket, learns its protocol via <code class="inline">SO_PROTOCOL</code>, checks the destination, and performs the syscall itself.</p>
<div class="capability-features">
<div class="feature-item"><i data-lucide="check"></i><span>Per-connection check, not per-packet</span></div>
<div class="feature-item"><i data-lucide="check"></i><span>Example: <code class="inline">--net-allow api.example.com:443</code></span></div>
</div>
</div>
</div>
<div class="text-center" style="margin-top: var(--space-10);">
<a href="/docs/network.html" class="btn btn-outline">
<i data-lucide="book-open"></i>
Full network policy
</a>
</div>
</div>
</section>
<section class="section">
<div class="section-container narrow">
<div class="section-header">
<div class="section-badge">
<i data-lucide="component"></i>
<span>Components</span>
</div>
<h2 class="section-title">One Core, Many Front Ends</h2>
<p class="section-subtitle">Sandlock is written in Rust. Every interface, including the SDKs in other languages, drives the same core through the same policy object.</p>
</div>
<div class="stack">
<div class="tier">
<div class="tier-label">Interfaces</div>
<div class="tier-items">
<span class="chip">sandlock CLI</span>
<span class="chip">Python SDK<em>ctypes</em></span>
<span class="chip">Go SDK<em>cgo</em></span>
<span class="chip is-direct">sandlock-oci<em>OCI runtime</em></span>
</div>
</div>
<div class="tier">
<div class="tier-label">C ABI</div>
<div class="tier-items">
<span class="chip is-wide">libsandlock_ffi.so</span>
</div>
</div>
<div class="tier">
<div class="tier-label">Core</div>
<div class="tier-items">
<span class="chip is-wide is-core">sandlock-core<em>Landlock · seccomp · COW · pipeline · policy_fn · vDSO</em></span>
</div>
</div>
<p class="stack-note">The CLI and both SDKs reach the core through the C ABI. <strong>sandlock-oci links the core directly</strong>, since it is a Rust crate itself and has no reason to cross the boundary.</p>
</div>
<div class="data-table-wrap" style="margin-top: var(--space-8);">
<table class="data-table">
<thead>
<tr>
<th scope="col">Component</th>
<th scope="col">Role</th>
</tr>
</thead>
<tbody>
<tr><th scope="row"><code>sandlock-core</code></th><td>Rust library: Landlock, seccomp, supervisor, COW, pipelines</td></tr>
<tr><th scope="row"><code>sandlock-cli</code></th><td>The <code>sandlock</code> binary</td></tr>
<tr><th scope="row"><code>sandlock-oci</code></th><td>OCI runtime shim for containerd, CRI-O, and Kubernetes</td></tr>
<tr><th scope="row"><code>sandlock-ffi</code></th><td>C ABI shared library, <code>libsandlock_ffi.so</code></td></tr>
<tr><th scope="row">Python SDK</th><td>ctypes bindings over the FFI library, plus an MCP server</td></tr>
<tr><th scope="row">Go SDK</th><td>cgo bindings over the FFI library</td></tr>
</tbody>
</table>
</div>
</div>
</section>
<section class="section section-dark">
<div class="section-container narrow">
<div class="section-header">
<div class="section-badge">
<i data-lucide="server-cog"></i>
<span>Requirements</span>
</div>
<h2 class="section-title">What the Host Kernel Must Provide</h2>
<p class="section-subtitle">Sandlock targets Linux 6.12 and later, which is where Landlock ABI v6 lands. Individual protections can be degraded or disabled per policy when you deploy across a mixed fleet.</p>
</div>
<div class="data-table-wrap">
<table class="data-table">
<thead>
<tr>
<th scope="col">Capability</th>
<th scope="col">Minimum kernel</th>
</tr>
</thead>
<tbody>
<tr><th scope="row">seccomp user notification</th><td>5.6</td></tr>
<tr><th scope="row">Landlock filesystem rules</th><td>5.13</td></tr>
<tr><th scope="row">Landlock TCP port rules (ABI v4)</th><td>6.7</td></tr>
<tr><th scope="row">Landlock IPC scoping (ABI v6)</th><td>6.12</td></tr>
</tbody>
</table>
</div>
<p class="table-note" style="color: rgba(255,255,255,0.45);">Run <code style="color:var(--accent-400)">sandlock check</code> to report the running kernel's Landlock ABI and which protections are available. Building Sandlock itself needs Rust 1.70 or later; the Python SDK needs Python 3.8 or later.</p>
</div>
</section>
<section class="cta-band">
<div class="cta-band-inner">
<h2>Read the Documentation</h2>
<p>Every policy field, every flag, and every enforcement rule is documented, from a five-minute quickstart to the complete sandbox reference.</p>
<div class="button-group">
<a href="/docs/" class="btn btn-primary">
<i data-lucide="book-open"></i>
Browse the Docs
</a>
<a href="/security.html" class="btn btn-secondary">
<i data-lucide="shield-check"></i>
Security Model
</a>
</div>
</div>
</section>