Debian Codegraph @

po/ru/man7/cgroup_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 # Azamat Hackimov <[email protected]>, 2014.
5 # Dmitriy S. Seregin <[email protected]>, 2013.
6 # Dmitry Bolkhovskikh <[email protected]>, 2017.
7 # Katrin Kutepova <[email protected]>, 2018.
8 # Yuri Kozlov <[email protected]>, 2011-2019.
9 # Иван Павлов <[email protected]>, 2017.
10 msgid ""
11 msgstr ""
12 "Project-Id-Version: manpages-l10n\n"
13 "POT-Creation-Date: 2026-06-05 06:20+0200\n"
14 "PO-Revision-Date: 2024-12-21 19:50+0300\n"
15 "Last-Translator: Yuri Kozlov <[email protected]>\n"
16 "Language-Team: Russian <[email protected]>\n"
17 "Language: ru\n"
18 "MIME-Version: 1.0\n"
19 "Content-Type: text/plain; charset=UTF-8\n"
20 "Content-Transfer-Encoding: 8bit\n"
21 "Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
22 "n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || "
23 "(n%100>=11 && n%100<=14)? 2 : 3);\n"
24 "X-Generator: Lokalize 2.0\n"
25
26 #. type: TH
27 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
28 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
29 #, fuzzy, no-wrap
30 #| msgid "Mount namespaces"
31 msgid "cgroup_namespaces"
32 msgstr "Пространства имён монтирования"
33
34 #. type: TH
35 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
36 #: opensuse-tumbleweed
37 #, no-wrap
38 msgid "2026-02-08"
39 msgstr "8 февраля 2026 г."
40
41 #. type: TH
42 #: archlinux debian-unstable
43 #, fuzzy, no-wrap
44 #| msgid "Linux man-pages 6.17"
45 msgid "Linux man-pages 6.18"
46 msgstr "Справочные страницы Linux 6.17"
47
48 #. type: SH
49 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
50 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
51 #, no-wrap
52 msgid "NAME"
53 msgstr "НАИМЕНОВАНИЕ"
54
55 #. type: Plain text
56 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
57 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
58 msgid "cgroup_namespaces - overview of Linux cgroup namespaces"
59 msgstr "cgroup_namespaces - обзор пространств имён Linux cgroup"
60
61 #. type: SH
62 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
63 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
64 #, no-wrap
65 msgid "DESCRIPTION"
66 msgstr "ОПИСАНИЕ"
67
68 #. type: Plain text
69 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
70 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
71 msgid "For an overview of namespaces, see B<namespaces>(7)."
72 msgstr "Обзор пространств имён смотрите в B<namespaces>(7)."
73
74 #. type: Plain text
75 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
76 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
77 #, fuzzy
78 #| msgid ""
79 #| "Cgroup namespaces virtualize the view of a process's cgroups (see "
80 #| "B<cgroups>(7)) as seen via I</proc/[pid]/cgroup> and I</proc/[pid]/"
81 #| "mountinfo>."
82 msgid ""
83 "Cgroup namespaces virtualize the view of a process's cgroups (see "
84 "B<cgroups>(7)) as seen via I</proc/>pidI</cgroup> and I</proc/>pidI</"
85 "mountinfo>."
86 msgstr ""
87 "Пространства имён cgroup_namespaces виртуализируют представление о cgroup "
88 "процесса (смотрите B<cgroups>(7)) в виде I</proc/[pid]/cgroup> и I</proc/"
89 "[pid]/mountinfo>."
90
91 #. type: Plain text
92 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
93 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
94 #, fuzzy
95 #| msgid ""
96 #| "Each cgroup namespace has its own set of cgroup root directories. These "
97 #| "root directories are the base points for the relative locations displayed "
98 #| "in the corresponding records in the I</proc/[pid]/cgroup> file. When a "
99 #| "process creates a new cgroup namespace using B<clone>(2) or "
100 #| "B<unshare>(2) with the B<CLONE_NEWCGROUP> flag, its current cgroups "
101 #| "directories become the cgroup root directories of the new namespace. "
102 #| "(This applies both for the cgroups version 1 hierarchies and the cgroups "
103 #| "version 2 unified hierarchy.)"
104 msgid ""
105 "Each cgroup namespace has its own set of cgroup root directories. These "
106 "root directories are the base points for the relative locations displayed in "
107 "the corresponding records in the I</proc/>pidI</cgroup> file. When a "
108 "process creates a new cgroup namespace using B<clone>(2) or B<unshare>(2) "
109 "with the B<CLONE_NEWCGROUP> flag, its current cgroups directories become the "
110 "cgroup root directories of the new namespace. (This applies both for the "
111 "cgroups version 1 hierarchies and the cgroups version 2 unified hierarchy.)"
112 msgstr ""
113 "Каждое пространство имён cgroup имеет свой набор корневых каталогов cgroup. "
114 "Данные корневые каталоги являются базовыми точками относительных "
115 "расположений, показываемых в соответствующих записях файла I</proc/[pid]/"
116 "cgroup>. Когда процесс создаёт новое пространство имён cgroup с помощью "
117 "B<clone>(2) или B<unshare>(2) с флагом B<CLONE_NEWCGROUP>, то его текущие "
118 "каталоги cgroups становятся корневыми каталогами cgroup нового пространства "
119 "имён (это применимо как для иерархии cgroups версии 1, так и для "
120 "унифицированной иерархии cgroups версии 2)."
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 #, fuzzy
126 #| msgid ""
127 #| "When reading the cgroup memberships of a \"target\" process from I</proc/"
128 #| "[pid]/cgroup>, the pathname shown in the third field of each record will "
129 #| "be relative to the reading process's root directory for the corresponding "
130 #| "cgroup hierarchy. If the cgroup directory of the target process lies "
131 #| "outside the root directory of the reading process's cgroup namespace, "
132 #| "then the pathname will show I<../> entries for each ancestor level in the "
133 #| "cgroup hierarchy."
134 msgid ""
135 "When reading the cgroup memberships of a \"target\" process from I</proc/"
136 ">pidI</cgroup>, the pathname shown in the third field of each record will be "
137 "relative to the reading process's root directory for the corresponding "
138 "cgroup hierarchy. If the cgroup directory of the target process lies "
139 "outside the root directory of the reading process's cgroup namespace, then "
140 "the pathname will show I<../> entries for each ancestor level in the cgroup "
141 "hierarchy."
142 msgstr ""
143 "При чтении членов cgroup «целевого» процесса из I</proc/[pid]/cgroup> путь в "
144 "третьем поле каждой записи будет относительным по отношению к корневому "
145 "каталогу cgroup читающего процесса для соответствующей иерархии cgroup. Если "
146 "каталог cgroup процесса назначения лежит вне корневого каталоге пространства "
147 "имён cgroup читающего процесса, то путь будет показан как I<../> для каждого "
148 "уровня предка в иерархии cgroup."
149
150 #. type: Plain text
151 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
152 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
153 msgid ""
154 "The following shell session demonstrates the effect of creating a new cgroup "
155 "namespace."
156 msgstr ""
157 "Следующий пример сеанса демонстрирует создание нового пространства имён "
158 "cgroup."
159
160 #. type: Plain text
161 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
162 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
163 msgid ""
164 "First, (as superuser) in a shell in the initial cgroup namespace, we create "
165 "a child cgroup in the I<freezer> hierarchy, and place a process in that "
166 "cgroup that we will use as part of the demonstration below:"
167 msgstr ""
168 "Сначала (от суперпользователя) в оболочке начального пространства имён "
169 "cgroup создадим дочернюю cgroup в иерархии I<freezer> и поместим в эту "
170 "cgroup процесс, который будет использоваться как часть демонстрации далее:"
171
172 #. type: Plain text
173 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
174 #: opensuse-tumbleweed
175 #, fuzzy, no-wrap
176 #| msgid ""
177 #| "# B<mkdir -p /sys/fs/cgroup/freezer/sub2>\n"
178 #| "# B<sleep 10000 &> # Create a process that lives for a while\n"
179 #| "[1] 20124\n"
180 #| "# B<echo 20124 E<gt> /sys/fs/cgroup/freezer/sub2/cgroup.procs>\n"
181 msgid ""
182 "#B< mkdir -p /sys/fs/cgroup/freezer/sub2>;\n"
183 "#B< sleep 10000 &> # Create a process that lives for a while\n"
184 "[1] 20124\n"
185 "#B< echo 20124 E<gt> /sys/fs/cgroup/freezer/sub2/cgroup.procs>;\n"
186 msgstr ""
187 "# B<mkdir -p /sys/fs/cgroup/freezer/sub2>\n"
188 "# B<sleep 10000 &> # создать процесс, который живёт какое-то время\n"
189 "[1] 20124\n"
190 "# B<echo 20124 E<gt> /sys/fs/cgroup/freezer/sub2/cgroup.procs>\n"
191
192 #. type: Plain text
193 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
194 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
195 msgid ""
196 "We then create another child cgroup in the I<freezer> hierarchy and put the "
197 "shell into that cgroup:"
198 msgstr ""
199 "Затем создадим другую дочернюю cgroup в иерархии I<freezer> и поместим "
200 "оболочку в эту cgroup:"
201
202 #. type: Plain text
203 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
204 #: opensuse-tumbleweed
205 #, fuzzy, no-wrap
206 #| msgid ""
207 #| "# B<mkdir -p /sys/fs/cgroup/freezer/sub>\n"
208 #| "# B<echo $$> # Show PID of this shell\n"
209 #| "30655\n"
210 #| "# B<echo 30655 E<gt> /sys/fs/cgroup/freezer/sub/cgroup.procs>\n"
211 #| "# B<cat /proc/self/cgroup | grep freezer>\n"
212 #| "7:freezer:/sub\n"
213 msgid ""
214 "#B< mkdir -p /sys/fs/cgroup/freezer/sub>;\n"
215 "#B< echo $$>; # Show PID of this shell\n"
216 "30655\n"
217 "#B< echo 30655 E<gt> /sys/fs/cgroup/freezer/sub/cgroup.procs>;\n"
218 "#B< cat /proc/self/cgroup | grep freezer>;\n"
219 "7:freezer:/sub\n"
220 msgstr ""
221 "# B<mkdir -p /sys/fs/cgroup/freezer/sub>\n"
222 "# B<echo $$> # выводим PID этой оболочки\n"
223 "30655\n"
224 "# B<echo 30655 E<gt> /sys/fs/cgroup/freezer/sub/cgroup.procs>\n"
225 "# B<cat /proc/self/cgroup | grep freezer>\n"
226 "7:freezer:/sub\n"
227
228 #. type: Plain text
229 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
230 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
231 msgid ""
232 "Next, we use B<unshare>(1) to create a process running a new shell in new "
233 "cgroup and mount namespaces:"
234 msgstr ""
235 "Затем с помощью B<unshare>(1) создаётся процесс, выполняющий новую оболочку "
236 "в новой cgroup и монтируется пространство имён:"
237
238 #. type: Plain text
239 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
240 #: opensuse-tumbleweed
241 #, fuzzy, no-wrap
242 #| msgid "# B<PS1=\"sh2# \" unshare -Cm bash>\n"
243 msgid "#B< PS1='sh2# ' unshare -Cm bash>;\n"
244 msgstr "# B<PS1=\"sh2# \" unshare -Cm bash>\n"
245
246 #. type: Plain text
247 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
248 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
249 #, fuzzy
250 #| msgid ""
251 #| "From the new shell started by B<unshare>(1), we then inspect the I</proc/"
252 #| "[pid]/cgroup> files of, respectively, the new shell, a process that is in "
253 #| "the initial cgroup namespace (I<init>, with PID 1), and the process in "
254 #| "the sibling cgroup (I<sub2>):"
255 msgid ""
256 "From the new shell started by B<unshare>(1), we then inspect the I</proc/"
257 ">pidI</cgroup> files of, respectively, the new shell, a process that is in "
258 "the initial cgroup namespace (I<init>, with PID 1), and the process in the "
259 "sibling cgroup (I<sub2>):"
260 msgstr ""
261 "Из новой оболочки, запущенной B<unshare>(1), теперь файлы I</proc/[pid]/"
262 "cgroup> содержат, соответственно, новый процесс-оболочку, процесс, "
263 "находящийся в первоначальном пространстве имён cgroup (I<init> с PID 1) и "
264 "процесс в родственной cgroup (I<sub2>):"
265
266 #. type: Plain text
267 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
268 #: opensuse-tumbleweed
269 #, fuzzy, no-wrap
270 #| msgid ""
271 #| "sh2# B<cat /proc/self/cgroup | grep freezer>\n"
272 #| "7:freezer:/\n"
273 #| "sh2# B<cat /proc/1/cgroup | grep freezer>\n"
274 #| "7:freezer:/..\n"
275 #| "sh2# B<cat /proc/20124/cgroup | grep freezer>\n"
276 #| "7:freezer:/../sub2\n"
277 msgid ""
278 "sh2#B< cat /proc/self/cgroup | grep freezer>;\n"
279 "7:freezer:/\n"
280 "sh2#B< cat /proc/1/cgroup | grep freezer>;\n"
281 "7:freezer:/..\n"
282 "sh2#B< cat /proc/20124/cgroup | grep freezer>;\n"
283 "7:freezer:/../sub2\n"
284 msgstr ""
285 "sh2# B<cat /proc/self/cgroup | grep freezer>\n"
286 "7:freezer:/\n"
287 "sh2# B<cat /proc/1/cgroup | grep freezer>\n"
288 "7:freezer:/..\n"
289 "sh2# B<cat /proc/20124/cgroup | grep freezer>\n"
290 "7:freezer:/../sub2\n"
291
292 #. type: Plain text
293 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
294 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
295 #, fuzzy
296 #| msgid ""
297 #| "From the output of the first command, we see that the freezer cgroup "
298 #| "membership of the new shell (which is in the same cgroup as the initial "
299 #| "shell) is shown defined relative to the freezer cgroup root directory "
300 #| "that was established when the new cgroup namespace was created. (In "
301 #| "absolute terms, the new shell is in the I</sub> freezer cgroup, and the "
302 #| "root directory of the freezer cgroup hierarchy in the new cgroup "
303 #| "namespace is also I</sub>. Thus, the new shell's cgroup membership is "
304 #| "displayed as \\(aq/\\(aq.)"
305 msgid ""
306 "From the output of the first command, we see that the freezer cgroup "
307 "membership of the new shell (which is in the same cgroup as the initial "
308 "shell) is shown defined relative to the freezer cgroup root directory that "
309 "was established when the new cgroup namespace was created. (In absolute "
310 "terms, the new shell is in the I</sub> freezer cgroup, and the root "
311 "directory of the freezer cgroup hierarchy in the new cgroup namespace is "
312 "also I</sub>. Thus, the new shell's cgroup membership is displayed as \\"
313 "[aq]/\\[aq].)"
314 msgstr ""
315 "В выводе первой команды мы видим, что в cgroup freezer членство новой "
316 "оболочки (находящейся в той же cgroup, что и начальная оболочка) определено "
317 "относительно корневого каталога cgroup freezer, который был назначен при "
318 "создании нового пространства имён cgroup (в абсолютном выражении, новая "
319 "оболочка находится в I</sub> freezer cgroup и корневой каталог иерархии "
320 "freezer cgroup в новом пространстве имён cgroup также находится в I</sub>. "
321 "То есть, членство cgroup новой оболочки показывается как \\(aq/\\(aq)."
322
323 #. type: Plain text
324 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
325 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
326 msgid ""
327 "However, when we look in I</proc/self/mountinfo> we see the following "
328 "anomaly:"
329 msgstr ""
330 "Однако, если посмотреть I</proc/self/mountinfo>, то можно увидеть следующую "
331 "аномалию:"
332
333 #. type: Plain text
334 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
335 #: opensuse-tumbleweed
336 #, fuzzy, no-wrap
337 #| msgid ""
338 #| "sh2# B<cat /proc/self/mountinfo | grep freezer>\n"
339 #| "155 145 0:32 /.. /sys/fs/cgroup/freezer ...\n"
340 msgid ""
341 "sh2#B< cat /proc/self/mountinfo | grep freezer>;\n"
342 "155 145 0:32 /..\\& /sys/fs/cgroup/freezer ...\n"
343 msgstr ""
344 "sh2# B<cat /proc/self/mountinfo | grep freezer>\n"
345 "155 145 0:32 /.. /sys/fs/cgroup/freezer ...\n"
346
347 #. type: Plain text
348 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
349 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
350 #, fuzzy
351 #| msgid ""
352 #| "The fourth field of this line (I</..>) should show the directory in the "
353 #| "cgroup filesystem which forms the root of this mount. Since by the "
354 #| "definition of cgroup namespaces, the process's current freezer cgroup "
355 #| "directory became its root freezer cgroup directory, we should see \\(aq/\\"
356 #| "(aq in this field. The problem here is that we are seeing a mount entry "
357 #| "for the cgroup filesystem corresponding to the initial cgroup namespace "
358 #| "(whose cgroup filesystem is indeed rooted at the parent directory of "
359 #| "I<sub>). To fix this problem, we must remount the freezer cgroup "
360 #| "filesystem from the new shell (i.e., perform the mount from a process "
361 #| "that is in the new cgroup namespace), after which we see the expected "
362 #| "results:"
363 msgid ""
364 "The fourth field of this line (I</..>) should show the directory in the "
365 "cgroup filesystem which forms the root of this mount. Since by the "
366 "definition of cgroup namespaces, the process's current freezer cgroup "
367 "directory became its root freezer cgroup directory, we should see \\[aq]/\\"
368 "[aq] in this field. The problem here is that we are seeing a mount entry "
369 "for the cgroup filesystem corresponding to the initial cgroup namespace "
370 "(whose cgroup filesystem is indeed rooted at the parent directory of "
371 "I<sub>). To fix this problem, we must remount the freezer cgroup filesystem "
372 "from the new shell (i.e., perform the mount from a process that is in the "
373 "new cgroup namespace), after which we see the expected results:"
374 msgstr ""
375 "Четвёртое поле в этой строке (I</..>) должен содержать каталог в файловой "
376 "системе cgroup, который является корнем этого монтирования. Так как по "
377 "определению пространств имён cgroup текущий каталог freezer cgroup процесса "
378 "становится его корневым каталогом freezer cgroup, в этом поле мы должны "
379 "увидеть \\(aq/\\(aq. Проблема здесь в том, что мы видим запись о "
380 "монтировании для файловой системы cgroup, которая соответствует начальному "
381 "пространству имён cgroup (чья файловая система cgroup действительно имеет "
382 "корень в родительском каталоге I<sub>). Чтобы это исправить нам нужно "
383 "перемонтировать файловую систему freezer cgroup из новой оболочки (т. е. "
384 "выполнить монтирование из процесса, который находится в новом пространстве "
385 "имён cgroup), после чего мы увидим ожидаемый результат:"
386
387 #. type: Plain text
388 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
389 #: opensuse-tumbleweed
390 #, fuzzy, no-wrap
391 #| msgid ""
392 #| "sh2# B<mount --make-rslave /> # Don't propagate mount events\n"
393 #| " # to other namespaces\n"
394 #| "sh2# B<umount /sys/fs/cgroup/freezer>\n"
395 #| "sh2# B<mount -t cgroup -o freezer freezer /sys/fs/cgroup/freezer>\n"
396 #| "sh2# B<cat /proc/self/mountinfo | grep freezer>\n"
397 #| "155 145 0:32 / /sys/fs/cgroup/freezer rw,relatime ...\n"
398 msgid ""
399 "sh2#B< mount --make-rslave />; # Don\\[aq]t propagate mount events\n"
400 " # to other namespaces\n"
401 "sh2#B< umount /sys/fs/cgroup/freezer>;\n"
402 "sh2#B< mount -t cgroup -o freezer freezer /sys/fs/cgroup/freezer>;\n"
403 "sh2#B< cat /proc/self/mountinfo | grep freezer>;\n"
404 "155 145 0:32 / /sys/fs/cgroup/freezer rw,relatime ...\n"
405 msgstr ""
406 "sh2# B<mount --make-rslave /> # не распространять события монтирования\n"
407 " # в другие пространства имён\n"
408 "sh2# B<umount /sys/fs/cgroup/freezer>\n"
409 "sh2# B<mount -t cgroup -o freezer freezer /sys/fs/cgroup/freezer>\n"
410 "sh2# B<cat /proc/self/mountinfo | grep freezer>\n"
411 "155 145 0:32 / /sys/fs/cgroup/freezer rw,relatime ...\n"
412
413 #. type: SH
414 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
415 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
416 #, no-wrap
417 msgid "STANDARDS"
418 msgstr "СТАНДАРТЫ"
419
420 #. type: Plain text
421 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
422 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
423 msgid "Linux."
424 msgstr "Linux."
425
426 #. type: SH
427 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
428 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
429 #, no-wrap
430 msgid "NOTES"
431 msgstr "ПРИМЕЧАНИЯ"
432
433 #. type: Plain text
434 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
435 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
436 msgid ""
437 "Use of cgroup namespaces requires a kernel that is configured with the "
438 "B<CONFIG_CGROUPS> option."
439 msgstr ""
440 "Для использования пространств имён cgroup требуется, чтобы ядро было собрано "
441 "с параметром B<CONFIG_CGROUPS>."
442
443 #. type: Plain text
444 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
445 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
446 msgid ""
447 "The virtualization provided by cgroup namespaces serves a number of purposes:"
448 msgstr ""
449 "Виртуализация, предоставляемая пространствами имён cgroup, подходит для "
450 "решения нескольких задач:"
451
452 #. type: IP
453 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
454 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
455 #, no-wrap
456 msgid "\\[bu]"
457 msgstr "\\[bu]"
458
459 #. type: Plain text
460 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
461 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
462 msgid ""
463 "It prevents information leaks whereby cgroup directory paths outside of a "
464 "container would otherwise be visible to processes in the container. Such "
465 "leakages could, for example, reveal information about the container "
466 "framework to containerized applications."
467 msgstr ""
468 "Предотвращение утечек информации о путях каталогов cgroup за пределами "
469 "контейнера, иначе они были бы видимы процессам в контейнере. Такие утечки "
470 "могли, например, выдать информацию о платформе контейнера приложениям в "
471 "контейнере."
472
473 #. type: Plain text
474 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
475 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
476 msgid ""
477 "It eases tasks such as container migration. The virtualization provided by "
478 "cgroup namespaces allows containers to be isolated from knowledge of the "
479 "pathnames of ancestor cgroups. Without such isolation, the full cgroup "
480 "pathnames (displayed in I</proc/self/cgroups>) would need to be replicated "
481 "on the target system when migrating a container; those pathnames would also "
482 "need to be unique, so that they don't conflict with other pathnames on the "
483 "target system."
484 msgstr ""
485 "Облегчение задач по переносу контейнера. Виртуализация, предоставляемая "
486 "пространствами имён cgroup, позволяет контейнерам не знать информацию о "
487 "путях родительских cgroup. Без такой изоляции потребовалось бы воссоздавать "
488 "полные пути cgroup (показываемые в I</proc/self/cgroups>) в целевой системе "
489 "при переносе контейнера; также эти пути должны были быть уникальными, чтобы "
490 "они не пересекались с другими путями в целевой системе."
491
492 #. type: Plain text
493 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
494 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
495 msgid ""
496 "It allows better confinement of containerized processes, because it is "
497 "possible to mount the container's cgroup filesystems such that the container "
498 "processes can't gain access to ancestor cgroup directories. Consider, for "
499 "example, the following scenario:"
500 msgstr ""
501 "Обеспечивает лучшее разграничение контейнеризированных процессов, так как "
502 "возможно смонтировать файловые системы cgroup контейнера таким образом, что "
503 "процессы контейнера не смогут получить доступ к каталогам предка cgroup. "
504 "Рассмотрим, например, следующий сценарий:"
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 "We have a cgroup directory, I</cg/1>, that is owned by user ID 9000."
510 msgstr ""
511 "Есть каталог cgroup I</cg/1>, который принадлежит пользователю с ID 9000."
512
513 #. type: Plain text
514 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
515 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
516 msgid ""
517 "We have a process, I<X>, also owned by user ID 9000, that is namespaced "
518 "under the cgroup I</cg/1/2> (i.e., I<X> was placed in a new cgroup namespace "
519 "via B<clone>(2) or B<unshare>(2) with the B<CLONE_NEWCGROUP> flag)."
520 msgstr ""
521 "Есть процесс I<X>, который также принадлежит пользователю с ID 9000, он "
522 "находится в пространстве имён под I</cg/1/2> (т. е., I<X> помещён в новое "
523 "пространство имён cgroup посредством B<clone>(2) или B<unshare>(2) с флагом "
524 "B<CLONE_NEWCGROUP>)."
525
526 #. type: Plain text
527 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
528 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
529 #, fuzzy
530 #| msgid ""
531 #| "In the absence of cgroup namespacing, because the cgroup directory I</cg/"
532 #| "1> is owned (and writable) by UID 9000 and process I<X> is also owned by "
533 #| "user ID 9000, then process I<X> would be able to modify the contents of "
534 #| "cgroups files (i.e., change cgroup settings) not only in I</cg/1/2> but "
535 #| "also in the ancestor cgroup directory I</cg/1>. Namespacing process I<X> "
536 #| "under the cgroup directory I</cg/1/2>, in combination with suitable mount "
537 #| "operations for the cgroup filesystem (as shown above), prevents it "
538 #| "modifying files in I</cg/1>, since it cannot even see the contents of "
539 #| "that directory (or of further removed cgroup ancestor directories). "
540 #| "Combined with correct enforcement of hierarchical limits, this prevents "
541 #| "process I<X> from escaping the limits imposed by ancestor cgroups."
542 msgid ""
543 "In the absence of cgroup namespacing, because the cgroup directory I</cg/1> "
544 "is owned (and writable) by UID 9000 and process I<X> is also owned by user "
545 "ID 9000, process I<X> would be able to modify the contents of cgroups files "
546 "(i.e., change cgroup settings) not only in I</cg/1/2> but also in the "
547 "ancestor cgroup directory I</cg/1>. Namespacing process I<X> under the "
548 "cgroup directory I</cg/1/2>, in combination with suitable mount operations "
549 "for the cgroup filesystem (as shown above), prevents it modifying files in "
550 "I</cg/1>, since it cannot even see the contents of that directory (or of "
551 "further removed cgroup ancestor directories). Combined with correct "
552 "enforcement of hierarchical limits, this prevents process I<X> from escaping "
553 "the limits imposed by ancestor cgroups."
554 msgstr ""
555 "Если нет пространств имён cgroup, а каталог cgroup I</cg/1> принадлежит (и "
556 "доступен на запись) UID 9000 и процесс I<X> также принадлежит пользователю с "
557 "ID 9000, процесс I<X> может изменять содержимое файлов cgroups (т. е., "
558 "изменять настройки cgroup) не только в I</cg/1/2>, но и в родительском "
559 "каталоге cgroup I</cg/1>. Выделение для процесса I<X> пространства имён в "
560 "каталоге cgroup I</cg/1/2>, в комбинации с нужными операциями монтирования "
561 "файловой системы cgroup (как показано выше) не даёт изменять файлы в I</cg/"
562 "1>, так как невозможно увидеть содержимое этого каталога (или, в дальнейшем, "
563 "удалить каталоге родительского cgroup). В сочетании с правильным "
564 "обеспечением иерархических ограничений это не позволяет процессу I<X> обойти "
565 "ограничения, накладываемые родительскими cgroups."
566
567 #. type: SH
568 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
569 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
570 #, no-wrap
571 msgid "SEE ALSO"
572 msgstr "СМОТРИТЕ ТАКЖЕ"
573
574 #. type: Plain text
575 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
576 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
577 msgid ""
578 "B<unshare>(1), B<clone>(2), B<setns>(2), B<unshare>(2), B<proc>(5), "
579 "B<cgroups>(7), B<credentials>(7), B<namespaces>(7), B<user_namespaces>(7)"
580 msgstr ""
581 "B<unshare>(1), B<clone>(2), B<setns>(2), B<unshare>(2), B<proc>(5), "
582 "B<cgroups>(7), B<credentials>(7), B<namespaces>(7), B<user_namespaces>(7)"
583
584 #. type: TH
585 #: debian-trixie fedora-44 fedora-rawhide
586 #, no-wrap
587 msgid "2024-05-02"
588 msgstr "2 мая 2024 г."
589
590 #. type: TH
591 #: debian-trixie
592 #, no-wrap
593 msgid "Linux man-pages 6.9.1"
594 msgstr "Страницы руководства Linux 6.9.1"
595
596 #. type: Plain text
597 #: debian-trixie fedora-44 fedora-rawhide
598 #, no-wrap
599 msgid ""
600 "# B<mkdir -p /sys/fs/cgroup/freezer/sub2>\n"
601 "# B<sleep 10000 &> # Create a process that lives for a while\n"
602 "[1] 20124\n"
603 "# B<echo 20124 E<gt> /sys/fs/cgroup/freezer/sub2/cgroup.procs>\n"
604 msgstr ""
605 "# B<mkdir -p /sys/fs/cgroup/freezer/sub2>\n"
606 "# B<sleep 10000 &> # создать процесс, который живёт какое-то время\n"
607 "[1] 20124\n"
608 "# B<echo 20124 E<gt> /sys/fs/cgroup/freezer/sub2/cgroup.procs>\n"
609
610 #. type: Plain text
611 #: debian-trixie fedora-44 fedora-rawhide
612 #, no-wrap
613 msgid ""
614 "# B<mkdir -p /sys/fs/cgroup/freezer/sub>\n"
615 "# B<echo $$> # Show PID of this shell\n"
616 "30655\n"
617 "# B<echo 30655 E<gt> /sys/fs/cgroup/freezer/sub/cgroup.procs>\n"
618 "# B<cat /proc/self/cgroup | grep freezer>\n"
619 "7:freezer:/sub\n"
620 msgstr ""
621 "# B<mkdir -p /sys/fs/cgroup/freezer/sub>\n"
622 "# B<echo $$> # выводим PID этой оболочки\n"
623 "30655\n"
624 "# B<echo 30655 E<gt> /sys/fs/cgroup/freezer/sub/cgroup.procs>\n"
625 "# B<cat /proc/self/cgroup | grep freezer>\n"
626 "7:freezer:/sub\n"
627
628 #. type: Plain text
629 #: debian-trixie fedora-44 fedora-rawhide
630 #, no-wrap
631 msgid "# B<PS1=\"sh2# \" unshare -Cm bash>\n"
632 msgstr "# B<PS1=\"sh2# \" unshare -Cm bash>\n"
633
634 #. type: Plain text
635 #: debian-trixie fedora-44 fedora-rawhide
636 #, no-wrap
637 msgid ""
638 "sh2# B<cat /proc/self/cgroup | grep freezer>\n"
639 "7:freezer:/\n"
640 "sh2# B<cat /proc/1/cgroup | grep freezer>\n"
641 "7:freezer:/..\n"
642 "sh2# B<cat /proc/20124/cgroup | grep freezer>\n"
643 "7:freezer:/../sub2\n"
644 msgstr ""
645 "sh2# B<cat /proc/self/cgroup | grep freezer>\n"
646 "7:freezer:/\n"
647 "sh2# B<cat /proc/1/cgroup | grep freezer>\n"
648 "7:freezer:/..\n"
649 "sh2# B<cat /proc/20124/cgroup | grep freezer>\n"
650 "7:freezer:/../sub2\n"
651
652 #. type: Plain text
653 #: debian-trixie fedora-44 fedora-rawhide
654 #, no-wrap
655 msgid ""
656 "sh2# B<cat /proc/self/mountinfo | grep freezer>\n"
657 "155 145 0:32 /.. /sys/fs/cgroup/freezer ...\n"
658 msgstr ""
659 "sh2# B<cat /proc/self/mountinfo | grep freezer>\n"
660 "155 145 0:32 /.. /sys/fs/cgroup/freezer ...\n"
661
662 #. type: Plain text
663 #: debian-trixie fedora-44 fedora-rawhide
664 #, fuzzy, no-wrap
665 #| msgid ""
666 #| "sh2# B<mount --make-rslave /> # Don't propagate mount events\n"
667 #| " # to other namespaces\n"
668 #| "sh2# B<umount /sys/fs/cgroup/freezer>\n"
669 #| "sh2# B<mount -t cgroup -o freezer freezer /sys/fs/cgroup/freezer>\n"
670 #| "sh2# B<cat /proc/self/mountinfo | grep freezer>\n"
671 #| "155 145 0:32 / /sys/fs/cgroup/freezer rw,relatime ...\n"
672 msgid ""
673 "sh2# B<mount --make-rslave /> # Don\\[aq]t propagate mount events\n"
674 " # to other namespaces\n"
675 "sh2# B<umount /sys/fs/cgroup/freezer>\n"
676 "sh2# B<mount -t cgroup -o freezer freezer /sys/fs/cgroup/freezer>\n"
677 "sh2# B<cat /proc/self/mountinfo | grep freezer>\n"
678 "155 145 0:32 / /sys/fs/cgroup/freezer rw,relatime ...\n"
679 msgstr ""
680 "sh2# B<mount --make-rslave /> # не распространять события монтирования\n"
681 " # в другие пространства имён\n"
682 "sh2# B<umount /sys/fs/cgroup/freezer>\n"
683 "sh2# B<mount -t cgroup -o freezer freezer /sys/fs/cgroup/freezer>\n"
684 "sh2# B<cat /proc/self/mountinfo | grep freezer>\n"
685 "155 145 0:32 / /sys/fs/cgroup/freezer rw,relatime ...\n"
686
687 #. type: TH
688 #: fedora-44 fedora-rawhide
689 #, no-wrap
690 msgid "Linux man-pages 6.13"
691 msgstr "Страницы руководства Linux 6.13"
692
693 #. type: TH
694 #: mageia-cauldron
695 #, no-wrap
696 msgid "Linux man-pages 6.17"
697 msgstr "Страницы руководства Linux 6.17"
698
699 #. type: TH
700 #: opensuse-leap-16-1 opensuse-tumbleweed
701 #, no-wrap
702 msgid "Linux man-pages (unreleased)"
703 msgstr "Страницы руководства Linux (не выпущены)"