| 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" |
| 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 - unprivileged access-control" |
| 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 "DESCRIPTION" |
| 56 |
msgstr "" |
| 57 |
|
| 58 |
#. type: Plain text |
| 59 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 60 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 61 |
msgid "" |
| 62 |
"Landlock is an access-control system that enables any processes to securely " |
| 63 |
"restrict themselves and their future children. Because Landlock is a " |
| 64 |
"stackable Linux Security Module (LSM), it makes it possible to create safe " |
| 65 |
"security sandboxes as new security layers in addition to the existing system-" |
| 66 |
"wide access-controls. This kind of sandbox is expected to help mitigate the " |
| 67 |
"security impact of bugs, and unexpected or malicious behaviors in " |
| 68 |
"applications." |
| 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 |
msgid "" |
| 75 |
"A Landlock security policy is a set of access rights (e.g., open a file in " |
| 76 |
"read-only, make a directory, etc.) tied to a file hierarchy. Such policy " |
| 77 |
"can be configured and enforced by processes for themselves using three " |
| 78 |
"system calls:" |
| 79 |
msgstr "" |
| 80 |
|
| 81 |
#. type: IP |
| 82 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 83 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 84 |
#, no-wrap |
| 85 |
msgid "\\[bu]" |
| 86 |
msgstr "" |
| 87 |
|
| 88 |
#. type: Plain text |
| 89 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 90 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 91 |
msgid "B<landlock_create_ruleset>(2) creates a new ruleset;" |
| 92 |
msgstr "" |
| 93 |
|
| 94 |
#. type: Plain text |
| 95 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 96 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 97 |
msgid "B<landlock_add_rule>(2) adds a new rule to a ruleset;" |
| 98 |
msgstr "" |
| 99 |
|
| 100 |
#. type: Plain text |
| 101 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 102 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 103 |
msgid "B<landlock_restrict_self>(2) enforces a ruleset on the calling thread." |
| 104 |
msgstr "" |
| 105 |
|
| 106 |
#. type: Plain text |
| 107 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 108 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 109 |
msgid "" |
| 110 |
"To be able to use these system calls, the running kernel must support " |
| 111 |
"Landlock and it must be enabled at boot time." |
| 112 |
msgstr "" |
| 113 |
|
| 114 |
#. type: SS |
| 115 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 116 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 117 |
#, no-wrap |
| 118 |
msgid "Landlock rules" |
| 119 |
msgstr "" |
| 120 |
|
| 121 |
#. type: Plain text |
| 122 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 123 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 124 |
msgid "" |
| 125 |
"A Landlock rule describes an action on an object which the process intends " |
| 126 |
"to perform. A set of rules is aggregated in a ruleset, which can then " |
| 127 |
"restrict the thread enforcing it, and its future children." |
| 128 |
msgstr "" |
| 129 |
|
| 130 |
#. type: Plain text |
| 131 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 132 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 133 |
msgid "The two existing types of rules are:" |
| 134 |
msgstr "" |
| 135 |
|
| 136 |
#. type: TP |
| 137 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 138 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 139 |
#, no-wrap |
| 140 |
msgid "B<Filesystem rules>" |
| 141 |
msgstr "" |
| 142 |
|
| 143 |
#. type: Plain text |
| 144 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 145 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 146 |
msgid "" |
| 147 |
"For these rules, the object is a file hierarchy, and the related filesystem " |
| 148 |
"actions are defined with I<filesystem access rights>." |
| 149 |
msgstr "" |
| 150 |
|
| 151 |
#. type: TP |
| 152 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 153 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 154 |
#, no-wrap |
| 155 |
msgid "B<Network rules> (since ABI v4)" |
| 156 |
msgstr "" |
| 157 |
|
| 158 |
#. type: Plain text |
| 159 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 160 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 161 |
msgid "" |
| 162 |
"For these rules, the object is a TCP port, and the related actions are " |
| 163 |
"defined with I<network access rights>." |
| 164 |
msgstr "" |
| 165 |
|
| 166 |
#. type: SS |
| 167 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 168 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 169 |
#, no-wrap |
| 170 |
msgid "Filesystem actions" |
| 171 |
msgstr "" |
| 172 |
|
| 173 |
#. type: Plain text |
| 174 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 175 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 176 |
msgid "" |
| 177 |
"These flags enable to restrict a sandboxed process to a set of actions on " |
| 178 |
"files and directories. Files or directories opened before the sandboxing " |
| 179 |
"are not subject to these restrictions. See B<landlock_add_rule>(2) and " |
| 180 |
"B<landlock_create_ruleset>(2) for more context." |
| 181 |
msgstr "" |
| 182 |
|
| 183 |
#. type: Plain text |
| 184 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 185 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 186 |
msgid "The following access rights apply only to files:" |
| 187 |
msgstr "" |
| 188 |
|
| 189 |
#. type: TP |
| 190 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 191 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 192 |
#, no-wrap |
| 193 |
msgid "B<LANDLOCK_ACCESS_FS_EXECUTE>" |
| 194 |
msgstr "" |
| 195 |
|
| 196 |
#. type: Plain text |
| 197 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 198 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 199 |
msgid "Execute a file." |
| 200 |
msgstr "" |
| 201 |
|
| 202 |
#. type: TP |
| 203 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 204 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 205 |
#, no-wrap |
| 206 |
msgid "B<LANDLOCK_ACCESS_FS_WRITE_FILE>" |
| 207 |
msgstr "" |
| 208 |
|
| 209 |
#. type: Plain text |
| 210 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 211 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 212 |
msgid "Open a file with write access." |
| 213 |
msgstr "" |
| 214 |
|
| 215 |
#. type: Plain text |
| 216 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 217 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 218 |
msgid "" |
| 219 |
"When opening files for writing, you will often additionally need the " |
| 220 |
"B<LANDLOCK_ACCESS_FS_TRUNCATE> right. In many cases, these system calls " |
| 221 |
"truncate existing files when overwriting them (e.g., B<creat>(2))." |
| 222 |
msgstr "" |
| 223 |
|
| 224 |
#. type: TP |
| 225 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 226 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 227 |
#, no-wrap |
| 228 |
msgid "B<LANDLOCK_ACCESS_FS_READ_FILE>" |
| 229 |
msgstr "" |
| 230 |
|
| 231 |
#. type: Plain text |
| 232 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 233 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 234 |
msgid "Open a file with read access." |
| 235 |
msgstr "" |
| 236 |
|
| 237 |
#. type: TP |
| 238 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 239 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 240 |
#, no-wrap |
| 241 |
msgid "B<LANDLOCK_ACCESS_FS_TRUNCATE>" |
| 242 |
msgstr "" |
| 243 |
|
| 244 |
#. type: Plain text |
| 245 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 246 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 247 |
msgid "" |
| 248 |
"Truncate a file with B<truncate>(2), B<ftruncate>(2), B<creat>(2), or " |
| 249 |
"B<open>(2) with B<O_TRUNC>." |
| 250 |
msgstr "" |
| 251 |
|
| 252 |
#. type: Plain text |
| 253 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 254 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 255 |
msgid "" |
| 256 |
"This access right is available since the third version of the Landlock ABI." |
| 257 |
msgstr "" |
| 258 |
|
| 259 |
#. type: TP |
| 260 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 261 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 262 |
#, no-wrap |
| 263 |
msgid "B<LANDLOCK_ACCESS_FS_IOCTL_DEV>" |
| 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 "Invoke B<ioctl>(2) commands on an opened character or block device." |
| 270 |
msgstr "" |
| 271 |
|
| 272 |
#. type: Plain text |
| 273 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 274 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 275 |
msgid "" |
| 276 |
"This access right applies to all B<ioctl>(2) commands implemented by device " |
| 277 |
"drivers. However, the following common IOCTL commands continue to be " |
| 278 |
"invokable independent of the B<LANDLOCK_ACCESS_FS_IOCTL_DEV> right:" |
| 279 |
msgstr "" |
| 280 |
|
| 281 |
#. type: Plain text |
| 282 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 283 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 284 |
msgid "IOCTL commands targeting file descriptors (B<FIOCLEX>, B<FIONCLEX>)," |
| 285 |
msgstr "" |
| 286 |
|
| 287 |
#. type: Plain text |
| 288 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 289 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 290 |
msgid "IOCTL commands targeting file descriptions (B<FIONBIO>, B<FIOASYNC>)," |
| 291 |
msgstr "" |
| 292 |
|
| 293 |
#. type: Plain text |
| 294 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 295 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 296 |
msgid "" |
| 297 |
"IOCTL commands targeting file systems (B<FIFREEZE>, B<FITHAW>, B<FIGETBSZ>, " |
| 298 |
"B<FS_IOC_GETFSUUID>, B<FS_IOC_GETFSSYSFSPATH>)" |
| 299 |
msgstr "" |
| 300 |
|
| 301 |
#. type: Plain text |
| 302 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 303 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 304 |
msgid "" |
| 305 |
"Some IOCTL commands which do not make sense when used with devices, but " |
| 306 |
"whose implementations are safe and return the right error codes " |
| 307 |
"(B<FS_IOC_FIEMAP>, B<FICLONE>, B<FICLONERANGE>, B<FIDEDUPERANGE>)" |
| 308 |
msgstr "" |
| 309 |
|
| 310 |
#. type: Plain text |
| 311 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 312 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 313 |
msgid "" |
| 314 |
"This access right is available since the fifth version of the Landlock ABI." |
| 315 |
msgstr "" |
| 316 |
|
| 317 |
#. type: Plain text |
| 318 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 319 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 320 |
msgid "" |
| 321 |
"Whether an opened file can be truncated with B<ftruncate>(2) or used with " |
| 322 |
"B<ioctl>(2) is determined during B<open>(2), in the same way as read and " |
| 323 |
"write permissions are checked during B<open>(2) using " |
| 324 |
"B<LANDLOCK_ACCESS_FS_READ_FILE> and B<LANDLOCK_ACCESS_FS_WRITE_FILE>." |
| 325 |
msgstr "" |
| 326 |
|
| 327 |
#. type: Plain text |
| 328 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 329 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 330 |
msgid "" |
| 331 |
"A directory can receive access rights related to files or directories. The " |
| 332 |
"following access right is applied to the directory itself, and the " |
| 333 |
"directories beneath it:" |
| 334 |
msgstr "" |
| 335 |
|
| 336 |
#. type: TP |
| 337 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 338 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 339 |
#, no-wrap |
| 340 |
msgid "B<LANDLOCK_ACCESS_FS_READ_DIR>" |
| 341 |
msgstr "" |
| 342 |
|
| 343 |
#. type: Plain text |
| 344 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 345 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 346 |
msgid "Open a directory or list its content." |
| 347 |
msgstr "" |
| 348 |
|
| 349 |
#. type: Plain text |
| 350 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 351 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 352 |
msgid "" |
| 353 |
"However, the following access rights only apply to the content of a " |
| 354 |
"directory, not the directory itself:" |
| 355 |
msgstr "" |
| 356 |
|
| 357 |
#. type: TP |
| 358 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 359 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 360 |
#, no-wrap |
| 361 |
msgid "B<LANDLOCK_ACCESS_FS_REMOVE_DIR>" |
| 362 |
msgstr "" |
| 363 |
|
| 364 |
#. type: Plain text |
| 365 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 366 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 367 |
msgid "Remove an empty directory or rename one." |
| 368 |
msgstr "" |
| 369 |
|
| 370 |
#. type: TP |
| 371 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 372 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 373 |
#, no-wrap |
| 374 |
msgid "B<LANDLOCK_ACCESS_FS_REMOVE_FILE>" |
| 375 |
msgstr "" |
| 376 |
|
| 377 |
#. type: Plain text |
| 378 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 379 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 380 |
msgid "Unlink (or rename) a file." |
| 381 |
msgstr "" |
| 382 |
|
| 383 |
#. type: TP |
| 384 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 385 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 386 |
#, no-wrap |
| 387 |
msgid "B<LANDLOCK_ACCESS_FS_MAKE_CHAR>" |
| 388 |
msgstr "" |
| 389 |
|
| 390 |
#. type: Plain text |
| 391 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 392 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 393 |
msgid "Create (or rename or link) a character device." |
| 394 |
msgstr "" |
| 395 |
|
| 396 |
#. type: TP |
| 397 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 398 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 399 |
#, no-wrap |
| 400 |
msgid "B<LANDLOCK_ACCESS_FS_MAKE_DIR>" |
| 401 |
msgstr "" |
| 402 |
|
| 403 |
#. type: Plain text |
| 404 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 405 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 406 |
msgid "Create (or rename) a directory." |
| 407 |
msgstr "" |
| 408 |
|
| 409 |
#. type: TP |
| 410 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 411 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 412 |
#, no-wrap |
| 413 |
msgid "B<LANDLOCK_ACCESS_FS_MAKE_REG>" |
| 414 |
msgstr "" |
| 415 |
|
| 416 |
#. type: Plain text |
| 417 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 418 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 419 |
msgid "Create (or rename or link) a regular file." |
| 420 |
msgstr "" |
| 421 |
|
| 422 |
#. type: TP |
| 423 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 424 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 425 |
#, no-wrap |
| 426 |
msgid "B<LANDLOCK_ACCESS_FS_MAKE_SOCK>" |
| 427 |
msgstr "" |
| 428 |
|
| 429 |
#. type: Plain text |
| 430 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 431 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 432 |
msgid "Create (or rename or link) a UNIX domain socket." |
| 433 |
msgstr "" |
| 434 |
|
| 435 |
#. type: TP |
| 436 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 437 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 438 |
#, no-wrap |
| 439 |
msgid "B<LANDLOCK_ACCESS_FS_MAKE_FIFO>" |
| 440 |
msgstr "" |
| 441 |
|
| 442 |
#. type: Plain text |
| 443 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 444 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 445 |
msgid "Create (or rename or link) a named pipe." |
| 446 |
msgstr "" |
| 447 |
|
| 448 |
#. type: TP |
| 449 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 450 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 451 |
#, no-wrap |
| 452 |
msgid "B<LANDLOCK_ACCESS_FS_MAKE_BLOCK>" |
| 453 |
msgstr "" |
| 454 |
|
| 455 |
#. type: Plain text |
| 456 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 457 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 458 |
msgid "Create (or rename or link) a block device." |
| 459 |
msgstr "" |
| 460 |
|
| 461 |
#. type: TP |
| 462 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 463 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 464 |
#, no-wrap |
| 465 |
msgid "B<LANDLOCK_ACCESS_FS_MAKE_SYM>" |
| 466 |
msgstr "" |
| 467 |
|
| 468 |
#. type: Plain text |
| 469 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 470 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 471 |
msgid "Create (or rename or link) a symbolic link." |
| 472 |
msgstr "" |
| 473 |
|
| 474 |
#. type: TP |
| 475 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 476 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 477 |
#, no-wrap |
| 478 |
msgid "B<LANDLOCK_ACCESS_FS_REFER>" |
| 479 |
msgstr "" |
| 480 |
|
| 481 |
#. type: Plain text |
| 482 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 483 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 484 |
msgid "" |
| 485 |
"Link or rename a file from or to a different directory (i.e., reparent a " |
| 486 |
"file hierarchy)." |
| 487 |
msgstr "" |
| 488 |
|
| 489 |
#. type: Plain text |
| 490 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 491 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 492 |
msgid "" |
| 493 |
"This access right is available since the second version of the Landlock ABI." |
| 494 |
msgstr "" |
| 495 |
|
| 496 |
#. type: Plain text |
| 497 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 498 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 499 |
msgid "" |
| 500 |
"This is the only access right which is denied by default by any ruleset, " |
| 501 |
"even if the right is not specified as handled at ruleset creation time. The " |
| 502 |
"only way to make a ruleset grant this right is to explicitly allow it for a " |
| 503 |
"specific directory by adding a matching rule to the ruleset." |
| 504 |
msgstr "" |
| 505 |
|
| 506 |
#. type: Plain text |
| 507 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 508 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 509 |
msgid "" |
| 510 |
"In particular, when using the first Landlock ABI version, Landlock will " |
| 511 |
"always deny attempts to reparent files between different directories." |
| 512 |
msgstr "" |
| 513 |
|
| 514 |
#. type: Plain text |
| 515 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 516 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 517 |
msgid "" |
| 518 |
"In addition to the source and destination directories having the " |
| 519 |
"B<LANDLOCK_ACCESS_FS_REFER> access right, the attempted link or rename " |
| 520 |
"operation must meet the following constraints:" |
| 521 |
msgstr "" |
| 522 |
|
| 523 |
#. type: Plain text |
| 524 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 525 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 526 |
msgid "" |
| 527 |
"The reparented file may not gain more access rights in the destination " |
| 528 |
"directory than it previously had in the source directory. If this is " |
| 529 |
"attempted, the operation results in an B<EXDEV> error." |
| 530 |
msgstr "" |
| 531 |
|
| 532 |
#. type: Plain text |
| 533 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 534 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 535 |
msgid "" |
| 536 |
"When linking or renaming, the B<LANDLOCK_ACCESS_FS_MAKE_>I<*> right for the " |
| 537 |
"respective file type must be granted for the destination directory. " |
| 538 |
"Otherwise, the operation results in an B<EACCES> error." |
| 539 |
msgstr "" |
| 540 |
|
| 541 |
#. type: Plain text |
| 542 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 543 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 544 |
msgid "" |
| 545 |
"When renaming, the B<LANDLOCK_ACCESS_FS_REMOVE_>I<*> right for the " |
| 546 |
"respective file type must be granted for the source directory. Otherwise, " |
| 547 |
"the operation results in an B<EACCES> error." |
| 548 |
msgstr "" |
| 549 |
|
| 550 |
#. type: Plain text |
| 551 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 552 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 553 |
msgid "" |
| 554 |
"If multiple requirements are not met, the B<EACCES> error code takes " |
| 555 |
"precedence over B<EXDEV>." |
| 556 |
msgstr "" |
| 557 |
|
| 558 |
#. type: SS |
| 559 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 560 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 561 |
#, no-wrap |
| 562 |
msgid "Network flags" |
| 563 |
msgstr "" |
| 564 |
|
| 565 |
#. type: Plain text |
| 566 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 567 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 568 |
msgid "" |
| 569 |
"These flags enable to restrict a sandboxed process to a set of network " |
| 570 |
"actions." |
| 571 |
msgstr "" |
| 572 |
|
| 573 |
#. type: Plain text |
| 574 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 575 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 576 |
msgid "This is supported since Landlock ABI version 4." |
| 577 |
msgstr "" |
| 578 |
|
| 579 |
#. type: Plain text |
| 580 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 581 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 582 |
msgid "The following access rights apply to TCP port numbers:" |
| 583 |
msgstr "" |
| 584 |
|
| 585 |
#. type: TP |
| 586 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 587 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 588 |
#, no-wrap |
| 589 |
msgid "B<LANDLOCK_ACCESS_NET_BIND_TCP>" |
| 590 |
msgstr "" |
| 591 |
|
| 592 |
#. type: Plain text |
| 593 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 594 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 595 |
msgid "Bind a TCP socket to a local port." |
| 596 |
msgstr "" |
| 597 |
|
| 598 |
#. type: TP |
| 599 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 600 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 601 |
#, no-wrap |
| 602 |
msgid "B<LANDLOCK_ACCESS_NET_CONNECT_TCP>" |
| 603 |
msgstr "" |
| 604 |
|
| 605 |
#. type: Plain text |
| 606 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 607 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 608 |
msgid "Connect an active TCP socket to a remote port." |
| 609 |
msgstr "" |
| 610 |
|
| 611 |
#. type: SS |
| 612 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 613 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 614 |
#, no-wrap |
| 615 |
msgid "Scope flags" |
| 616 |
msgstr "" |
| 617 |
|
| 618 |
#. type: Plain text |
| 619 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 620 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 621 |
msgid "" |
| 622 |
"These flags enable isolating a sandboxed process from a set of IPC actions. " |
| 623 |
"Setting a flag for a ruleset will isolate the Landlock domain to forbid " |
| 624 |
"connections to resources outside the domain." |
| 625 |
msgstr "" |
| 626 |
|
| 627 |
#. type: Plain text |
| 628 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 629 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 630 |
msgid "This is supported since Landlock ABI version 6." |
| 631 |
msgstr "" |
| 632 |
|
| 633 |
#. type: Plain text |
| 634 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 635 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 636 |
msgid "The following scopes exist:" |
| 637 |
msgstr "" |
| 638 |
|
| 639 |
#. type: TP |
| 640 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 641 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 642 |
#, no-wrap |
| 643 |
msgid "B<LANDLOCK_SCOPE_ABSTRACT_UNIX_SOCKET>" |
| 644 |
msgstr "" |
| 645 |
|
| 646 |
#. type: Plain text |
| 647 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 648 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 649 |
msgid "" |
| 650 |
"Restrict a sandboxed process from connecting to an abstract UNIX socket " |
| 651 |
"created by a process outside the related Landlock domain (e.g., a parent " |
| 652 |
"domain or a non-sandboxed process)." |
| 653 |
msgstr "" |
| 654 |
|
| 655 |
#. type: TP |
| 656 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 657 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 658 |
#, no-wrap |
| 659 |
msgid "B<LANDLOCK_SCOPE_SIGNAL>" |
| 660 |
msgstr "" |
| 661 |
|
| 662 |
#. type: Plain text |
| 663 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 664 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 665 |
msgid "" |
| 666 |
"Restrict a sandboxed process from sending a signal to another process " |
| 667 |
"outside the domain." |
| 668 |
msgstr "" |
| 669 |
|
| 670 |
#. type: SS |
| 671 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 672 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 673 |
#, no-wrap |
| 674 |
msgid "Layers of file path access rights" |
| 675 |
msgstr "" |
| 676 |
|
| 677 |
#. type: Plain text |
| 678 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 679 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 680 |
msgid "" |
| 681 |
"Each time a thread enforces a ruleset on itself, it updates its Landlock " |
| 682 |
"domain with a new layer of policy. Indeed, this complementary policy is " |
| 683 |
"composed with the potentially other rulesets already restricting this " |
| 684 |
"thread. A sandboxed thread can then safely add more constraints to itself " |
| 685 |
"with a new enforced ruleset." |
| 686 |
msgstr "" |
| 687 |
|
| 688 |
#. type: Plain text |
| 689 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 690 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 691 |
msgid "" |
| 692 |
"One policy layer grants access to a file path if at least one of its rules " |
| 693 |
"encountered on the path grants the access. A sandboxed thread can only " |
| 694 |
"access a file path if all its enforced policy layers grant the access as " |
| 695 |
"well as all the other system access controls (e.g., filesystem DAC, other " |
| 696 |
"LSM policies, etc.)." |
| 697 |
msgstr "" |
| 698 |
|
| 699 |
#. type: SS |
| 700 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 701 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 702 |
#, no-wrap |
| 703 |
msgid "Bind mounts and OverlayFS" |
| 704 |
msgstr "" |
| 705 |
|
| 706 |
#. type: Plain text |
| 707 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 708 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 709 |
msgid "" |
| 710 |
"Landlock enables restricting access to file hierarchies, which means that " |
| 711 |
"these access rights can be propagated with bind mounts (cf. " |
| 712 |
"B<mount_namespaces>(7)) but not with OverlayFS." |
| 713 |
msgstr "" |
| 714 |
|
| 715 |
#. type: Plain text |
| 716 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 717 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 718 |
msgid "" |
| 719 |
"A bind mount mirrors a source file hierarchy to a destination. The " |
| 720 |
"destination hierarchy is then composed of the exact same files, on which " |
| 721 |
"Landlock rules can be tied, either via the source or the destination path. " |
| 722 |
"These rules restrict access when they are encountered on a path, which means " |
| 723 |
"that they can restrict access to multiple file hierarchies at the same time, " |
| 724 |
"whether these hierarchies are the result of bind mounts or not." |
| 725 |
msgstr "" |
| 726 |
|
| 727 |
#. type: Plain text |
| 728 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 729 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 730 |
msgid "" |
| 731 |
"An OverlayFS mount point consists of upper and lower layers. These layers " |
| 732 |
"are combined in a merge directory, result of the mount point. This merge " |
| 733 |
"hierarchy may include files from the upper and lower layers, but " |
| 734 |
"modifications performed on the merge hierarchy only reflect on the upper " |
| 735 |
"layer. From a Landlock policy point of view, each of the OverlayFS layers " |
| 736 |
"and merge hierarchies is standalone and contains its own set of files and " |
| 737 |
"directories, which is different from a bind mount. A policy restricting an " |
| 738 |
"OverlayFS layer will not restrict the resulted merged hierarchy, and vice " |
| 739 |
"versa. Landlock users should then only think about file hierarchies they " |
| 740 |
"want to allow access to, regardless of the underlying filesystem." |
| 741 |
msgstr "" |
| 742 |
|
| 743 |
#. type: SS |
| 744 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 745 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 746 |
#, no-wrap |
| 747 |
msgid "Inheritance" |
| 748 |
msgstr "" |
| 749 |
|
| 750 |
#. type: Plain text |
| 751 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 752 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 753 |
msgid "" |
| 754 |
"Every new thread resulting from a B<clone>(2) inherits Landlock domain " |
| 755 |
"restrictions from its parent. This is similar to the B<seccomp>(2) " |
| 756 |
"inheritance or any other LSM dealing with tasks' B<credentials>(7). For " |
| 757 |
"instance, one process's thread may apply Landlock rules to itself, but they " |
| 758 |
"will not be automatically applied to other sibling threads (unlike POSIX " |
| 759 |
"thread credential changes, cf. B<nptl>(7))." |
| 760 |
msgstr "" |
| 761 |
|
| 762 |
#. type: Plain text |
| 763 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 764 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 765 |
msgid "" |
| 766 |
"When a thread sandboxes itself, we have the guarantee that the related " |
| 767 |
"security policy will stay enforced on all this thread's descendants. This " |
| 768 |
"allows creating standalone and modular security policies per application, " |
| 769 |
"which will automatically be composed between themselves according to their " |
| 770 |
"run-time parent policies." |
| 771 |
msgstr "" |
| 772 |
|
| 773 |
#. type: SS |
| 774 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 775 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 776 |
#, no-wrap |
| 777 |
msgid "Ptrace restrictions" |
| 778 |
msgstr "" |
| 779 |
|
| 780 |
#. type: Plain text |
| 781 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 782 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 783 |
msgid "" |
| 784 |
"A sandboxed process has less privileges than a non-sandboxed process and " |
| 785 |
"must then be subject to additional restrictions when manipulating another " |
| 786 |
"process. To be allowed to use B<ptrace>(2) and related syscalls on a " |
| 787 |
"target process, a sandboxed process should have a subset of the target " |
| 788 |
"process rules, which means the tracee must be in a sub-domain of the tracer." |
| 789 |
msgstr "" |
| 790 |
|
| 791 |
#. type: SS |
| 792 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 793 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 794 |
#, no-wrap |
| 795 |
msgid "IPC scoping" |
| 796 |
msgstr "" |
| 797 |
|
| 798 |
#. type: Plain text |
| 799 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 800 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 801 |
msgid "" |
| 802 |
"Similar to the implicit B<Ptrace restrictions>, we may want to further " |
| 803 |
"restrict interactions between sandboxes. Therefore, at ruleset creation " |
| 804 |
"time, each Landlock domain can restrict the scope for certain operations, so " |
| 805 |
"that these operations can only reach out to processes within the same " |
| 806 |
"Landlock domain or in a nested Landlock domain (the \"scope\")." |
| 807 |
msgstr "" |
| 808 |
|
| 809 |
#. type: Plain text |
| 810 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 811 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 812 |
msgid "The operations which can be scoped are:" |
| 813 |
msgstr "" |
| 814 |
|
| 815 |
#. type: Plain text |
| 816 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 817 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 818 |
msgid "" |
| 819 |
"This limits the sending of signals to target processes which run within the " |
| 820 |
"same or a nested Landlock domain." |
| 821 |
msgstr "" |
| 822 |
|
| 823 |
#. type: Plain text |
| 824 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 825 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 826 |
msgid "" |
| 827 |
"This limits the set of abstract B<unix>(7) sockets to which we can " |
| 828 |
"B<connect>(2) to socket addresses which were created by a process in the " |
| 829 |
"same or a nested Landlock domain." |
| 830 |
msgstr "" |
| 831 |
|
| 832 |
#. type: Plain text |
| 833 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 834 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 835 |
msgid "" |
| 836 |
"A B<sendto>(2) on a non-connected datagram socket is treated as if it were " |
| 837 |
"doing an implicit B<connect>(2) and will be blocked if the remote end does " |
| 838 |
"not stem from the same or a nested Landlock domain." |
| 839 |
msgstr "" |
| 840 |
|
| 841 |
#. type: Plain text |
| 842 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 843 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 844 |
msgid "" |
| 845 |
"A B<sendto>(2) on a socket which was previously connected will not be " |
| 846 |
"restricted. This works for both datagram and stream sockets." |
| 847 |
msgstr "" |
| 848 |
|
| 849 |
#. type: Plain text |
| 850 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 851 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 852 |
msgid "" |
| 853 |
"IPC scoping does not support exceptions via B<landlock_add_rule>(2). If an " |
| 854 |
"operation is scoped within a domain, no rules can be added to allow access " |
| 855 |
"to resources or processes outside of the scope." |
| 856 |
msgstr "" |
| 857 |
|
| 858 |
#. type: SS |
| 859 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 860 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 861 |
#, no-wrap |
| 862 |
msgid "Truncating files" |
| 863 |
msgstr "" |
| 864 |
|
| 865 |
#. type: Plain text |
| 866 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 867 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 868 |
msgid "" |
| 869 |
"The operations covered by B<LANDLOCK_ACCESS_FS_WRITE_FILE> and " |
| 870 |
"B<LANDLOCK_ACCESS_FS_TRUNCATE> both change the contents of a file and " |
| 871 |
"sometimes overlap in non-intuitive ways. It is recommended to always " |
| 872 |
"specify both of these together." |
| 873 |
msgstr "" |
| 874 |
|
| 875 |
#. type: Plain text |
| 876 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 877 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 878 |
msgid "" |
| 879 |
"A particularly surprising example is B<creat>(2). The name suggests that " |
| 880 |
"this system call requires the rights to create and write files. However, it " |
| 881 |
"also requires the truncate right if an existing file under the same name is " |
| 882 |
"already present." |
| 883 |
msgstr "" |
| 884 |
|
| 885 |
#. type: Plain text |
| 886 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 887 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 888 |
msgid "" |
| 889 |
"It should also be noted that truncating files does not require the " |
| 890 |
"B<LANDLOCK_ACCESS_FS_WRITE_FILE> right. Apart from the B<truncate>(2) " |
| 891 |
"system call, this can also be done through B<open>(2) with the flags " |
| 892 |
"I<O_RDONLY\\ |\\ O_TRUNC>." |
| 893 |
msgstr "" |
| 894 |
|
| 895 |
#. type: Plain text |
| 896 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 897 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 898 |
msgid "" |
| 899 |
"When opening a file, the availability of the B<LANDLOCK_ACCESS_FS_TRUNCATE> " |
| 900 |
"right is associated with the newly created file descriptor and will be used " |
| 901 |
"for subsequent truncation attempts using B<ftruncate>(2). The behavior is " |
| 902 |
"similar to opening a file for reading or writing, where permissions are " |
| 903 |
"checked during B<open>(2), but not during the subsequent B<read>(2) and " |
| 904 |
"B<write>(2) calls." |
| 905 |
msgstr "" |
| 906 |
|
| 907 |
#. type: Plain text |
| 908 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 909 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 910 |
msgid "" |
| 911 |
"As a consequence, it is possible to have multiple open file descriptors for " |
| 912 |
"the same file, where one grants the right to truncate the file and the other " |
| 913 |
"does not. It is also possible to pass such file descriptors between " |
| 914 |
"processes, keeping their Landlock properties, even when these processes do " |
| 915 |
"not have an enforced Landlock ruleset." |
| 916 |
msgstr "" |
| 917 |
|
| 918 |
#. type: SH |
| 919 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 920 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 921 |
#, no-wrap |
| 922 |
msgid "VERSIONS" |
| 923 |
msgstr "" |
| 924 |
|
| 925 |
#. type: Plain text |
| 926 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 927 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 928 |
msgid "Landlock was introduced in Linux 5.13." |
| 929 |
msgstr "" |
| 930 |
|
| 931 |
#. type: Plain text |
| 932 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 933 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 934 |
msgid "" |
| 935 |
"To determine which Landlock features are available, users should query the " |
| 936 |
"Landlock ABI version:" |
| 937 |
msgstr "" |
| 938 |
|
| 939 |
#. type: tbl table |
| 940 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 941 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 942 |
#, no-wrap |
| 943 |
msgid "ABI" |
| 944 |
msgstr "" |
| 945 |
|
| 946 |
#. type: tbl table |
| 947 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 948 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 949 |
#, no-wrap |
| 950 |
msgid "Kernel" |
| 951 |
msgstr "" |
| 952 |
|
| 953 |
#. type: tbl table |
| 954 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 955 |
#, no-wrap |
| 956 |
msgid "Newly introduced constants" |
| 957 |
msgstr "" |
| 958 |
|
| 959 |
#. type: tbl table |
| 960 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 961 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 962 |
#, no-wrap |
| 963 |
msgid "_" |
| 964 |
msgstr "" |
| 965 |
|
| 966 |
#. type: tbl table |
| 967 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 968 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 969 |
#, no-wrap |
| 970 |
msgid "1" |
| 971 |
msgstr "" |
| 972 |
|
| 973 |
#. type: tbl table |
| 974 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 975 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 976 |
#, no-wrap |
| 977 |
msgid "5.13" |
| 978 |
msgstr "" |
| 979 |
|
| 980 |
#. type: tbl table |
| 981 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 982 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 983 |
#, no-wrap |
| 984 |
msgid "LANDLOCK_ACCESS_FS_EXECUTE" |
| 985 |
msgstr "" |
| 986 |
|
| 987 |
#. type: tbl table |
| 988 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 989 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 990 |
#, no-wrap |
| 991 |
msgid "\\^" |
| 992 |
msgstr "" |
| 993 |
|
| 994 |
#. type: tbl table |
| 995 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 996 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 997 |
#, no-wrap |
| 998 |
msgid "LANDLOCK_ACCESS_FS_WRITE_FILE" |
| 999 |
msgstr "" |
| 1000 |
|
| 1001 |
#. type: tbl table |
| 1002 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1003 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1004 |
#, no-wrap |
| 1005 |
msgid "LANDLOCK_ACCESS_FS_READ_FILE" |
| 1006 |
msgstr "" |
| 1007 |
|
| 1008 |
#. type: tbl table |
| 1009 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1010 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1011 |
#, no-wrap |
| 1012 |
msgid "LANDLOCK_ACCESS_FS_READ_DIR" |
| 1013 |
msgstr "" |
| 1014 |
|
| 1015 |
#. type: tbl table |
| 1016 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1017 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1018 |
#, no-wrap |
| 1019 |
msgid "LANDLOCK_ACCESS_FS_REMOVE_DIR" |
| 1020 |
msgstr "" |
| 1021 |
|
| 1022 |
#. type: tbl table |
| 1023 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1024 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1025 |
#, no-wrap |
| 1026 |
msgid "LANDLOCK_ACCESS_FS_REMOVE_FILE" |
| 1027 |
msgstr "" |
| 1028 |
|
| 1029 |
#. type: tbl table |
| 1030 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1031 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1032 |
#, no-wrap |
| 1033 |
msgid "LANDLOCK_ACCESS_FS_MAKE_CHAR" |
| 1034 |
msgstr "" |
| 1035 |
|
| 1036 |
#. type: tbl table |
| 1037 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1038 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1039 |
#, no-wrap |
| 1040 |
msgid "LANDLOCK_ACCESS_FS_MAKE_DIR" |
| 1041 |
msgstr "" |
| 1042 |
|
| 1043 |
#. type: tbl table |
| 1044 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1045 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1046 |
#, no-wrap |
| 1047 |
msgid "LANDLOCK_ACCESS_FS_MAKE_REG" |
| 1048 |
msgstr "" |
| 1049 |
|
| 1050 |
#. type: tbl table |
| 1051 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1052 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1053 |
#, no-wrap |
| 1054 |
msgid "LANDLOCK_ACCESS_FS_MAKE_SOCK" |
| 1055 |
msgstr "" |
| 1056 |
|
| 1057 |
#. type: tbl table |
| 1058 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1059 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1060 |
#, no-wrap |
| 1061 |
msgid "LANDLOCK_ACCESS_FS_MAKE_FIFO" |
| 1062 |
msgstr "" |
| 1063 |
|
| 1064 |
#. type: tbl table |
| 1065 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1066 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1067 |
#, no-wrap |
| 1068 |
msgid "LANDLOCK_ACCESS_FS_MAKE_BLOCK" |
| 1069 |
msgstr "" |
| 1070 |
|
| 1071 |
#. type: tbl table |
| 1072 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1073 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1074 |
#, no-wrap |
| 1075 |
msgid "LANDLOCK_ACCESS_FS_MAKE_SYM" |
| 1076 |
msgstr "" |
| 1077 |
|
| 1078 |
#. type: tbl table |
| 1079 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1080 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1081 |
#, no-wrap |
| 1082 |
msgid "2" |
| 1083 |
msgstr "" |
| 1084 |
|
| 1085 |
#. type: tbl table |
| 1086 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1087 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1088 |
#, no-wrap |
| 1089 |
msgid "5.19" |
| 1090 |
msgstr "" |
| 1091 |
|
| 1092 |
#. type: tbl table |
| 1093 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1094 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1095 |
#, no-wrap |
| 1096 |
msgid "LANDLOCK_ACCESS_FS_REFER" |
| 1097 |
msgstr "" |
| 1098 |
|
| 1099 |
#. type: tbl table |
| 1100 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1101 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1102 |
#, no-wrap |
| 1103 |
msgid "3" |
| 1104 |
msgstr "" |
| 1105 |
|
| 1106 |
#. type: tbl table |
| 1107 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1108 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1109 |
#, no-wrap |
| 1110 |
msgid "6.2" |
| 1111 |
msgstr "" |
| 1112 |
|
| 1113 |
#. type: tbl table |
| 1114 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1115 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1116 |
#, no-wrap |
| 1117 |
msgid "LANDLOCK_ACCESS_FS_TRUNCATE" |
| 1118 |
msgstr "" |
| 1119 |
|
| 1120 |
#. type: tbl table |
| 1121 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1122 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1123 |
#, no-wrap |
| 1124 |
msgid "4" |
| 1125 |
msgstr "" |
| 1126 |
|
| 1127 |
#. type: tbl table |
| 1128 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1129 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1130 |
#, no-wrap |
| 1131 |
msgid "6.7" |
| 1132 |
msgstr "" |
| 1133 |
|
| 1134 |
#. type: tbl table |
| 1135 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1136 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1137 |
#, no-wrap |
| 1138 |
msgid "LANDLOCK_ACCESS_NET_BIND_TCP" |
| 1139 |
msgstr "" |
| 1140 |
|
| 1141 |
#. type: tbl table |
| 1142 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1143 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1144 |
#, no-wrap |
| 1145 |
msgid "LANDLOCK_ACCESS_NET_CONNECT_TCP" |
| 1146 |
msgstr "" |
| 1147 |
|
| 1148 |
#. type: tbl table |
| 1149 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1150 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1151 |
#, no-wrap |
| 1152 |
msgid "5" |
| 1153 |
msgstr "" |
| 1154 |
|
| 1155 |
#. type: tbl table |
| 1156 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1157 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1158 |
#, no-wrap |
| 1159 |
msgid "6.10" |
| 1160 |
msgstr "" |
| 1161 |
|
| 1162 |
#. type: tbl table |
| 1163 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1164 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1165 |
#, no-wrap |
| 1166 |
msgid "LANDLOCK_ACCESS_FS_IOCTL_DEV" |
| 1167 |
msgstr "" |
| 1168 |
|
| 1169 |
#. type: tbl table |
| 1170 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1171 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1172 |
#, no-wrap |
| 1173 |
msgid "6" |
| 1174 |
msgstr "" |
| 1175 |
|
| 1176 |
#. type: tbl table |
| 1177 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1178 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1179 |
#, no-wrap |
| 1180 |
msgid "6.12" |
| 1181 |
msgstr "" |
| 1182 |
|
| 1183 |
#. type: tbl table |
| 1184 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1185 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1186 |
#, no-wrap |
| 1187 |
msgid "LANDLOCK_SCOPE_ABSTRACT_UNIX_SOCKET" |
| 1188 |
msgstr "" |
| 1189 |
|
| 1190 |
#. type: tbl table |
| 1191 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1192 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1193 |
#, no-wrap |
| 1194 |
msgid "LANDLOCK_SCOPE_SIGNAL" |
| 1195 |
msgstr "" |
| 1196 |
|
| 1197 |
#. type: tbl table |
| 1198 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 1199 |
#, no-wrap |
| 1200 |
msgid "7" |
| 1201 |
msgstr "" |
| 1202 |
|
| 1203 |
#. type: tbl table |
| 1204 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 1205 |
#, no-wrap |
| 1206 |
msgid "6.15" |
| 1207 |
msgstr "" |
| 1208 |
|
| 1209 |
#. type: tbl table |
| 1210 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 1211 |
#, no-wrap |
| 1212 |
msgid "LANDLOCK_RESTRICT_SELF_LOG_SAME_EXEC_OFF" |
| 1213 |
msgstr "" |
| 1214 |
|
| 1215 |
#. type: tbl table |
| 1216 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 1217 |
#, no-wrap |
| 1218 |
msgid "LANDLOCK_RESTRICT_SELF_LOG_NEW_EXEC_ON" |
| 1219 |
msgstr "" |
| 1220 |
|
| 1221 |
#. type: tbl table |
| 1222 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 1223 |
#, no-wrap |
| 1224 |
msgid "LANDLOCK_RESTRICT_SELF_LOG_SUBDOMAINS_OFF" |
| 1225 |
msgstr "" |
| 1226 |
|
| 1227 |
#. type: tbl table |
| 1228 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 1229 |
#, no-wrap |
| 1230 |
msgid "8" |
| 1231 |
msgstr "" |
| 1232 |
|
| 1233 |
#. type: tbl table |
| 1234 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 1235 |
#, no-wrap |
| 1236 |
msgid "7.0" |
| 1237 |
msgstr "" |
| 1238 |
|
| 1239 |
#. type: tbl table |
| 1240 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 1241 |
#, no-wrap |
| 1242 |
msgid "LANDLOCK_RESTRICT_SELF_TSYNC" |
| 1243 |
msgstr "" |
| 1244 |
|
| 1245 |
#. type: Plain text |
| 1246 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1247 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1248 |
msgid "" |
| 1249 |
"Users should use the Landlock ABI version rather than the kernel version to " |
| 1250 |
"determine which features are available. The mainline kernel versions listed " |
| 1251 |
"here are only included for orientation. Kernels from other sources may " |
| 1252 |
"contain backported features, and their version numbers may not match." |
| 1253 |
msgstr "" |
| 1254 |
|
| 1255 |
#. type: Plain text |
| 1256 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1257 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1258 |
msgid "" |
| 1259 |
"To query the running kernel's Landlock ABI version, programs may pass the " |
| 1260 |
"B<LANDLOCK_CREATE_RULESET_VERSION> flag to B<landlock_create_ruleset>(2)." |
| 1261 |
msgstr "" |
| 1262 |
|
| 1263 |
#. type: Plain text |
| 1264 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1265 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1266 |
msgid "" |
| 1267 |
"When building fallback mechanisms for compatibility with older kernels, " |
| 1268 |
"users are advised to consider the special semantics of the " |
| 1269 |
"B<LANDLOCK_ACCESS_FS_REFER> access right: In ABI v1, linking and moving of " |
| 1270 |
"files between different directories is always forbidden, so programs relying " |
| 1271 |
"on such operations are only compatible with Landlock ABI v2 and higher." |
| 1272 |
msgstr "" |
| 1273 |
|
| 1274 |
#. type: SH |
| 1275 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1276 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1277 |
#, no-wrap |
| 1278 |
msgid "NOTES" |
| 1279 |
msgstr "" |
| 1280 |
|
| 1281 |
#. type: Plain text |
| 1282 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1283 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1284 |
msgid "" |
| 1285 |
"Landlock is enabled by B<CONFIG_SECURITY_LANDLOCK>. The " |
| 1286 |
"I<lsm=lsm1,...,lsmN> command line parameter controls the sequence of the " |
| 1287 |
"initialization of Linux Security Modules. It must contain the string " |
| 1288 |
"I<landlock> to enable Landlock. If the command line parameter is not " |
| 1289 |
"specified, the initialization falls back to the value of the deprecated " |
| 1290 |
"I<security=> command line parameter and further to the value of " |
| 1291 |
"B<CONFIG_LSM>. We can check that Landlock is enabled by looking for " |
| 1292 |
"I<landlock: Up and running.> in kernel logs." |
| 1293 |
msgstr "" |
| 1294 |
|
| 1295 |
#. type: SH |
| 1296 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1297 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1298 |
#, no-wrap |
| 1299 |
msgid "CAVEATS" |
| 1300 |
msgstr "" |
| 1301 |
|
| 1302 |
#. type: Plain text |
| 1303 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1304 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1305 |
msgid "" |
| 1306 |
"It is currently not possible to restrict some file-related actions " |
| 1307 |
"accessible through these system call families: B<chdir>(2), B<stat>(2), " |
| 1308 |
"B<flock>(2), B<chmod>(2), B<chown>(2), B<setxattr>(2), B<utime>(2), " |
| 1309 |
"B<fcntl>(2), B<access>(2). Future Landlock evolutions will enable to " |
| 1310 |
"restrict them." |
| 1311 |
msgstr "" |
| 1312 |
|
| 1313 |
#. type: SH |
| 1314 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1315 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1316 |
#, no-wrap |
| 1317 |
msgid "EXAMPLES" |
| 1318 |
msgstr "" |
| 1319 |
|
| 1320 |
#. type: Plain text |
| 1321 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1322 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1323 |
msgid "We first need to create the ruleset that will contain our rules." |
| 1324 |
msgstr "" |
| 1325 |
|
| 1326 |
#. type: Plain text |
| 1327 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1328 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1329 |
msgid "" |
| 1330 |
"For this example, the ruleset will contain rules that only allow read " |
| 1331 |
"actions, but write actions will be denied. The ruleset then needs to handle " |
| 1332 |
"both of these kinds of actions. See the B<DESCRIPTION> section for the " |
| 1333 |
"description of filesystem actions." |
| 1334 |
msgstr "" |
| 1335 |
|
| 1336 |
#. type: Plain text |
| 1337 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 1338 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1339 |
#, no-wrap |
| 1340 |
msgid "" |
| 1341 |
"struct landlock_ruleset_attr attr = {0};\n" |
| 1342 |
"int ruleset_fd;\n" |
| 1343 |
"\\&\n" |
| 1344 |
"attr.handled_access_fs =\n" |
| 1345 |
" LANDLOCK_ACCESS_FS_EXECUTE |\n" |
| 1346 |
" LANDLOCK_ACCESS_FS_WRITE_FILE |\n" |
| 1347 |
" LANDLOCK_ACCESS_FS_READ_FILE |\n" |
| 1348 |
" LANDLOCK_ACCESS_FS_READ_DIR |\n" |
| 1349 |
" LANDLOCK_ACCESS_FS_REMOVE_DIR |\n" |
| 1350 |
" LANDLOCK_ACCESS_FS_REMOVE_FILE |\n" |
| 1351 |
" LANDLOCK_ACCESS_FS_MAKE_CHAR |\n" |
| 1352 |
" LANDLOCK_ACCESS_FS_MAKE_DIR |\n" |
| 1353 |
" LANDLOCK_ACCESS_FS_MAKE_REG |\n" |
| 1354 |
" LANDLOCK_ACCESS_FS_MAKE_SOCK |\n" |
| 1355 |
" LANDLOCK_ACCESS_FS_MAKE_FIFO |\n" |
| 1356 |
" LANDLOCK_ACCESS_FS_MAKE_BLOCK |\n" |
| 1357 |
" LANDLOCK_ACCESS_FS_MAKE_SYM |\n" |
| 1358 |
" LANDLOCK_ACCESS_FS_REFER |\n" |
| 1359 |
" LANDLOCK_ACCESS_FS_TRUNCATE |\n" |
| 1360 |
" LANDLOCK_ACCESS_FS_IOCTL_DEV;\n" |
| 1361 |
msgstr "" |
| 1362 |
|
| 1363 |
#. type: Plain text |
| 1364 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1365 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1366 |
msgid "" |
| 1367 |
"To be compatible with older Linux versions, we detect the available Landlock " |
| 1368 |
"ABI version, and only use the available subset of access rights:" |
| 1369 |
msgstr "" |
| 1370 |
|
| 1371 |
#. type: Plain text |
| 1372 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1373 |
#: opensuse-tumbleweed |
| 1374 |
#, no-wrap |
| 1375 |
msgid "" |
| 1376 |
"/*\n" |
| 1377 |
" * Table of available file system access rights by ABI version,\n" |
| 1378 |
" * numbers hardcoded to keep the example short.\n" |
| 1379 |
" */\n" |
| 1380 |
"__u64 landlock_fs_access_rights[] = {\n" |
| 1381 |
" (LANDLOCK_ACCESS_FS_MAKE_SYM E<lt>E<lt> 1) - 1, /* v1 */\n" |
| 1382 |
" (LANDLOCK_ACCESS_FS_REFER E<lt>E<lt> 1) - 1, /* v2: add \"refer\" */\n" |
| 1383 |
" (LANDLOCK_ACCESS_FS_TRUNCATE E<lt>E<lt> 1) - 1, /* v3: add \"truncate\" */\n" |
| 1384 |
" (LANDLOCK_ACCESS_FS_TRUNCATE E<lt>E<lt> 1) - 1, /* v4: TCP support */\n" |
| 1385 |
" (LANDLOCK_ACCESS_FS_IOCTL_DEV E<lt>E<lt> 1) - 1, /* v5: add \"ioctl_dev\" */\n" |
| 1386 |
"};\n" |
| 1387 |
"\\&\n" |
| 1388 |
"int abi = landlock_create_ruleset(NULL, 0,\n" |
| 1389 |
" LANDLOCK_CREATE_RULESET_VERSION);\n" |
| 1390 |
"if (abi == -1) {\n" |
| 1391 |
" /*\n" |
| 1392 |
" * Kernel too old, not compiled with Landlock,\n" |
| 1393 |
" * or Landlock was not enabled at boot time.\n" |
| 1394 |
" */\n" |
| 1395 |
" perror(\"Unable to use Landlock\");\n" |
| 1396 |
" return; /* Graceful fallback: Do nothing. */\n" |
| 1397 |
"}\n" |
| 1398 |
"abi = MIN(abi, 3);\n" |
| 1399 |
"\\&\n" |
| 1400 |
"/* Only use the available rights in the ruleset. */\n" |
| 1401 |
"attr.handled_access_fs &= landlock_fs_access_rights[abi - 1];\n" |
| 1402 |
msgstr "" |
| 1403 |
|
| 1404 |
#. type: Plain text |
| 1405 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1406 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1407 |
msgid "" |
| 1408 |
"The available access rights for each ABI version are listed in the " |
| 1409 |
"B<VERSIONS> section." |
| 1410 |
msgstr "" |
| 1411 |
|
| 1412 |
#. type: Plain text |
| 1413 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1414 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1415 |
msgid "" |
| 1416 |
"If our program needed to create hard links or rename files between different " |
| 1417 |
"directories (B<LANDLOCK_ACCESS_FS_REFER>), we would require the following " |
| 1418 |
"change to the backwards compatibility logic: Directory reparenting is not " |
| 1419 |
"possible in a process restricted with Landlock ABI version 1. Therefore, if " |
| 1420 |
"the program needed to do file reparenting, and if only Landlock ABI version " |
| 1421 |
"1 was available, we could not restrict the process." |
| 1422 |
msgstr "" |
| 1423 |
|
| 1424 |
#. type: Plain text |
| 1425 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1426 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1427 |
msgid "" |
| 1428 |
"Now that the ruleset attributes are determined, we create the Landlock " |
| 1429 |
"ruleset and acquire a file descriptor as a handle to it, using " |
| 1430 |
"B<landlock_create_ruleset>(2):" |
| 1431 |
msgstr "" |
| 1432 |
|
| 1433 |
#. type: Plain text |
| 1434 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1435 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1436 |
#, no-wrap |
| 1437 |
msgid "" |
| 1438 |
"ruleset_fd = landlock_create_ruleset(&attr, sizeof(attr), 0);\n" |
| 1439 |
"if (ruleset_fd == -1) {\n" |
| 1440 |
" perror(\"Failed to create a ruleset\");\n" |
| 1441 |
" exit(EXIT_FAILURE);\n" |
| 1442 |
"}\n" |
| 1443 |
msgstr "" |
| 1444 |
|
| 1445 |
#. type: Plain text |
| 1446 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1447 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1448 |
msgid "" |
| 1449 |
"We can now add a new rule to the ruleset through the ruleset's file " |
| 1450 |
"descriptor. The requested access rights must be a subset of the access " |
| 1451 |
"rights which were specified in I<attr.handled_access_fs> at ruleset creation " |
| 1452 |
"time." |
| 1453 |
msgstr "" |
| 1454 |
|
| 1455 |
#. type: Plain text |
| 1456 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1457 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1458 |
msgid "" |
| 1459 |
"In this example, the rule will only allow reading the file hierarchy I</" |
| 1460 |
"usr>. Without another rule, write actions would then be denied by the " |
| 1461 |
"ruleset. To add I</usr> to the ruleset, we open it with the I<O_PATH> flag " |
| 1462 |
"and fill the I<struct landlock_path_beneath_attr> with this file descriptor." |
| 1463 |
msgstr "" |
| 1464 |
|
| 1465 |
#. type: Plain text |
| 1466 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1467 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1468 |
#, no-wrap |
| 1469 |
msgid "" |
| 1470 |
"struct landlock_path_beneath_attr path_beneath = {0};\n" |
| 1471 |
"int err;\n" |
| 1472 |
"\\&\n" |
| 1473 |
"path_beneath.allowed_access =\n" |
| 1474 |
" LANDLOCK_ACCESS_FS_EXECUTE |\n" |
| 1475 |
" LANDLOCK_ACCESS_FS_READ_FILE |\n" |
| 1476 |
" LANDLOCK_ACCESS_FS_READ_DIR;\n" |
| 1477 |
"\\&\n" |
| 1478 |
"path_beneath.parent_fd = open(\"/usr\", O_PATH | O_CLOEXEC);\n" |
| 1479 |
"if (path_beneath.parent_fd == -1) {\n" |
| 1480 |
" perror(\"Failed to open file\");\n" |
| 1481 |
" close(ruleset_fd);\n" |
| 1482 |
" exit(EXIT_FAILURE);\n" |
| 1483 |
"}\n" |
| 1484 |
"err = landlock_add_rule(ruleset_fd, LANDLOCK_RULE_PATH_BENEATH,\n" |
| 1485 |
" &path_beneath, 0);\n" |
| 1486 |
"close(path_beneath.parent_fd);\n" |
| 1487 |
"if (err) {\n" |
| 1488 |
" perror(\"Failed to update ruleset\");\n" |
| 1489 |
" close(ruleset_fd);\n" |
| 1490 |
" exit(EXIT_FAILURE);\n" |
| 1491 |
"}\n" |
| 1492 |
msgstr "" |
| 1493 |
|
| 1494 |
#. type: Plain text |
| 1495 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1496 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1497 |
msgid "" |
| 1498 |
"We now have a ruleset with one rule allowing read access to I</usr> while " |
| 1499 |
"denying all other handled accesses for the filesystem. The next step is to " |
| 1500 |
"restrict the current thread from gaining more privileges (e.g., thanks to a " |
| 1501 |
"set-user-ID binary)." |
| 1502 |
msgstr "" |
| 1503 |
|
| 1504 |
#. type: Plain text |
| 1505 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1506 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1507 |
#, no-wrap |
| 1508 |
msgid "" |
| 1509 |
"if (prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0)) {\n" |
| 1510 |
" perror(\"Failed to restrict privileges\");\n" |
| 1511 |
" close(ruleset_fd);\n" |
| 1512 |
" exit(EXIT_FAILURE);\n" |
| 1513 |
"}\n" |
| 1514 |
msgstr "" |
| 1515 |
|
| 1516 |
#. type: Plain text |
| 1517 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1518 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1519 |
msgid "The current thread is now ready to sandbox itself with the ruleset." |
| 1520 |
msgstr "" |
| 1521 |
|
| 1522 |
#. type: Plain text |
| 1523 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1524 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1525 |
#, no-wrap |
| 1526 |
msgid "" |
| 1527 |
"if (landlock_restrict_self(ruleset_fd, 0)) {\n" |
| 1528 |
" perror(\"Failed to enforce ruleset\");\n" |
| 1529 |
" close(ruleset_fd);\n" |
| 1530 |
" exit(EXIT_FAILURE);\n" |
| 1531 |
"}\n" |
| 1532 |
"close(ruleset_fd);\n" |
| 1533 |
msgstr "" |
| 1534 |
|
| 1535 |
#. type: Plain text |
| 1536 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1537 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1538 |
msgid "" |
| 1539 |
"If the B<landlock_restrict_self>(2) system call succeeds, the current " |
| 1540 |
"thread is now restricted and this policy will be enforced on all its " |
| 1541 |
"subsequently created children as well. Once a thread is landlocked, there " |
| 1542 |
"is no way to remove its security policy; only adding more restrictions is " |
| 1543 |
"allowed. These threads are now in a new Landlock domain, merge of their " |
| 1544 |
"parent one (if any) with the new ruleset." |
| 1545 |
msgstr "" |
| 1546 |
|
| 1547 |
#. type: Plain text |
| 1548 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1549 |
#: opensuse-tumbleweed |
| 1550 |
msgid "" |
| 1551 |
"Full working code can be found in E<.UR https:\\://git.kernel.org/\\:pub/" |
| 1552 |
"\\:scm/\\:linux/\\:kernel/\\:git/\\:stable/\\:linux.git/\\:tree/\\:samples/" |
| 1553 |
"\\:landlock/\\:sandboxer.c> E<.UE>" |
| 1554 |
msgstr "" |
| 1555 |
|
| 1556 |
#. type: SH |
| 1557 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1558 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1559 |
#, no-wrap |
| 1560 |
msgid "SEE ALSO" |
| 1561 |
msgstr "" |
| 1562 |
|
| 1563 |
#. type: Plain text |
| 1564 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1565 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1566 |
msgid "" |
| 1567 |
"B<landlock_create_ruleset>(2), B<landlock_add_rule>(2), " |
| 1568 |
"B<landlock_restrict_self>(2)" |
| 1569 |
msgstr "" |
| 1570 |
|
| 1571 |
#. type: Plain text |
| 1572 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1573 |
#: opensuse-tumbleweed |
| 1574 |
msgid "E<.UR https:\\://landlock.io/> E<.UE>" |
| 1575 |
msgstr "" |
| 1576 |
|
| 1577 |
#. type: TH |
| 1578 |
#: debian-trixie |
| 1579 |
#, no-wrap |
| 1580 |
msgid "2024-05-02" |
| 1581 |
msgstr "" |
| 1582 |
|
| 1583 |
#. type: TH |
| 1584 |
#: debian-trixie |
| 1585 |
#, no-wrap |
| 1586 |
msgid "Linux man-pages 6.9.1" |
| 1587 |
msgstr "" |
| 1588 |
|
| 1589 |
#. type: Plain text |
| 1590 |
#: debian-trixie |
| 1591 |
msgid "" |
| 1592 |
"A Landlock rule describes an action on an object. An object is currently a " |
| 1593 |
"file hierarchy, and the related filesystem actions are defined with access " |
| 1594 |
"rights (see B<landlock_add_rule>(2)). A set of rules is aggregated in a " |
| 1595 |
"ruleset, which can then restrict the thread enforcing it, and its future " |
| 1596 |
"children." |
| 1597 |
msgstr "" |
| 1598 |
|
| 1599 |
#. type: Plain text |
| 1600 |
#: debian-trixie |
| 1601 |
msgid "A file can only receive these access rights:" |
| 1602 |
msgstr "" |
| 1603 |
|
| 1604 |
#. type: Plain text |
| 1605 |
#: debian-trixie |
| 1606 |
msgid "" |
| 1607 |
"Truncate a file with B<truncate>(2), B<ftruncate>(2), B<creat>(2), or " |
| 1608 |
"B<open>(2) with B<O_TRUNC>. Whether an opened file can be truncated with " |
| 1609 |
"B<ftruncate>(2) is determined during B<open>(2), in the same way as read " |
| 1610 |
"and write permissions are checked during B<open>(2) using " |
| 1611 |
"B<LANDLOCK_ACCESS_FS_READ_FILE> and B<LANDLOCK_ACCESS_FS_WRITE_FILE>. This " |
| 1612 |
"access right is available since the third version of the Landlock ABI." |
| 1613 |
msgstr "" |
| 1614 |
|
| 1615 |
#. type: tbl table |
| 1616 |
#: debian-trixie fedora-44 fedora-rawhide mageia-cauldron |
| 1617 |
#, no-wrap |
| 1618 |
msgid "Newly introduced access rights" |
| 1619 |
msgstr "" |
| 1620 |
|
| 1621 |
#. type: Plain text |
| 1622 |
#: debian-trixie |
| 1623 |
msgid "" |
| 1624 |
"It is currently not possible to restrict some file-related actions " |
| 1625 |
"accessible through these system call families: B<chdir>(2), B<stat>(2), " |
| 1626 |
"B<flock>(2), B<chmod>(2), B<chown>(2), B<setxattr>(2), B<utime>(2), " |
| 1627 |
"B<ioctl>(2), B<fcntl>(2), B<access>(2). Future Landlock evolutions will " |
| 1628 |
"enable to restrict them." |
| 1629 |
msgstr "" |
| 1630 |
|
| 1631 |
#. type: Plain text |
| 1632 |
#: debian-trixie |
| 1633 |
#, no-wrap |
| 1634 |
msgid "" |
| 1635 |
"struct landlock_ruleset_attr attr = {0};\n" |
| 1636 |
"int ruleset_fd;\n" |
| 1637 |
"\\&\n" |
| 1638 |
"attr.handled_access_fs =\n" |
| 1639 |
" LANDLOCK_ACCESS_FS_EXECUTE |\n" |
| 1640 |
" LANDLOCK_ACCESS_FS_WRITE_FILE |\n" |
| 1641 |
" LANDLOCK_ACCESS_FS_READ_FILE |\n" |
| 1642 |
" LANDLOCK_ACCESS_FS_READ_DIR |\n" |
| 1643 |
" LANDLOCK_ACCESS_FS_REMOVE_DIR |\n" |
| 1644 |
" LANDLOCK_ACCESS_FS_REMOVE_FILE |\n" |
| 1645 |
" LANDLOCK_ACCESS_FS_MAKE_CHAR |\n" |
| 1646 |
" LANDLOCK_ACCESS_FS_MAKE_DIR |\n" |
| 1647 |
" LANDLOCK_ACCESS_FS_MAKE_REG |\n" |
| 1648 |
" LANDLOCK_ACCESS_FS_MAKE_SOCK |\n" |
| 1649 |
" LANDLOCK_ACCESS_FS_MAKE_FIFO |\n" |
| 1650 |
" LANDLOCK_ACCESS_FS_MAKE_BLOCK |\n" |
| 1651 |
" LANDLOCK_ACCESS_FS_MAKE_SYM |\n" |
| 1652 |
" LANDLOCK_ACCESS_FS_REFER |\n" |
| 1653 |
" LANDLOCK_ACCESS_FS_TRUNCATE;\n" |
| 1654 |
msgstr "" |
| 1655 |
|
| 1656 |
#. type: Plain text |
| 1657 |
#: debian-trixie |
| 1658 |
#, no-wrap |
| 1659 |
msgid "" |
| 1660 |
"/*\n" |
| 1661 |
" * Table of available file system access rights by ABI version,\n" |
| 1662 |
" * numbers hardcoded to keep the example short.\n" |
| 1663 |
" */\n" |
| 1664 |
"__u64 landlock_fs_access_rights[] = {\n" |
| 1665 |
" (LANDLOCK_ACCESS_FS_MAKE_SYM E<lt>E<lt> 1) - 1, /* v1 */\n" |
| 1666 |
" (LANDLOCK_ACCESS_FS_REFER E<lt>E<lt> 1) - 1, /* v2: add \"refer\" */\n" |
| 1667 |
" (LANDLOCK_ACCESS_FS_TRUNCATE E<lt>E<lt> 1) - 1, /* v3: add \"truncate\" */\n" |
| 1668 |
"};\n" |
| 1669 |
"\\&\n" |
| 1670 |
"int abi = landlock_create_ruleset(NULL, 0,\n" |
| 1671 |
" LANDLOCK_CREATE_RULESET_VERSION);\n" |
| 1672 |
"if (abi == -1) {\n" |
| 1673 |
" /*\n" |
| 1674 |
" * Kernel too old, not compiled with Landlock,\n" |
| 1675 |
" * or Landlock was not enabled at boot time.\n" |
| 1676 |
" */\n" |
| 1677 |
" perror(\"Unable to use Landlock\");\n" |
| 1678 |
" return; /* Graceful fallback: Do nothing. */\n" |
| 1679 |
"}\n" |
| 1680 |
"abi = MIN(abi, 3);\n" |
| 1681 |
"\\&\n" |
| 1682 |
"/* Only use the available rights in the ruleset. */\n" |
| 1683 |
"attr.handled_access_fs &= landlock_fs_access_rights[abi - 1];\n" |
| 1684 |
msgstr "" |
| 1685 |
|
| 1686 |
#. type: Plain text |
| 1687 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1688 |
msgid "" |
| 1689 |
"Full working code can be found in E<.UR https://git.kernel.org/\\:pub/\\:scm/" |
| 1690 |
"\\:linux/\\:kernel/\\:git/\\:stable/\\:linux.git/\\:tree/\\:samples/" |
| 1691 |
"\\:landlock/\\:sandboxer.c> E<.UE>" |
| 1692 |
msgstr "" |
| 1693 |
|
| 1694 |
#. type: Plain text |
| 1695 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1696 |
msgid "E<.UR https://landlock.io/> E<.UE>" |
| 1697 |
msgstr "" |
| 1698 |
|
| 1699 |
#. type: TH |
| 1700 |
#: fedora-44 fedora-rawhide |
| 1701 |
#, no-wrap |
| 1702 |
msgid "2025-03-06" |
| 1703 |
msgstr "" |
| 1704 |
|
| 1705 |
#. type: TH |
| 1706 |
#: fedora-44 fedora-rawhide |
| 1707 |
#, no-wrap |
| 1708 |
msgid "Linux man-pages 6.13" |
| 1709 |
msgstr "" |
| 1710 |
|
| 1711 |
#. type: Plain text |
| 1712 |
#: fedora-44 fedora-rawhide |
| 1713 |
msgid "The following access right applies to both files and directories:" |
| 1714 |
msgstr "" |
| 1715 |
|
| 1716 |
#. type: Plain text |
| 1717 |
#: fedora-44 fedora-rawhide |
| 1718 |
#, no-wrap |
| 1719 |
msgid "" |
| 1720 |
"/*\n" |
| 1721 |
" * Table of available file system access rights by ABI version,\n" |
| 1722 |
" * numbers hardcoded to keep the example short.\n" |
| 1723 |
" */\n" |
| 1724 |
"__u64 landlock_fs_access_rights[] = {\n" |
| 1725 |
" (LANDLOCK_ACCESS_FS_MAKE_SYM E<lt>E<lt> 1) - 1, /* v1 */\n" |
| 1726 |
" (LANDLOCK_ACCESS_FS_REFER E<lt>E<lt> 1) - 1, /* v2: add \"refer\" */\n" |
| 1727 |
" (LANDLOCK_ACCESS_FS_TRUNCATE E<lt>E<lt> 1) - 1, /* v3: add \"truncate\" */\n" |
| 1728 |
" (LANDLOCK_ACCESS_FS_TRUNCATE E<lt>E<lt> 1) - 1, /* v4: TCP support */\n" |
| 1729 |
" (LANDLOCK_ACCESS_FS_IOCTL_DEV E<lt>E<lt> 1) - 1, /* v5: add \"ioctl_dev\" */\n" |
| 1730 |
"};\n" |
| 1731 |
"\\&\n" |
| 1732 |
"int abi = landlock_create_ruleset(NULL, 0,\n" |
| 1733 |
" LANDLOCK_CREATE_RULESET_VERSION);\n" |
| 1734 |
"if (abi == -1) {\n" |
| 1735 |
" /*\n" |
| 1736 |
" * Kernel too old, not compiled with Landlock,\n" |
| 1737 |
" * or Landlock was not enabled at boot time.\n" |
| 1738 |
" */\n" |
| 1739 |
" perror(\"Unable to use Landlock\");\n" |
| 1740 |
" return; /* Graceful fallback: Do nothing. */\n" |
| 1741 |
"}\n" |
| 1742 |
"abi = MIN(abi, 3);\n" |
| 1743 |
"\\&\n" |
| 1744 |
"/* Only use the available rights in the ruleset. */\n" |
| 1745 |
"attr.handled_access_fs &= landlock_fs_access_rights[abi - 1];\n" |
| 1746 |
msgstr "" |
| 1747 |
|
| 1748 |
#. type: TH |
| 1749 |
#: mageia-cauldron |
| 1750 |
#, no-wrap |
| 1751 |
msgid "2026-02-08" |
| 1752 |
msgstr "" |
| 1753 |
|
| 1754 |
#. type: TH |
| 1755 |
#: mageia-cauldron |
| 1756 |
#, no-wrap |
| 1757 |
msgid "Linux man-pages 6.17" |
| 1758 |
msgstr "" |
| 1759 |
|
| 1760 |
#. type: TH |
| 1761 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1762 |
#, no-wrap |
| 1763 |
msgid "Linux man-pages (unreleased)" |
| 1764 |
msgstr "" |