Debian Codegraph @

po/ru/man7/pid_namespaces.7.po

raw
1 # Russian translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Alexey, 2016.
5 # Azamat Hackimov <[email protected]>, 2014-2017.
6 # kogamatranslator49 <[email protected]>, 2015.
7 # Darima Kogan <[email protected]>, 2014.
8 # Max Is <[email protected]>, 2016.
9 # Yuri Kozlov <[email protected]>, 2011-2019.
10 # Иван Павлов <[email protected]>, 2017.
11 msgid ""
12 msgstr ""
13 "Project-Id-Version: manpages-l10n\n"
14 "POT-Creation-Date: 2026-06-05 06:34+0200\n"
15 "PO-Revision-Date: 2024-12-21 19:50+0300\n"
16 "Last-Translator: Yuri Kozlov <[email protected]>\n"
17 "Language-Team: Russian <[email protected]>\n"
18 "Language: ru\n"
19 "MIME-Version: 1.0\n"
20 "Content-Type: text/plain; charset=UTF-8\n"
21 "Content-Transfer-Encoding: 8bit\n"
22 "Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
23 "n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || "
24 "(n%100>=11 && n%100<=14)? 2 : 3);\n"
25 "X-Generator: Lokalize 2.0\n"
26
27 #. type: TH
28 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
29 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
30 #, fuzzy, no-wrap
31 #| msgid "See B<pid_namespaces>(7)."
32 msgid "pid_namespaces"
33 msgstr "Смотрите B<pid_namespaces>(7)."
34
35 #. type: TH
36 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
37 #: opensuse-tumbleweed
38 #, no-wrap
39 msgid "2026-02-08"
40 msgstr "8 февраля 2026 г."
41
42 #. type: TH
43 #: archlinux debian-unstable
44 #, fuzzy, no-wrap
45 #| msgid "Linux man-pages 6.17"
46 msgid "Linux man-pages 6.18"
47 msgstr "Справочные страницы Linux 6.17"
48
49 #. type: SH
50 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
51 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
52 #, no-wrap
53 msgid "NAME"
54 msgstr "НАИМЕНОВАНИЕ"
55
56 #. type: Plain text
57 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
58 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
59 msgid "pid_namespaces - overview of Linux PID namespaces"
60 msgstr "pid_namespaces - обзор пространств имён Linux PID"
61
62 #. type: SH
63 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
64 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
65 #, no-wrap
66 msgid "DESCRIPTION"
67 msgstr "ОПИСАНИЕ"
68
69 #. type: Plain text
70 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
71 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
72 msgid "For an overview of namespaces, see B<namespaces>(7)."
73 msgstr "Обзор пространств имён смотрите в B<namespaces>(7)."
74
75 #. type: Plain text
76 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
77 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
78 msgid ""
79 "PID namespaces isolate the process ID number space, meaning that processes "
80 "in different PID namespaces can have the same PID. PID namespaces allow "
81 "containers to provide functionality such as suspending/resuming the set of "
82 "processes in the container and migrating the container to a new host while "
83 "the processes inside the container maintain the same PIDs."
84 msgstr ""
85 "Пространства имён PID изолируют пространство номеров идентификаторов "
86 "процессов, то есть процессы в разных пространствах имён PID могут иметь "
87 "единый PID. Пространства имён PID позволяют предоставлять такие возможности "
88 "в контейнерах как приостановку/возобновление работы набора процессов в "
89 "контейнере и перенос контейнера на новый узел, при чём процессы внутри "
90 "контейнера сохранят свои PID."
91
92 #. type: Plain text
93 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
94 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
95 msgid ""
96 "PIDs in a new PID namespace start at 1, somewhat like a standalone system, "
97 "and calls to B<fork>(2), B<vfork>(2), or B<clone>(2) will produce processes "
98 "with PIDs that are unique within the namespace."
99 msgstr ""
100 "Идентификаторы в новом пространстве имён PID начинаются с 1 как в автономной "
101 "системе, и вызовы B<fork>(2), B<vfork>(2) или B<clone>(2) будут создавать "
102 "процессы с уникальными идентификаторами в пределах пространства имён."
103
104 #. ============================================================
105 #. type: Plain text
106 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
107 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
108 msgid ""
109 "Use of PID namespaces requires a kernel that is configured with the "
110 "B<CONFIG_PID_NS> option."
111 msgstr ""
112 "Для использования пространств имён PID требуется, чтобы ядро было собрано с "
113 "параметром B<CONFIG_PID_NS>."
114
115 #. type: SS
116 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
117 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
118 #, no-wrap
119 msgid "The namespace init process"
120 msgstr "Пространство имён начального процесса"
121
122 #. type: Plain text
123 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
124 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
125 msgid ""
126 "The first process created in a new namespace (i.e., the process created "
127 "using B<clone>(2) with the B<CLONE_NEWPID> flag, or the first child created "
128 "by a process after a call to B<unshare>(2) using the B<CLONE_NEWPID> flag) "
129 "has the PID 1, and is the \"init\" process for the namespace (see "
130 "B<init>(1)). This process becomes the parent of any child processes that "
131 "are orphaned because a process that resides in this PID namespace terminated "
132 "(see below for further details)."
133 msgstr ""
134 "Первый процесс, созданный в новом пространстве имён (т. е., процесс, "
135 "созданный вызовом B<clone>(2) с флагом B<CLONE_NEWPID> или первый потомок, "
136 "созданный процессом после вызова B<unshare>(2) с флагом B<CLONE_NEWPID>) "
137 "имеет PID 1, и это «начальный» (init) процесс пространства имён (смотрите "
138 "B<init>(1)). Этот процесс становится родителем всех дочерних процессов, "
139 "которые осиротели из-за завершения родителей, находящихся внутри этого "
140 "пространства имён PID (дополнительную информацию смотрите ниже)."
141
142 #. type: Plain text
143 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
144 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
145 #, fuzzy
146 #| msgid ""
147 #| "If the \"init\" process of a PID namespace terminates, the kernel "
148 #| "terminates all of the processes in the namespace via a B<SIGKILL> "
149 #| "signal. This behavior reflects the fact that the \"init\" process is "
150 #| "essential for the correct operation of a PID namespace. In this case, a "
151 #| "subsequent B<fork>(2) into this PID namespace fail with the error "
152 #| "B<ENOMEM>; it is not possible to create a new process in a PID namespace "
153 #| "whose \"init\" process has terminated. Such scenarios can occur when, "
154 #| "for example, a process uses an open file descriptor for a I</proc/[pid]/"
155 #| "ns/pid> file corresponding to a process that was in a namespace to "
156 #| "B<setns>(2) into that namespace after the \"init\" process has "
157 #| "terminated. Another possible scenario can occur after a call to "
158 #| "B<unshare>(2): if the first child subsequently created by a B<fork>(2) "
159 #| "terminates, then subsequent calls to B<fork>(2) fail with B<ENOMEM>."
160 msgid ""
161 "If the \"init\" process of a PID namespace terminates, the kernel terminates "
162 "all of the processes in the namespace via a B<SIGKILL> signal. This "
163 "behavior reflects the fact that the \"init\" process is essential for the "
164 "correct operation of a PID namespace. In this case, a subsequent "
165 "B<fork>(2) into this PID namespace fail with the error B<ENOMEM>; it is not "
166 "possible to create a new process in a PID namespace whose \"init\" process "
167 "has terminated. Such scenarios can occur when, for example, a process uses "
168 "an open file descriptor for a I</proc/>pidI</ns/pid> file corresponding to a "
169 "process that was in a namespace to B<setns>(2) into that namespace after "
170 "the \"init\" process has terminated. Another possible scenario can occur "
171 "after a call to B<unshare>(2): if the first child subsequently created by a "
172 "B<fork>(2) terminates, then subsequent calls to B<fork>(2) fail with "
173 "B<ENOMEM>."
174 msgstr ""
175 "Если процесс «init» пространства имён PID завершает работу, то ядро "
176 "завершает работу всех процессов в пространстве имён с помощью сигнала "
177 "B<SIGKILL>. Такое поведение показывает, что процесс «init» необходим для "
178 "корректной работы пространства имён PID. В этом случае последующий вызов "
179 "B<fork>(2) в этом пространство имён PID завершается ошибкой B<ENOMEM>; "
180 "невозможно создать новый процесс в пространстве имён PID, в котором не "
181 "работает процесс «init». Такое может произойти, например, когда процесс "
182 "использует открытый файловый дескриптор файла I</proc/[pid]/ns/pid>, "
183 "соответствующий процессу, который был в пространстве имён B<setns>(2), в "
184 "этом пространстве имён после того, как процесс «init» завершился. Другой "
185 "возможный сценарий может произойти после вызова B<unshare>(2): если первый "
186 "потомок после этого созданный B<fork>(2) завершится, то последующие вызовы "
187 "B<fork>(2) завершаются ошибкой B<ENOMEM>."
188
189 #. type: Plain text
190 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
191 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
192 msgid ""
193 "Only signals for which the \"init\" process has established a signal handler "
194 "can be sent to the \"init\" process by other members of the PID namespace. "
195 "This restriction applies even to privileged processes, and prevents other "
196 "members of the PID namespace from accidentally killing the \"init\" process."
197 msgstr ""
198 "Члены пространства имён PID могут посылать процессу «init» только сигналы, "
199 "для которых процесс «init» установил обработчики. Это ограничение "
200 "применяется даже к привилегированным процессам, и не позволяет другим членам "
201 "пространства имён PID нечаянно убить процесс «init»."
202
203 #. type: Plain text
204 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
205 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
206 #, fuzzy
207 #| msgid ""
208 #| "Likewise, a process in an ancestor namespace can\\(emsubject to the usual "
209 #| "permission checks described in B<kill>(2)\\(emsend signals to the "
210 #| "\"init\" process of a child PID namespace only if the \"init\" process "
211 #| "has established a handler for that signal. (Within the handler, the "
212 #| "I<siginfo_t> I<si_pid> field described in B<sigaction>(2) will be "
213 #| "zero.) B<SIGKILL> or B<SIGSTOP> are treated exceptionally: these signals "
214 #| "are forcibly delivered when sent from an ancestor PID namespace. Neither "
215 #| "of these signals can be caught by the \"init\" process, and so will "
216 #| "result in the usual actions associated with those signals (respectively, "
217 #| "terminating and stopping the process)."
218 msgid ""
219 "Likewise, a process in an ancestor namespace can\\[em]subject to the usual "
220 "permission checks described in B<kill>(2)\\[em]send signals to the \"init\" "
221 "process of a child PID namespace only if the \"init\" process has "
222 "established a handler for that signal. (Within the handler, the "
223 "I<siginfo_t> I<si_pid> field described in B<sigaction>(2) will be zero.) "
224 "B<SIGKILL> or B<SIGSTOP> are treated exceptionally: these signals are "
225 "forcibly delivered when sent from an ancestor PID namespace. Neither of "
226 "these signals can be caught by the \"init\" process, and so will result in "
227 "the usual actions associated with those signals (respectively, terminating "
228 "and stopping the process)."
229 msgstr ""
230 "Также, процесс в родительском пространстве имён может (пройдя обычные "
231 "проверки прав, описанные в B<kill>(2)) послать сигнал процессу «init» "
232 "дочернего пространства имён PID только, если процесс «init» задал "
233 "обработчики для этого сигнала (внутри обработчика I<si_pid> в I<siginfo_t>, "
234 "описанное в B<sigaction>(2) будет равно нулю). Для сигналов B<SIGKILL> и "
235 "B<SIGSTOP> сделано исключение: эти сигналы принудительно доставляются при "
236 "отправке из родительского пространства имён PID. Ни один из них не может "
237 "быть пойман процессом «init», и в результате будут выполнены обычные "
238 "действия, связанные с этими сигналами (завершение и останов процесса, "
239 "соответственно)."
240
241 #. ============================================================
242 #. type: Plain text
243 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
244 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
245 msgid ""
246 "Starting with Linux 3.4, the B<reboot>(2) system call causes a signal to be "
247 "sent to the namespace \"init\" process. See B<reboot>(2) for more details."
248 msgstr ""
249 "Начиная с Linux 3.4, системный вызов B<reboot>(2) посылает сигнал в "
250 "пространство имён процесса «init». Подробности смотрите в B<reboot>(2)."
251
252 #. type: SS
253 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
254 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
255 #, no-wrap
256 msgid "Nesting PID namespaces"
257 msgstr "Вложенные пространства имён PID"
258
259 #. commit f2302505775fd13ba93f034206f1e2a587017929
260 #. The kernel constant MAX_PID_NS_LEVEL
261 #. type: Plain text
262 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
263 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
264 msgid ""
265 "PID namespaces can be nested: each PID namespace has a parent, except for "
266 "the initial (\"root\") PID namespace. The parent of a PID namespace is the "
267 "PID namespace of the process that created the namespace using B<clone>(2) "
268 "or B<unshare>(2). PID namespaces thus form a tree, with all namespaces "
269 "ultimately tracing their ancestry to the root namespace. Since Linux 3.7, "
270 "the kernel limits the maximum nesting depth for PID namespaces to 32."
271 msgstr ""
272 "Пространства имён PID могут быть вложенными: каждое пространство имён PID "
273 "имеет родителя, за исключением начального («корневого») пространства имён "
274 "PID. Родитель пространства имён PID — это пространство имён PID процесса, "
275 "который был создан в пространстве имён с помощью B<clone>(2) или "
276 "B<unshare>(2). Таким образом пространства имён PID образуют дерево со всеми "
277 "пространствами имён по которому, в конечном счёте, можно проследить их "
278 "родословную до корневого пространства имён. Начиная с Linux 3.7, ядро "
279 "ограничивает глубину максимальной вложенности пространств имён PID "
280 "значением 32."
281
282 #. type: Plain text
283 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
284 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
285 msgid ""
286 "A process is visible to other processes in its PID namespace, and to the "
287 "processes in each direct ancestor PID namespace going back to the root PID "
288 "namespace. In this context, \"visible\" means that one process can be the "
289 "target of operations by another process using system calls that specify a "
290 "process ID. Conversely, the processes in a child PID namespace can't see "
291 "processes in the parent and further removed ancestor namespaces. More "
292 "succinctly: a process can see (e.g., send signals with B<kill>(2), set nice "
293 "values with B<setpriority>(2), etc.) only processes contained in its own PID "
294 "namespace and in descendants of that namespace."
295 msgstr ""
296 "Процесс видим другим процессам в своём пространстве имён PID, и процессам в "
297 "каждом прямом родительском пространстве имён PID вплоть до корневого "
298 "пространства имён PID. В этом контексте «видимость» означает, что процесс "
299 "может быть целью операции другого процесса в системных вызовах, который "
300 "указывает идентификатор процесса. И наоборот, процессы в дочернем "
301 "пространстве имён PID не видят процессы в родительском и более удалённых "
302 "родительских пространствах имён. Более кратко: процесс может видеть "
303 "(например, посылать сигналы с помощью B<kill>(2), назначать значения "
304 "уступчивости с помощью B<setpriority>(2) и т. п.) только процессы из своего "
305 "пространства имён PID и в потомках этого пространства имён."
306
307 #. type: Plain text
308 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
309 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
310 msgid ""
311 "A process has one process ID in each of the layers of the PID namespace "
312 "hierarchy in which is visible, and walking back though each direct ancestor "
313 "namespace through to the root PID namespace. System calls that operate on "
314 "process IDs always operate using the process ID that is visible in the PID "
315 "namespace of the caller. A call to B<getpid>(2) always returns the PID "
316 "associated with the namespace in which the process was created."
317 msgstr ""
318 "Процесс имеет идентификатор в каждом слое иерархии пространства имён PID, в "
319 "котором он виден, и двигаясь назад, в каждом прямом предке пространства имён "
320 "вплоть до корневого пространства имён PID. Системные вызовы, работающие с "
321 "идентификатором процесса, всегда используют идентификатор процесса, который "
322 "видим в пространстве имён PID вызывающего. Вызов B<getpid>(2) всегда "
323 "возвращает PID, связанный с пространством имён, в котором был создан процесс."
324
325 #. type: Plain text
326 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
327 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
328 msgid ""
329 "Some processes in a PID namespace may have parents that are outside of the "
330 "namespace. For example, the parent of the initial process in the namespace "
331 "(i.e., the B<init>(1) process with PID 1) is necessarily in another "
332 "namespace. Likewise, the direct children of a process that uses "
333 "B<setns>(2) to cause its children to join a PID namespace are in a "
334 "different PID namespace from the caller of B<setns>(2). Calls to "
335 "B<getppid>(2) for such processes return 0."
336 msgstr ""
337 "Некоторые процессы в пространстве имён PID могут иметь родителей, которые "
338 "находятся вне пространства имён. Например, родитель начального процесса в "
339 "пространстве имён (т. е., процесс B<init>(1) с PID 1) неизбежно находится в "
340 "другом пространстве имён. Аналогичным образом, прямые потомки процесса, "
341 "который использует B<setns>(2) для объединения потомков в пространство имён "
342 "PID, находятся в другом пространстве имён PID относительно вызывающего "
343 "B<setns>(2). При вызове B<getppid>(2) для таких процессов возвращает 0."
344
345 #. type: Plain text
346 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
347 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
348 msgid ""
349 "While processes may freely descend into child PID namespaces (e.g., using "
350 "B<setns>(2) with a PID namespace file descriptor), they may not move in the "
351 "other direction. That is to say, processes may not enter any ancestor "
352 "namespaces (parent, grandparent, etc.). Changing PID namespaces is a one-"
353 "way operation."
354 msgstr ""
355 "Хотя процессы могут свободно перемещаться вниз в дочерние пространства имён "
356 "PID (например, с помощью B<setns>(2) с файловым дескриптором пространства "
357 "имён PID), они не могут перемещаться в обратном направлении. То есть "
358 "процессы не могут входить в пространства имён предка (родителя, прародителя "
359 "и т .п.). Изменение пространств имён PID — это односторонняя операция."
360
361 #. ============================================================
362 #. type: Plain text
363 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
364 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
365 #, fuzzy
366 #| msgid ""
367 #| "The B<NS_GET_PARENT> B<ioctl>(2) operation can be used to discover the "
368 #| "parental relationship between PID namespaces; see B<ioctl_ns>(2)."
369 msgid ""
370 "The B<NS_GET_PARENT> B<ioctl>(2) operation can be used to discover the "
371 "parental relationship between PID namespaces; see B<ioctl_nsfs>(2)."
372 msgstr ""
373 "Операцию B<NS_GET_PARENT> B<ioctl>(2) можно использовать для обнаружения "
374 "родительской связи между пространствами имён PID; смотрите B<ioctl_ns>(2)."
375
376 #. type: SS
377 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
378 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
379 #, no-wrap
380 msgid "setns(2) and unshare(2) semantics"
381 msgstr "Семантика setns(2) и unshare(2)"
382
383 #. type: Plain text
384 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
385 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
386 #, fuzzy
387 #| msgid ""
388 #| "Calls to B<setns>(2) that specify a PID namespace file descriptor and "
389 #| "calls to B<unshare>(2) with the B<CLONE_NEWPID> flag cause children "
390 #| "subsequently created by the caller to be placed in a different PID "
391 #| "namespace from the caller. (Since Linux 4.12, that PID namespace is "
392 #| "shown via the I</proc/[pid]/ns/pid_for_children> file, as described in "
393 #| "B<namespaces>(7).) These calls do not, however, change the PID namespace "
394 #| "of the calling process, because doing so would change the caller's idea "
395 #| "of its own PID (as reported by B<getpid>()), which would break many "
396 #| "applications and libraries."
397 msgid ""
398 "Calls to B<setns>(2) that specify a PID namespace file descriptor and calls "
399 "to B<unshare>(2) with the B<CLONE_NEWPID> flag cause children subsequently "
400 "created by the caller to be placed in a different PID namespace from the "
401 "caller. (Since Linux 4.12, that PID namespace is shown via the I</proc/"
402 ">pidI</ns/pid_for_children> file, as described in B<namespaces>(7).) These "
403 "calls do not, however, change the PID namespace of the calling process, "
404 "because doing so would change the caller's idea of its own PID (as reported "
405 "by B<getpid>()), which would break many applications and libraries."
406 msgstr ""
407 "Последовательно выполняемые вызовы B<setns>(2) с файловым дескриптором "
408 "пространства имён PID и вызов B<unshare>(2) с флагом B<CLONE_NEWPID> "
409 "помещают потомков в другое пространство имён PID, отличное от пространства "
410 "вызывающего (начиная с Linux 4.12 данное пространство имён PID показывается "
411 "через файл I</proc/[pid]/ns/pid_for_children> как описано в "
412 "B<namespaces>(7)). Однако, эти вызовы не изменяют пространство имён PID "
413 "вызывающего процесса, так как это позволило бы изменять PID вызывающего "
414 "(сообщаемые B<getpid>()), что сломало бы многие приложения и библиотеки."
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 ""
420 "To put things another way: a process's PID namespace membership is "
421 "determined when the process is created and cannot be changed thereafter. "
422 "Among other things, this means that the parental relationship between "
423 "processes mirrors the parental relationship between PID namespaces: the "
424 "parent of a process is either in the same namespace or resides in the "
425 "immediate parent PID namespace."
426 msgstr ""
427 "Посмотрим на вещи под другим углом: членство процесса в пространстве имён "
428 "PID определяется при создании процесса и не может быть изменено в "
429 "дальнейшем. Помимо прочего, это означает, что родственные отношения между "
430 "процессами зеркально отражают родственные отношения между пространствами "
431 "имён PID: родитель процесса находится в том же пространстве имён или в "
432 "непосредственном родительском пространстве имён namespace."
433
434 #. ============================================================
435 #. type: Plain text
436 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
437 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
438 #, fuzzy
439 #| msgid ""
440 #| "A process may call B<unshare>(2) with the B<CLONE_NEWPID> flag only "
441 #| "once. After it has performed this operation, its I</proc/PID/ns/"
442 #| "pid_for_children> symbolic link will be empty until the first child is "
443 #| "created in the namespace."
444 msgid ""
445 "A process may call B<unshare>(2) with the B<CLONE_NEWPID> flag only once. "
446 "After it has performed this operation, its I</proc/>pidI</ns/"
447 "pid_for_children> symbolic link will be empty until the first child is "
448 "created in the namespace."
449 msgstr ""
450 "Процесс может вызвать B<unshare>(2) с флагом B<CLONE_NEWPID> только один "
451 "раз. После выполнения этой операции его символическая ссылка I</proc/PID/ns/"
452 "pid_for_children> станет пустой, пока пространстве имён не будет создать "
453 "первый потомок."
454
455 #. type: SS
456 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
457 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
458 #, no-wrap
459 msgid "Adoption of orphaned children"
460 msgstr "Усыновление осиротевших потомков"
461
462 #. Furthermore, by definition, the parent of the "init" process
463 #. of a PID namespace resides in the parent PID namespace.
464 #. ============================================================
465 #. type: Plain text
466 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
467 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
468 msgid ""
469 "When a child process becomes orphaned, it is reparented to the \"init\" "
470 "process in the PID namespace of its parent (unless one of the nearer "
471 "ancestors of the parent employed the B<prctl>(2) B<PR_SET_CHILD_SUBREAPER> "
472 "command to mark itself as the reaper of orphaned descendant processes). "
473 "Note that because of the B<setns>(2) and B<unshare>(2) semantics described "
474 "above, this may be the \"init\" process in the PID namespace that is the "
475 "I<parent> of the child's PID namespace, rather than the \"init\" process in "
476 "the child's own PID namespace."
477 msgstr ""
478 "Когда дочерний процесс становится сиротой, его родителем становится "
479 "«начальный» процесс в пространстве имён PID его родителя (если один из "
480 "ближайших родственных процессов родителя не вызывал команду B<prctl>(2) "
481 "B<PR_SET_CHILD_SUBREAPER> для назначения себя сборщиком собирателем дочерних "
482 "процессов). Заметим, что благодаря семантике B<setns>(2) и B<unshare>(2), "
483 "описанной выше, это может быть процесс «init» в пространстве имён PID, "
484 "являющийся I<родителем> пространства имён PID потомка, а не процесс «init» "
485 "пространства имён PID самого потомка."
486
487 #. type: SS
488 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
489 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
490 #, no-wrap
491 msgid "Compatibility of CLONE_NEWPID with other CLONE_* flags"
492 msgstr "Совместимость CLONE_NEWPID с другими флагами CLONE_*"
493
494 #. type: Plain text
495 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
496 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
497 #, fuzzy
498 #| msgid ""
499 #| "In current versions of Linux, B<CLONE_NEWPID> can't be combined with "
500 #| "B<CLONE_THREAD>. Threads are required to be in the same PID namespace "
501 #| "such that the threads in a process can send signals to each other. "
502 #| "Similarly, it must be possible to see all of the threads of a processes "
503 #| "in the B<proc>(5) filesystem. Additionally, if two threads were in "
504 #| "different PID namespaces, the process ID of the process sending a signal "
505 #| "could not be meaningfully encoded when a signal is sent (see the "
506 #| "description of the I<siginfo_t> type in B<sigaction>(2)). Since this is "
507 #| "computed when a signal is enqueued, a signal queue shared by processes in "
508 #| "multiple PID namespaces would defeat that."
509 msgid ""
510 "In current versions of Linux, B<CLONE_NEWPID> can't be combined with "
511 "B<CLONE_THREAD>. Threads are required to be in the same PID namespace such "
512 "that the threads in a process can send signals to each other. Similarly, it "
513 "must be possible to see all of the threads of a process in the B<proc>(5) "
514 "filesystem. Additionally, if two threads were in different PID namespaces, "
515 "the process ID of the process sending a signal could not be meaningfully "
516 "encoded when a signal is sent (see the description of the I<siginfo_t> type "
517 "in B<sigaction>(2)). Since this is computed when a signal is enqueued, a "
518 "signal queue shared by processes in multiple PID namespaces would defeat "
519 "that."
520 msgstr ""
521 "В текущих версиях Linux B<CLONE_NEWPID> нельзя объединять вместе с "
522 "B<CLONE_THREAD>. Для нитей требуется находиться в том же пространстве имён "
523 "PID, чтобы нити процесса могли посылать сигналы друг другу. Также требуется "
524 "видеть все нити процессов в файловой системе B<proc>(5). Также, если две "
525 "нити находятся в разных пространствах имён PID, то ID процесса, посылающего "
526 "сигнал, невозможно достоверно закодировать при посылке (смотрите описание "
527 "типа I<siginfo_t> в B<sigaction>(2)). Так как вычисление выполняется когда "
528 "сигнал попадает в очередь сигналов, общая для процессов из нескольких "
529 "пространств имён PID, очередь сигналов не позволяет этого."
530
531 #. Note these restrictions were all introduced in
532 #. 8382fcac1b813ad0a4e68a838fc7ae93fa39eda0
533 #. when CLONE_NEWPID|CLONE_VM was disallowed
534 #. (restriction lifted in faf00da544045fdc1454f3b9e6d7f65c841de302)
535 #. (restriction lifted in e79f525e99b04390ca4d2366309545a836c03bf1)
536 #. ============================================================
537 #. type: Plain text
538 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
539 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
540 msgid ""
541 "In earlier versions of Linux, B<CLONE_NEWPID> was additionally disallowed "
542 "(failing with the error B<EINVAL>) in combination with B<CLONE_SIGHAND> "
543 "(before Linux 4.3) as well as B<CLONE_VM> (before Linux 3.12). The changes "
544 "that lifted these restrictions have also been ported to earlier stable "
545 "kernels."
546 msgstr ""
547 "В ранних версиях Linux значение B<CLONE_NEWPID> также запрещалось "
548 "(возвращалась ошибка B<EINVAL>) объединять с B<CLONE_SIGHAND> (до Linux "
549 "4.3), а также с B<CLONE_VM> (до Linux 3.12). Изменения, снявшие эти "
550 "ограничения, были также перенесены в более ранние стабильные ядра."
551
552 #. type: SS
553 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
554 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
555 #, no-wrap
556 msgid "/proc and PID namespaces"
557 msgstr "/proc и PID пространств имен"
558
559 #. type: Plain text
560 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
561 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
562 #, fuzzy
563 #| msgid ""
564 #| "A I</proc> filesystem shows (in the I</proc/[pid]> directories) only "
565 #| "processes visible in the PID namespace of the process that performed the "
566 #| "mount, even if the I</proc> filesystem is viewed from processes in other "
567 #| "namespaces."
568 msgid ""
569 "A I</proc> filesystem shows (in the I</proc/>pid directories) only processes "
570 "visible in the PID namespace of the process that performed the mount, even "
571 "if the I</proc> filesystem is viewed from processes in other namespaces."
572 msgstr ""
573 "В файловой системе I</proc> отображаются (в каталогах I</proc/[pid]>) только "
574 "процессы, видимые в пространстве имён PID процесса, который выполнил "
575 "монтирование, даже если файловая система I</proc> видима из процессов "
576 "другого пространства имён."
577
578 #. type: Plain text
579 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
580 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
581 msgid ""
582 "After creating a new PID namespace, it is useful for the child to change its "
583 "root directory and mount a new procfs instance at I</proc> so that tools "
584 "such as B<ps>(1) work correctly. If a new mount namespace is "
585 "simultaneously created by including B<CLONE_NEWNS> in the I<flags> argument "
586 "of B<clone>(2) or B<unshare>(2), then it isn't necessary to change the root "
587 "directory: a new procfs instance can be mounted directly over I</proc>."
588 msgstr ""
589 "После создания нового пространства имён PID у потомка полезно изменить его "
590 "корневой каталог и смонтировать новый экземпляр procfs в I</proc> для того, "
591 "чтобы корректно работали инструменты типа B<ps>(1). Если одновременно "
592 "создаётся новое пространство имён монтирования, добавлением флага "
593 "B<CLONE_NEWNS> в аргумент I<flags> вызова B<clone>(2) или B<unshare>(2), то "
594 "необязательно изменять корневой каталог: новый экземпляр procfs можно "
595 "смонтировать непосредственно в I</proc>."
596
597 #. type: Plain text
598 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
599 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
600 msgid "From a shell, the command to mount I</proc> is:"
601 msgstr "Команда оболочки для монтирования I</proc>:"
602
603 #. type: Plain text
604 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
605 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
606 #, no-wrap
607 msgid "$ mount -t proc proc /proc\n"
608 msgstr "$ mount -t proc proc /proc\n"
609
610 #. ============================================================
611 #. type: Plain text
612 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
613 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
614 msgid ""
615 "Calling B<readlink>(2) on the path I</proc/self> yields the process ID of "
616 "the caller in the PID namespace of the procfs mount (i.e., the PID namespace "
617 "of the process that mounted the procfs). This can be useful for "
618 "introspection purposes, when a process wants to discover its PID in other "
619 "namespaces."
620 msgstr ""
621 "Вызов B<readlink>(2) с путём I</proc/self> выдаёт идентификатор процесса "
622 "вызывающего из пространства имён PID, откуда смонтирован procfs (т. е., из "
623 "пространства имён PID процесса, который смонтировал procfs). Это может быть "
624 "полезно при самоанализе, когда процесс хочет узнать свой PID в других "
625 "пространствах имён."
626
627 #. type: SS
628 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
629 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
630 #, no-wrap
631 msgid "/proc files"
632 msgstr "Файлы в /proc"
633
634 #. type: TP
635 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
636 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
637 #, no-wrap
638 msgid "B</proc/sys/kernel/ns_last_pid> (since Linux 3.3)"
639 msgstr "B</proc/sys/kernel/ns_last_pid> (начиная с Linux 3.3)"
640
641 #. commit b8f566b04d3cddd192cfd2418ae6d54ac6353792
642 #. type: Plain text
643 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
644 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
645 #, fuzzy
646 #| msgid ""
647 #| "This file displays the last PID that was allocated in this PID "
648 #| "namespace. When the next PID is allocated, the kernel will search for "
649 #| "the lowest unallocated PID that is greater than this value, and when this "
650 #| "file is subsequently read it will show that PID."
651 msgid ""
652 "This file (which is virtualized per PID namespace) displays the last PID "
653 "that was allocated in this PID namespace. When the next PID is allocated, "
654 "the kernel will search for the lowest unallocated PID that is greater than "
655 "this value, and when this file is subsequently read it will show that PID."
656 msgstr ""
657 "Этот файл отражает последний PID, который был выделен в этом пространстве "
658 "имён PID. Когда выделяется следующий PID, ядро ищет самый маленький не "
659 "выделенный PID, который больше этого значения, и при следующем чтении этого "
660 "файла в нём будет этот PID."
661
662 #. This ability is necessary to support checkpoint restore in user-space
663 #. ============================================================
664 #. type: Plain text
665 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
666 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
667 #, fuzzy
668 #| msgid ""
669 #| "This file is writable by a process that has the B<CAP_SYS_ADMIN> "
670 #| "capability inside its user namespace. This makes it possible to "
671 #| "determine the PID that is allocated to the next process that is created "
672 #| "inside this PID namespace."
673 msgid ""
674 "This file is writable by a process that has the B<CAP_SYS_ADMIN> or (since "
675 "Linux 5.9) B<CAP_CHECKPOINT_RESTORE> capability inside the user namespace "
676 "that owns the PID namespace. This makes it possible to determine the PID "
677 "that is allocated to the next process that is created inside this PID "
678 "namespace."
679 msgstr ""
680 "Этот файл доступен на запись процессу с мандатом B<CAP_SYS_ADMIN> внутри "
681 "своего пространства имён пользователя. Это делает возможным задать PID, "
682 "который выделяется следующему процессу, создаваемому внутри этого "
683 "пространства имён PID."
684
685 #. type: SS
686 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
687 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
688 #, no-wrap
689 msgid "Miscellaneous"
690 msgstr "Разное"
691
692 #. type: Plain text
693 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
694 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
695 msgid ""
696 "When a process ID is passed over a UNIX domain socket to a process in a "
697 "different PID namespace (see the description of B<SCM_CREDENTIALS> in "
698 "B<unix>(7)), it is translated into the corresponding PID value in the "
699 "receiving process's PID namespace."
700 msgstr ""
701 "Когда идентификатор процесса передаётся через доменный сокет UNIX в процесс "
702 "в другом пространстве имён PID (смотрите описание B<SCM_CREDENTIALS> в "
703 "B<unix>(7)), то он транслируется в соответствующее значения PID из "
704 "пространства имён PID принимающего процесса."
705
706 #. type: SH
707 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
708 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
709 #, no-wrap
710 msgid "STANDARDS"
711 msgstr "СТАНДАРТЫ"
712
713 #. type: Plain text
714 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
715 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
716 msgid "Linux."
717 msgstr "Linux."
718
719 #. type: SH
720 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
721 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
722 #, no-wrap
723 msgid "EXAMPLES"
724 msgstr "ПРИМЕРЫ"
725
726 #. type: Plain text
727 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
728 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
729 msgid "See B<user_namespaces>(7)."
730 msgstr "См. B<user_namespaces>(7)."
731
732 #. type: SH
733 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
734 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
735 #, no-wrap
736 msgid "SEE ALSO"
737 msgstr "СМОТРИТЕ ТАКЖЕ"
738
739 #. type: Plain text
740 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
741 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
742 msgid ""
743 "B<clone>(2), B<reboot>(2), B<setns>(2), B<unshare>(2), B<proc>(5), "
744 "B<capabilities>(7), B<credentials>(7), B<mount_namespaces>(7), "
745 "B<namespaces>(7), B<user_namespaces>(7), B<switch_root>(8)"
746 msgstr ""
747 "B<clone>(2), B<reboot>(2), B<setns>(2), B<unshare>(2), B<proc>(5), "
748 "B<capabilities>(7), B<credentials>(7), B<mount_namespaces>(7), "
749 "B<namespaces>(7), B<user_namespaces>(7), B<switch_root>(8)"
750
751 #. type: TH
752 #: debian-trixie fedora-44 fedora-rawhide
753 #, no-wrap
754 msgid "2024-06-13"
755 msgstr "13 июня 2024 г."
756
757 #. type: TH
758 #: debian-trixie
759 #, no-wrap
760 msgid "Linux man-pages 6.9.1"
761 msgstr "Страницы руководства Linux 6.9.1"
762
763 #. type: TH
764 #: fedora-44 fedora-rawhide
765 #, no-wrap
766 msgid "Linux man-pages 6.13"
767 msgstr "Страницы руководства Linux 6.13"
768
769 #. type: TH
770 #: mageia-cauldron
771 #, no-wrap
772 msgid "Linux man-pages 6.17"
773 msgstr "Страницы руководства Linux 6.17"
774
775 #. type: TH
776 #: opensuse-leap-16-1 opensuse-tumbleweed
777 #, no-wrap
778 msgid "Linux man-pages (unreleased)"
779 msgstr "Страницы руководства Linux (не выпущены)"