Debian Codegraph @

templates/man2/landlock_add_rule.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_add_rule"
24 msgstr ""
25
26 #. type: TH
27 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
28 #, no-wrap
29 msgid "2026-04-06"
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_add_rule - add a new Landlock rule to a 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_add_rule, int >I<ruleset_fd>B<,>\n"
86 "B< enum landlock_rule_type >I<rule_type>B<,>\n"
87 "B< const void *>I<rule_attr>B<, uint32_t >I<flags>B<);>\n"
88 msgstr ""
89
90 #. type: SH
91 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
92 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
93 #, no-wrap
94 msgid "DESCRIPTION"
95 msgstr ""
96
97 #. type: Plain text
98 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
99 #: opensuse-leap-16-1 opensuse-tumbleweed
100 msgid ""
101 "A Landlock rule describes an action on an object which the process intends "
102 "to perform. A set of rules is aggregated in a ruleset, which can then "
103 "restrict the thread enforcing it, and its future children."
104 msgstr ""
105
106 #. type: Plain text
107 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
108 #: opensuse-leap-16-1 opensuse-tumbleweed
109 msgid ""
110 "The B<landlock_add_rule>() system call adds a new Landlock rule to an "
111 "existing ruleset. See B<landlock>(7) for a global overview."
112 msgstr ""
113
114 #. type: Plain text
115 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
116 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
117 msgid ""
118 "I<ruleset_fd> is a Landlock ruleset file descriptor obtained with "
119 "B<landlock_create_ruleset>(2)."
120 msgstr ""
121
122 #. type: Plain text
123 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
124 #: opensuse-leap-16-1 opensuse-tumbleweed
125 msgid ""
126 "I<rule_type> identifies the structure type pointed to by I<rule_attr>. "
127 "Currently, Linux supports the following I<rule_type> values:"
128 msgstr ""
129
130 #. type: TP
131 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
132 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
133 #, no-wrap
134 msgid "B<LANDLOCK_RULE_PATH_BENEATH>"
135 msgstr ""
136
137 #. type: Plain text
138 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
139 #: opensuse-leap-16-1 opensuse-tumbleweed
140 msgid ""
141 "For these rules, the object is a file hierarchy, and the related filesystem "
142 "actions are defined with I<filesystem access rights>."
143 msgstr ""
144
145 #. type: Plain text
146 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
147 #: opensuse-leap-16-1 opensuse-tumbleweed
148 msgid "In this case, I<rule_attr> points to the following structure:"
149 msgstr ""
150
151 #. type: Plain text
152 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
153 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
154 #, no-wrap
155 msgid ""
156 "struct landlock_path_beneath_attr {\n"
157 " __u64 allowed_access;\n"
158 " __s32 parent_fd;\n"
159 "} __attribute__((packed));\n"
160 msgstr ""
161
162 #. type: Plain text
163 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
164 #: opensuse-leap-16-1 opensuse-tumbleweed
165 msgid ""
166 "I<allowed_access> contains a bitmask of allowed filesystem actions, which "
167 "can be applied on the given I<parent_fd> (see B<Filesystem actions> in "
168 "B<landlock>(7))."
169 msgstr ""
170
171 #. type: Plain text
172 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
173 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
174 msgid ""
175 "I<parent_fd> is an opened file descriptor, preferably with the I<O_PATH> "
176 "flag, which identifies the parent directory of the file hierarchy or just a "
177 "file."
178 msgstr ""
179
180 #. type: TP
181 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
182 #: opensuse-leap-16-1 opensuse-tumbleweed
183 #, no-wrap
184 msgid "B<LANDLOCK_RULE_NET_PORT>"
185 msgstr ""
186
187 #. type: Plain text
188 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
189 #: opensuse-leap-16-1 opensuse-tumbleweed
190 msgid ""
191 "For these rules, the object is a TCP port, and the related actions are "
192 "defined with I<network access rights>."
193 msgstr ""
194
195 #. type: Plain text
196 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
197 #: opensuse-leap-16-1 opensuse-tumbleweed
198 #, no-wrap
199 msgid ""
200 "struct landlock_net_port_attr {\n"
201 " __u64 allowed_access;\n"
202 " __u64 port;\n"
203 "};\n"
204 msgstr ""
205
206 #. type: Plain text
207 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
208 #: opensuse-leap-16-1 opensuse-tumbleweed
209 msgid ""
210 "I<allowed_access> contains a bitmask of allowed network actions, which can "
211 "be applied on the given port."
212 msgstr ""
213
214 #. type: Plain text
215 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
216 #: opensuse-leap-16-1 opensuse-tumbleweed
217 msgid "I<port> is the network port in host endianness."
218 msgstr ""
219
220 #. type: Plain text
221 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
222 #: opensuse-leap-16-1 opensuse-tumbleweed
223 msgid ""
224 "It should be noted that port 0 passed to B<bind>(2) will bind to an "
225 "available port from the ephemeral port range. This can be configured in the "
226 "I</proc/sys/net/ipv4/ip_local_port_range> sysctl (also used for IPv6)."
227 msgstr ""
228
229 #. type: Plain text
230 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
231 #: opensuse-leap-16-1 opensuse-tumbleweed
232 msgid ""
233 "A Landlock rule with port 0 and the B<LANDLOCK_ACCESS_NET_BIND_TCP> right "
234 "means that requesting to bind on port 0 is allowed and it will automatically "
235 "translate to binding on the related port range."
236 msgstr ""
237
238 #. type: Plain text
239 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
240 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
241 msgid "I<flags> must be 0."
242 msgstr ""
243
244 #. type: SH
245 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
246 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
247 #, no-wrap
248 msgid "RETURN VALUE"
249 msgstr ""
250
251 #. type: Plain text
252 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
253 #: opensuse-leap-16-1 opensuse-tumbleweed
254 msgid ""
255 "On success, B<landlock_add_rule>() returns 0. On error, -1 is returned and "
256 "I<errno> is set to indicate the error."
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 "ERRORS"
264 msgstr ""
265
266 #. type: Plain text
267 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
268 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
269 msgid "B<landlock_add_rule>() can fail for the following reasons:"
270 msgstr ""
271
272 #. type: TP
273 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
274 #: opensuse-leap-16-1 opensuse-tumbleweed
275 #, no-wrap
276 msgid "B<EAFNOSUPPORT>"
277 msgstr ""
278
279 #. type: Plain text
280 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
281 #: opensuse-leap-16-1 opensuse-tumbleweed
282 msgid ""
283 "I<rule_type> is B<LANDLOCK_RULE_NET_PORT>, but TCP is not supported by the "
284 "running kernel."
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<EBADF>"
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 "I<ruleset_fd> is not a file descriptor for the current thread, or a member "
299 "of I<rule_attr> is not a file descriptor as expected."
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<EBADFD>"
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 ""
313 "I<ruleset_fd> is not a ruleset file descriptor, or a member of I<rule_attr> "
314 "is not the expected file descriptor type."
315 msgstr ""
316
317 #. type: TP
318 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
319 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
320 #, no-wrap
321 msgid "B<EFAULT>"
322 msgstr ""
323
324 #. type: Plain text
325 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
326 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
327 msgid "I<rule_attr> was not a valid address."
328 msgstr ""
329
330 #. type: TP
331 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
332 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
333 #, no-wrap
334 msgid "B<EINVAL>"
335 msgstr ""
336
337 #. type: Plain text
338 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
339 #: opensuse-leap-16-1 opensuse-tumbleweed
340 msgid "I<flags> is not 0."
341 msgstr ""
342
343 #. type: Plain text
344 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
345 #: opensuse-leap-16-1 opensuse-tumbleweed
346 msgid ""
347 "The rule accesses are inconsistent (i.e., I<rule_attr-E<gt>allowed_access> "
348 "is not a subset of the ruleset handled accesses)."
349 msgstr ""
350
351 #. type: Plain text
352 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
353 #: opensuse-leap-16-1 opensuse-tumbleweed
354 msgid ""
355 "In I<\\%struct\\ landlock_path_beneath_attr>, the rule accesses are not "
356 "applicable to the file (i.e., some access rights in I<\\%rule_attr-"
357 "E<gt>allowed_access> are only applicable to directories, but I<\\%rule_attr-"
358 "E<gt>parent_fd> does not refer to a directory)."
359 msgstr ""
360
361 #. type: Plain text
362 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
363 #: opensuse-leap-16-1 opensuse-tumbleweed
364 msgid ""
365 "In I<\\%struct\\ landlock_net_port_attr>, the port number is greater than "
366 "65535."
367 msgstr ""
368
369 #. type: TP
370 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
371 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
372 #, no-wrap
373 msgid "B<ENOMSG>"
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 "Empty accesses (i.e., I<rule_attr-E<gt>allowed_access> is 0)."
380 msgstr ""
381
382 #. type: TP
383 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
384 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
385 #, no-wrap
386 msgid "B<EOPNOTSUPP>"
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 "Landlock is supported by the kernel but disabled at boot time."
393 msgstr ""
394
395 #. type: TP
396 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
397 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
398 #, no-wrap
399 msgid "B<EPERM>"
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 "I<ruleset_fd> has no write access to the underlying ruleset."
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 "STANDARDS"
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 "Linux."
419 msgstr ""
420
421 #. type: SH
422 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
423 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
424 #, no-wrap
425 msgid "HISTORY"
426 msgstr ""
427
428 #. type: Plain text
429 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
430 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
431 msgid "Linux 5.13."
432 msgstr ""
433
434 #. type: SH
435 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
436 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
437 #, no-wrap
438 msgid "EXAMPLES"
439 msgstr ""
440
441 #. type: Plain text
442 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
443 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
444 msgid "See B<landlock>(7)."
445 msgstr ""
446
447 #. type: SH
448 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
449 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
450 #, no-wrap
451 msgid "SEE ALSO"
452 msgstr ""
453
454 #. type: Plain text
455 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
456 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
457 msgid ""
458 "B<landlock_create_ruleset>(2), B<landlock_restrict_self>(2), B<landlock>(7)"
459 msgstr ""
460
461 #. type: TH
462 #: debian-trixie
463 #, no-wrap
464 msgid "2024-05-02"
465 msgstr ""
466
467 #. type: TH
468 #: debian-trixie
469 #, no-wrap
470 msgid "Linux man-pages 6.9.1"
471 msgstr ""
472
473 #. type: Plain text
474 #: debian-trixie
475 msgid "Standard C library (I<libc>, I<-lc>)"
476 msgstr ""
477
478 #. type: Plain text
479 #: debian-trixie
480 msgid ""
481 "A Landlock rule describes an action on an object. An object is currently a "
482 "file hierarchy, and the related filesystem actions are defined with a set of "
483 "access rights. This B<landlock_add_rule>() system call enables adding a "
484 "new Landlock rule to an existing ruleset created with "
485 "B<landlock_create_ruleset>(2). See B<landlock>(7) for a global overview."
486 msgstr ""
487
488 #. type: Plain text
489 #: debian-trixie
490 msgid ""
491 "I<rule_type> identifies the structure type pointed to by I<rule_attr>. "
492 "Currently, Linux supports the following I<rule_type> value:"
493 msgstr ""
494
495 #. type: Plain text
496 #: debian-trixie
497 msgid ""
498 "This defines the object type as a file hierarchy. In this case, "
499 "I<rule_attr> points to the following structure:"
500 msgstr ""
501
502 #. type: Plain text
503 #: debian-trixie
504 msgid ""
505 "I<allowed_access> contains a bitmask of allowed filesystem actions for this "
506 "file hierarchy (see B<Filesystem actions> in B<landlock>(7))."
507 msgstr ""
508
509 #. type: Plain text
510 #: debian-trixie
511 msgid "On success, B<landlock_add_rule>() returns 0."
512 msgstr ""
513
514 #. type: Plain text
515 #: debian-trixie
516 msgid ""
517 "I<flags> is not 0, or the rule accesses are inconsistent (i.e., I<rule_attr-"
518 "E<gt>allowed_access> is not a subset of the ruleset handled accesses)."
519 msgstr ""
520
521 #. type: TH
522 #: fedora-44 fedora-rawhide
523 #, no-wrap
524 msgid "2024-08-21"
525 msgstr ""
526
527 #. type: TH
528 #: fedora-44 fedora-rawhide
529 #, no-wrap
530 msgid "Linux man-pages 6.13"
531 msgstr ""
532
533 #. type: TH
534 #: mageia-cauldron
535 #, no-wrap
536 msgid "2026-02-08"
537 msgstr ""
538
539 #. type: TH
540 #: mageia-cauldron
541 #, no-wrap
542 msgid "Linux man-pages 6.17"
543 msgstr ""
544
545 #. type: TH
546 #: opensuse-leap-16-1 opensuse-tumbleweed
547 #, no-wrap
548 msgid "Linux man-pages (unreleased)"
549 msgstr ""