Debian Codegraph @

templates/man2/landlock_restrict_self.2.pot

raw
1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Free Software Foundation, Inc.
3 # This file is distributed under the same license as the PACKAGE package.
4 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5 #
6 #, fuzzy
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: PACKAGE VERSION\n"
10 "POT-Creation-Date: 2026-06-05 06:29+0200\n"
11 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 "Language-Team: LANGUAGE <[email protected]>\n"
14 "Language: \n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18
19 #. type: TH
20 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
21 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
22 #, no-wrap
23 msgid "landlock_restrict_self"
24 msgstr ""
25
26 #. type: TH
27 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
28 #, no-wrap
29 msgid "2026-04-21"
30 msgstr ""
31
32 #. type: TH
33 #: archlinux debian-unstable
34 #, no-wrap
35 msgid "Linux man-pages 6.18"
36 msgstr ""
37
38 #. type: SH
39 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
40 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
41 #, no-wrap
42 msgid "NAME"
43 msgstr ""
44
45 #. type: Plain text
46 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
47 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
48 msgid "landlock_restrict_self - enforce a Landlock ruleset"
49 msgstr ""
50
51 #. type: SH
52 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
53 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
54 #, no-wrap
55 msgid "LIBRARY"
56 msgstr ""
57
58 #. type: Plain text
59 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
60 #: opensuse-leap-16-1 opensuse-tumbleweed
61 msgid "Standard C library (I<libc>,\\ I<-lc>)"
62 msgstr ""
63
64 #. type: SH
65 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
66 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
67 #, no-wrap
68 msgid "SYNOPSIS"
69 msgstr ""
70
71 #. type: Plain text
72 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
73 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
74 #, no-wrap
75 msgid ""
76 "B<#include E<lt>linux/landlock.hE<gt>> /* Definition of B<LANDLOCK_*> constants */\n"
77 "B<#include E<lt>sys/syscall.hE<gt>> /* Definition of B<SYS_*> constants */\n"
78 msgstr ""
79
80 #. type: Plain text
81 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
82 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
83 #, no-wrap
84 msgid ""
85 "B<int syscall(SYS_landlock_restrict_self, int >I<ruleset_fd>B<,>\n"
86 "B< uint32_t >I<flags>B<);>\n"
87 msgstr ""
88
89 #. type: SH
90 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
91 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
92 #, no-wrap
93 msgid "DESCRIPTION"
94 msgstr ""
95
96 #. type: Plain text
97 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
98 #: opensuse-leap-16-1 opensuse-tumbleweed
99 msgid ""
100 "Once a Landlock ruleset is populated with the desired rules, the "
101 "B<landlock_restrict_self>() system call enforces this ruleset on the "
102 "calling thread. See B<landlock>(7) for a global overview."
103 msgstr ""
104
105 #. type: Plain text
106 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
107 #: opensuse-leap-16-1 opensuse-tumbleweed
108 msgid ""
109 "A thread can be restricted with multiple rulesets that are then composed "
110 "together to form the thread's Landlock domain. This can be seen as a stack "
111 "of rulesets but it is implemented in a more efficient way. A domain can "
112 "only be updated in such a way that the constraints of each past and future "
113 "composed rulesets will restrict the thread and its future children for their "
114 "entire life. It is then possible to gradually enforce tailored access "
115 "control policies with multiple independent rulesets coming from different "
116 "sources (e.g., init system configuration, user session policy, built-in "
117 "application policy). However, most applications should only need one call "
118 "to B<landlock_restrict_self>() and they should avoid arbitrary numbers of "
119 "such calls because of the composed rulesets limit. Instead, developers are "
120 "encouraged to build a single tailored ruleset with multiple calls to "
121 "B<landlock_add_rule>(2)."
122 msgstr ""
123
124 #. type: Plain text
125 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
126 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
127 msgid ""
128 "In order to enforce a ruleset, either the caller must have the "
129 "B<CAP_SYS_ADMIN> capability in its user namespace, or the thread must "
130 "already have the I<no_new_privs> bit set. As for B<seccomp>(2), this avoids "
131 "scenarios where unprivileged processes can affect the behavior of privileged "
132 "children (e.g., because of set-user-ID binaries). If that bit was not "
133 "already set by an ancestor of this thread, the thread must make the "
134 "following call:"
135 msgstr ""
136
137 #. type: Plain text
138 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
139 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
140 #, no-wrap
141 msgid "prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0);\n"
142 msgstr ""
143
144 #. type: Plain text
145 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
146 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
147 msgid ""
148 "I<ruleset_fd> is a Landlock ruleset file descriptor obtained with "
149 "B<landlock_create_ruleset>(2) and fully populated with a set of calls to "
150 "B<landlock_add_rule>(2)."
151 msgstr ""
152
153 #. type: Plain text
154 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
155 msgid ""
156 "By default, denied accesses originating from programs that sandbox "
157 "themselves are logged via the audit subsystem. Such events typically "
158 "indicate unexpected behavior, such as bugs or exploitation attempts. "
159 "However, to avoid excessive logging, access requests denied by a domain not "
160 "created by the originating program are not logged by default. The rationale "
161 "is that programs should know their own behavior, but not necessarily the "
162 "behavior of other programs. This default configuration is suitable for most "
163 "programs that sandbox themselves. For specific use cases, the following "
164 "flags allow programs to modify this default logging behavior."
165 msgstr ""
166
167 #. type: Plain text
168 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
169 msgid ""
170 "The B<LANDLOCK_RESTRICT_SELF_LOG_SAME_EXEC_OFF> and "
171 "B<LANDLOCK_RESTRICT_SELF_LOG_NEW_EXEC_ON> flags apply to the newly created "
172 "Landlock domain."
173 msgstr ""
174
175 #. type: TP
176 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
177 #, no-wrap
178 msgid "B<LANDLOCK_RESTRICT_SELF_LOG_SAME_EXEC_OFF>"
179 msgstr ""
180
181 #. type: Plain text
182 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
183 msgid ""
184 "Disables logging of denied accesses originating from the thread creating the "
185 "Landlock domain, as well as its children, as long as they continue running "
186 "the same executable code (i.e., without an intervening B<execve>(2) call). "
187 "This is intended for programs that execute unknown code without invoking "
188 "B<execve>(2), such as script interpreters. Programs that only sandbox "
189 "themselves should not set this flag, so users can be notified of "
190 "unauthorized access attempts via system logs."
191 msgstr ""
192
193 #. type: TP
194 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
195 #, no-wrap
196 msgid "B<LANDLOCK_RESTRICT_SELF_LOG_NEW_EXEC_ON>"
197 msgstr ""
198
199 #. type: Plain text
200 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
201 msgid ""
202 "Enables logging of denied accesses after an B<execve>(2) call, providing "
203 "visibility into unauthorized access attempts by newly executed programs "
204 "within the created Landlock domain. This flag is recommended only when all "
205 "potential executables in the domain are expected to comply with the access "
206 "restrictions, as excessive audit log entries could make it more difficult to "
207 "identify critical events."
208 msgstr ""
209
210 #. type: TP
211 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
212 #, no-wrap
213 msgid "B<LANDLOCK_RESTRICT_SELF_LOG_SUBDOMAINS_OFF>"
214 msgstr ""
215
216 #. type: Plain text
217 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
218 msgid ""
219 "Disables logging of denied accesses originating from nested Landlock domains "
220 "created by the caller or its descendants. This flag should be set according "
221 "to runtime configuration, not hardcoded, to avoid suppressing important "
222 "security events. It is useful for container runtimes or sandboxing tools "
223 "that may launch programs which themselves create Landlock domains and could "
224 "otherwise generate excessive logs. Unlike "
225 "B<LANDLOCK_RESTRICT_SELF_LOG_SAME_EXEC_OFF>, this flag only affects future "
226 "nested domains, not the one being created. It can also be used with a "
227 "I<ruleset_fd> value of -1 to mute subdomain logs without creating a domain."
228 msgstr ""
229
230 #. type: Plain text
231 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
232 msgid ""
233 "The following flag supports policy enforcement in multithreaded processes:"
234 msgstr ""
235
236 #. type: TP
237 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
238 #, no-wrap
239 msgid "B<LANDLOCK_RESTRICT_SELF_TSYNC> (since Landlock ABI version 8)"
240 msgstr ""
241
242 #. type: Plain text
243 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
244 msgid ""
245 "Applies the new Landlock configuration atomically to all threads of the "
246 "current process, including the Landlock domain and logging configuration. "
247 "This overrides the Landlock configuration of sibling threads, irrespective "
248 "of previously established Landlock domains and logging configurations on "
249 "those threads."
250 msgstr ""
251
252 #. type: Plain text
253 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
254 msgid ""
255 "If the calling thread is running with I<no_new_privs>, this operation "
256 "enables I<no_new_privs> on the sibling threads as well."
257 msgstr ""
258
259 #. type: SH
260 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
261 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
262 #, no-wrap
263 msgid "RETURN VALUE"
264 msgstr ""
265
266 #. type: Plain text
267 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
268 #: opensuse-leap-16-1 opensuse-tumbleweed
269 msgid ""
270 "On success, B<landlock_restrict_self>() returns 0. On error, -1 is "
271 "returned and I<errno> is set to indicate the error."
272 msgstr ""
273
274 #. type: SH
275 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
276 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
277 #, no-wrap
278 msgid "ERRORS"
279 msgstr ""
280
281 #. type: Plain text
282 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
283 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
284 msgid "B<landlock_restrict_self>() can fail for the following reasons:"
285 msgstr ""
286
287 #. type: TP
288 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
289 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
290 #, no-wrap
291 msgid "B<E2BIG>"
292 msgstr ""
293
294 #. type: Plain text
295 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
296 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
297 msgid ""
298 "The maximum number of composed rulesets is reached for the calling thread. "
299 "This limit is currently 64."
300 msgstr ""
301
302 #. type: TP
303 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
304 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
305 #, no-wrap
306 msgid "B<EBADF>"
307 msgstr ""
308
309 #. type: Plain text
310 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
311 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
312 msgid "I<ruleset_fd> is not a file descriptor for the current thread."
313 msgstr ""
314
315 #. type: TP
316 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
317 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
318 #, no-wrap
319 msgid "B<EBADFD>"
320 msgstr ""
321
322 #. type: Plain text
323 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
324 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
325 msgid "I<ruleset_fd> is not a ruleset file descriptor."
326 msgstr ""
327
328 #. type: TP
329 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
330 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
331 #, no-wrap
332 msgid "B<EINVAL>"
333 msgstr ""
334
335 #. type: Plain text
336 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
337 msgid "Invalid value in I<flags>."
338 msgstr ""
339
340 #. type: TP
341 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
342 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
343 #, no-wrap
344 msgid "B<EOPNOTSUPP>"
345 msgstr ""
346
347 #. type: Plain text
348 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
349 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
350 msgid "Landlock is supported by the kernel but disabled at boot time."
351 msgstr ""
352
353 #. type: TP
354 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
355 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
356 #, no-wrap
357 msgid "B<EPERM>"
358 msgstr ""
359
360 #. type: Plain text
361 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
362 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
363 msgid ""
364 "I<ruleset_fd> has no read access to the underlying ruleset, or the calling "
365 "thread is not running with I<no_new_privs>, or it doesn't have the "
366 "B<CAP_SYS_ADMIN> in its user namespace."
367 msgstr ""
368
369 #. type: SH
370 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
371 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
372 #, no-wrap
373 msgid "STANDARDS"
374 msgstr ""
375
376 #. type: Plain text
377 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
378 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
379 msgid "Linux."
380 msgstr ""
381
382 #. type: SH
383 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
384 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
385 #, no-wrap
386 msgid "HISTORY"
387 msgstr ""
388
389 #. type: Plain text
390 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
391 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
392 msgid "Linux 5.13."
393 msgstr ""
394
395 #. type: SH
396 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
397 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
398 #, no-wrap
399 msgid "EXAMPLES"
400 msgstr ""
401
402 #. type: Plain text
403 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
404 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
405 msgid "See B<landlock>(7)."
406 msgstr ""
407
408 #. type: SH
409 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
410 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
411 #, no-wrap
412 msgid "SEE ALSO"
413 msgstr ""
414
415 #. type: Plain text
416 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
417 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
418 msgid "B<landlock_create_ruleset>(2), B<landlock_add_rule>(2), B<landlock>(7)"
419 msgstr ""
420
421 #. type: TH
422 #: debian-trixie
423 #, no-wrap
424 msgid "2024-05-02"
425 msgstr ""
426
427 #. type: TH
428 #: debian-trixie
429 #, no-wrap
430 msgid "Linux man-pages 6.9.1"
431 msgstr ""
432
433 #. type: Plain text
434 #: debian-trixie
435 msgid "Standard C library (I<libc>, I<-lc>)"
436 msgstr ""
437
438 #. type: Plain text
439 #: debian-trixie
440 msgid ""
441 "Once a Landlock ruleset is populated with the desired rules, the "
442 "B<landlock_restrict_self>() system call enables enforcing this ruleset on "
443 "the calling thread. See B<landlock>(7) for a global overview."
444 msgstr ""
445
446 #. type: Plain text
447 #: debian-trixie
448 msgid ""
449 "A thread can be restricted with multiple rulesets that are then composed "
450 "together to form the thread's Landlock domain. This can be seen as a stack "
451 "of rulesets but it is implemented in a more efficient way. A domain can "
452 "only be updated in such a way that the constraints of each past and future "
453 "composed rulesets will restrict the thread and its future children for their "
454 "entire life. It is then possible to gradually enforce tailored access "
455 "control policies with multiple independent rulesets coming from different "
456 "sources (e.g., init system configuration, user session policy, built-in "
457 "application policy). However, most applications should only need one call "
458 "to B<landlock_restrict_self>() and they should avoid arbitrary numbers of "
459 "such calls because of the composed rulesets limit. Instead, developers are "
460 "encouraged to build a tailored ruleset thanks to multiple calls to "
461 "B<landlock_add_rule>(2)."
462 msgstr ""
463
464 #. type: Plain text
465 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
466 msgid "I<flags> must be 0."
467 msgstr ""
468
469 #. type: Plain text
470 #: debian-trixie
471 msgid "On success, B<landlock_restrict_self>() returns 0."
472 msgstr ""
473
474 #. type: Plain text
475 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
476 msgid "I<flags> is not 0."
477 msgstr ""
478
479 #. type: TH
480 #: fedora-44 fedora-rawhide
481 #, no-wrap
482 msgid "2024-07-23"
483 msgstr ""
484
485 #. type: TH
486 #: fedora-44 fedora-rawhide
487 #, no-wrap
488 msgid "Linux man-pages 6.13"
489 msgstr ""
490
491 #. type: TH
492 #: mageia-cauldron
493 #, no-wrap
494 msgid "2026-02-08"
495 msgstr ""
496
497 #. type: TH
498 #: mageia-cauldron
499 #, no-wrap
500 msgid "Linux man-pages 6.17"
501 msgstr ""
502
503 #. type: TH
504 #: opensuse-leap-16-1 opensuse-tumbleweed
505 #, no-wrap
506 msgid "Linux man-pages (unreleased)"
507 msgstr ""