Debian Codegraph @

po/es/man7/cgroup_namespaces.7.po

raw
1 # Spanish translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 msgid ""
5 msgstr ""
6 "Project-Id-Version: manpages-l10n 4.11.0\n"
7 "POT-Creation-Date: 2026-06-05 06:20+0200\n"
8 "PO-Revision-Date: 2021-09-03 21:22+0200\n"
9 "Last-Translator: Automatically generated\n"
10 "Language-Team: Spanish <[email protected]>\n"
11 "Language: es\n"
12 "MIME-Version: 1.0\n"
13 "Content-Type: text/plain; charset=UTF-8\n"
14 "Content-Transfer-Encoding: 8bit\n"
15 "Plural-Forms: nplurals=2; plural=(n != 1);\n"
16
17 #. type: TH
18 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
19 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
20 #, no-wrap
21 msgid "cgroup_namespaces"
22 msgstr ""
23
24 #. type: TH
25 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
26 #: opensuse-tumbleweed
27 #, no-wrap
28 msgid "2026-02-08"
29 msgstr "8 Febrero 2026"
30
31 #. type: TH
32 #: archlinux debian-unstable
33 #, fuzzy, no-wrap
34 #| msgid "Linux man-pages 6.17"
35 msgid "Linux man-pages 6.18"
36 msgstr "Páginas de Manual de Linux 6.17"
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 "NOMBRE"
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 "cgroup_namespaces - overview of Linux cgroup namespaces"
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 "DESCRIPCIÓN"
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 "For an overview of namespaces, see B<namespaces>(7)."
62 msgstr ""
63
64 #. type: Plain text
65 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
66 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
67 msgid ""
68 "Cgroup namespaces virtualize the view of a process's cgroups (see "
69 "B<cgroups>(7)) as seen via I</proc/>pidI</cgroup> and I</proc/>pidI</"
70 "mountinfo>."
71 msgstr ""
72
73 #. type: Plain text
74 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
75 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
76 msgid ""
77 "Each cgroup namespace has its own set of cgroup root directories. These "
78 "root directories are the base points for the relative locations displayed in "
79 "the corresponding records in the I</proc/>pidI</cgroup> file. When a "
80 "process creates a new cgroup namespace using B<clone>(2) or B<unshare>(2) "
81 "with the B<CLONE_NEWCGROUP> flag, its current cgroups directories become the "
82 "cgroup root directories of the new namespace. (This applies both for the "
83 "cgroups version 1 hierarchies and the cgroups version 2 unified hierarchy.)"
84 msgstr ""
85
86 #. type: Plain text
87 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
88 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
89 msgid ""
90 "When reading the cgroup memberships of a \"target\" process from I</proc/"
91 ">pidI</cgroup>, the pathname shown in the third field of each record will be "
92 "relative to the reading process's root directory for the corresponding "
93 "cgroup hierarchy. If the cgroup directory of the target process lies "
94 "outside the root directory of the reading process's cgroup namespace, then "
95 "the pathname will show I<../> entries for each ancestor level in the cgroup "
96 "hierarchy."
97 msgstr ""
98
99 #. type: Plain text
100 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
101 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
102 msgid ""
103 "The following shell session demonstrates the effect of creating a new cgroup "
104 "namespace."
105 msgstr ""
106
107 #. type: Plain text
108 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
109 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
110 msgid ""
111 "First, (as superuser) in a shell in the initial cgroup namespace, we create "
112 "a child cgroup in the I<freezer> hierarchy, and place a process in that "
113 "cgroup that we will use as part of the demonstration below:"
114 msgstr ""
115
116 #. type: Plain text
117 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
118 #: opensuse-tumbleweed
119 #, no-wrap
120 msgid ""
121 "#B< mkdir -p /sys/fs/cgroup/freezer/sub2>;\n"
122 "#B< sleep 10000 &> # Create a process that lives for a while\n"
123 "[1] 20124\n"
124 "#B< echo 20124 E<gt> /sys/fs/cgroup/freezer/sub2/cgroup.procs>;\n"
125 msgstr ""
126
127 #. type: Plain text
128 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
129 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
130 msgid ""
131 "We then create another child cgroup in the I<freezer> hierarchy and put the "
132 "shell into that cgroup:"
133 msgstr ""
134
135 #. type: Plain text
136 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
137 #: opensuse-tumbleweed
138 #, no-wrap
139 msgid ""
140 "#B< mkdir -p /sys/fs/cgroup/freezer/sub>;\n"
141 "#B< echo $$>; # Show PID of this shell\n"
142 "30655\n"
143 "#B< echo 30655 E<gt> /sys/fs/cgroup/freezer/sub/cgroup.procs>;\n"
144 "#B< cat /proc/self/cgroup | grep freezer>;\n"
145 "7:freezer:/sub\n"
146 msgstr ""
147
148 #. type: Plain text
149 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
150 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
151 msgid ""
152 "Next, we use B<unshare>(1) to create a process running a new shell in new "
153 "cgroup and mount namespaces:"
154 msgstr ""
155
156 #. type: Plain text
157 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
158 #: opensuse-tumbleweed
159 #, no-wrap
160 msgid "#B< PS1='sh2# ' unshare -Cm bash>;\n"
161 msgstr ""
162
163 #. type: Plain text
164 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
165 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
166 msgid ""
167 "From the new shell started by B<unshare>(1), we then inspect the I</proc/"
168 ">pidI</cgroup> files of, respectively, the new shell, a process that is in "
169 "the initial cgroup namespace (I<init>, with PID 1), and the process in the "
170 "sibling cgroup (I<sub2>):"
171 msgstr ""
172
173 #. type: Plain text
174 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
175 #: opensuse-tumbleweed
176 #, no-wrap
177 msgid ""
178 "sh2#B< cat /proc/self/cgroup | grep freezer>;\n"
179 "7:freezer:/\n"
180 "sh2#B< cat /proc/1/cgroup | grep freezer>;\n"
181 "7:freezer:/..\n"
182 "sh2#B< cat /proc/20124/cgroup | grep freezer>;\n"
183 "7:freezer:/../sub2\n"
184 msgstr ""
185
186 #. type: Plain text
187 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
188 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
189 msgid ""
190 "From the output of the first command, we see that the freezer cgroup "
191 "membership of the new shell (which is in the same cgroup as the initial "
192 "shell) is shown defined relative to the freezer cgroup root directory that "
193 "was established when the new cgroup namespace was created. (In absolute "
194 "terms, the new shell is in the I</sub> freezer cgroup, and the root "
195 "directory of the freezer cgroup hierarchy in the new cgroup namespace is "
196 "also I</sub>. Thus, the new shell's cgroup membership is displayed as \\"
197 "[aq]/\\[aq].)"
198 msgstr ""
199
200 #. type: Plain text
201 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
202 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
203 msgid ""
204 "However, when we look in I</proc/self/mountinfo> we see the following "
205 "anomaly:"
206 msgstr ""
207
208 #. type: Plain text
209 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
210 #: opensuse-tumbleweed
211 #, no-wrap
212 msgid ""
213 "sh2#B< cat /proc/self/mountinfo | grep freezer>;\n"
214 "155 145 0:32 /..\\& /sys/fs/cgroup/freezer ...\n"
215 msgstr ""
216
217 #. type: Plain text
218 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
219 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
220 msgid ""
221 "The fourth field of this line (I</..>) should show the directory in the "
222 "cgroup filesystem which forms the root of this mount. Since by the "
223 "definition of cgroup namespaces, the process's current freezer cgroup "
224 "directory became its root freezer cgroup directory, we should see \\[aq]/\\"
225 "[aq] in this field. The problem here is that we are seeing a mount entry "
226 "for the cgroup filesystem corresponding to the initial cgroup namespace "
227 "(whose cgroup filesystem is indeed rooted at the parent directory of "
228 "I<sub>). To fix this problem, we must remount the freezer cgroup filesystem "
229 "from the new shell (i.e., perform the mount from a process that is in the "
230 "new cgroup namespace), after which we see the expected results:"
231 msgstr ""
232
233 #. type: Plain text
234 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
235 #: opensuse-tumbleweed
236 #, no-wrap
237 msgid ""
238 "sh2#B< mount --make-rslave />; # Don\\[aq]t propagate mount events\n"
239 " # to other namespaces\n"
240 "sh2#B< umount /sys/fs/cgroup/freezer>;\n"
241 "sh2#B< mount -t cgroup -o freezer freezer /sys/fs/cgroup/freezer>;\n"
242 "sh2#B< cat /proc/self/mountinfo | grep freezer>;\n"
243 "155 145 0:32 / /sys/fs/cgroup/freezer rw,relatime ...\n"
244 msgstr ""
245
246 #. type: SH
247 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
248 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
249 #, no-wrap
250 msgid "STANDARDS"
251 msgstr "ESTÁNDARES"
252
253 #. type: Plain text
254 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
255 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
256 msgid "Linux."
257 msgstr "Linux."
258
259 #. type: SH
260 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
261 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
262 #, no-wrap
263 msgid "NOTES"
264 msgstr "NOTAS"
265
266 #. type: Plain text
267 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
268 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
269 msgid ""
270 "Use of cgroup namespaces requires a kernel that is configured with the "
271 "B<CONFIG_CGROUPS> option."
272 msgstr ""
273
274 #. type: Plain text
275 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
276 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
277 msgid ""
278 "The virtualization provided by cgroup namespaces serves a number of purposes:"
279 msgstr ""
280
281 #. type: IP
282 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
283 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
284 #, no-wrap
285 msgid "\\[bu]"
286 msgstr "\\[bu]"
287
288 #. type: Plain text
289 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
290 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
291 msgid ""
292 "It prevents information leaks whereby cgroup directory paths outside of a "
293 "container would otherwise be visible to processes in the container. Such "
294 "leakages could, for example, reveal information about the container "
295 "framework to containerized applications."
296 msgstr ""
297
298 #. type: Plain text
299 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
300 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
301 msgid ""
302 "It eases tasks such as container migration. The virtualization provided by "
303 "cgroup namespaces allows containers to be isolated from knowledge of the "
304 "pathnames of ancestor cgroups. Without such isolation, the full cgroup "
305 "pathnames (displayed in I</proc/self/cgroups>) would need to be replicated "
306 "on the target system when migrating a container; those pathnames would also "
307 "need to be unique, so that they don't conflict with other pathnames on the "
308 "target system."
309 msgstr ""
310
311 #. type: Plain text
312 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
313 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
314 msgid ""
315 "It allows better confinement of containerized processes, because it is "
316 "possible to mount the container's cgroup filesystems such that the container "
317 "processes can't gain access to ancestor cgroup directories. Consider, for "
318 "example, the following scenario:"
319 msgstr ""
320
321 #. type: Plain text
322 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
323 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
324 msgid "We have a cgroup directory, I</cg/1>, that is owned by user ID 9000."
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 "We have a process, I<X>, also owned by user ID 9000, that is namespaced "
332 "under the cgroup I</cg/1/2> (i.e., I<X> was placed in a new cgroup namespace "
333 "via B<clone>(2) or B<unshare>(2) with the B<CLONE_NEWCGROUP> flag)."
334 msgstr ""
335
336 #. type: Plain text
337 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
338 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
339 msgid ""
340 "In the absence of cgroup namespacing, because the cgroup directory I</cg/1> "
341 "is owned (and writable) by UID 9000 and process I<X> is also owned by user "
342 "ID 9000, process I<X> would be able to modify the contents of cgroups files "
343 "(i.e., change cgroup settings) not only in I</cg/1/2> but also in the "
344 "ancestor cgroup directory I</cg/1>. Namespacing process I<X> under the "
345 "cgroup directory I</cg/1/2>, in combination with suitable mount operations "
346 "for the cgroup filesystem (as shown above), prevents it modifying files in "
347 "I</cg/1>, since it cannot even see the contents of that directory (or of "
348 "further removed cgroup ancestor directories). Combined with correct "
349 "enforcement of hierarchical limits, this prevents process I<X> from escaping "
350 "the limits imposed by ancestor cgroups."
351 msgstr ""
352
353 #. type: SH
354 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
355 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
356 #, no-wrap
357 msgid "SEE ALSO"
358 msgstr "VÉASE TAMBIÉN"
359
360 #. type: Plain text
361 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
362 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
363 msgid ""
364 "B<unshare>(1), B<clone>(2), B<setns>(2), B<unshare>(2), B<proc>(5), "
365 "B<cgroups>(7), B<credentials>(7), B<namespaces>(7), B<user_namespaces>(7)"
366 msgstr ""
367
368 #. type: TH
369 #: debian-trixie fedora-44 fedora-rawhide
370 #, no-wrap
371 msgid "2024-05-02"
372 msgstr "2 Mayo 2024"
373
374 #. type: TH
375 #: debian-trixie
376 #, no-wrap
377 msgid "Linux man-pages 6.9.1"
378 msgstr "Páginas de Manual de Linux 6.9.1"
379
380 #. type: Plain text
381 #: debian-trixie fedora-44 fedora-rawhide
382 #, no-wrap
383 msgid ""
384 "# B<mkdir -p /sys/fs/cgroup/freezer/sub2>\n"
385 "# B<sleep 10000 &> # Create a process that lives for a while\n"
386 "[1] 20124\n"
387 "# B<echo 20124 E<gt> /sys/fs/cgroup/freezer/sub2/cgroup.procs>\n"
388 msgstr ""
389
390 #. type: Plain text
391 #: debian-trixie fedora-44 fedora-rawhide
392 #, no-wrap
393 msgid ""
394 "# B<mkdir -p /sys/fs/cgroup/freezer/sub>\n"
395 "# B<echo $$> # Show PID of this shell\n"
396 "30655\n"
397 "# B<echo 30655 E<gt> /sys/fs/cgroup/freezer/sub/cgroup.procs>\n"
398 "# B<cat /proc/self/cgroup | grep freezer>\n"
399 "7:freezer:/sub\n"
400 msgstr ""
401
402 #. type: Plain text
403 #: debian-trixie fedora-44 fedora-rawhide
404 #, no-wrap
405 msgid "# B<PS1=\"sh2# \" unshare -Cm bash>\n"
406 msgstr ""
407
408 #. type: Plain text
409 #: debian-trixie fedora-44 fedora-rawhide
410 #, no-wrap
411 msgid ""
412 "sh2# B<cat /proc/self/cgroup | grep freezer>\n"
413 "7:freezer:/\n"
414 "sh2# B<cat /proc/1/cgroup | grep freezer>\n"
415 "7:freezer:/..\n"
416 "sh2# B<cat /proc/20124/cgroup | grep freezer>\n"
417 "7:freezer:/../sub2\n"
418 msgstr ""
419
420 #. type: Plain text
421 #: debian-trixie fedora-44 fedora-rawhide
422 #, no-wrap
423 msgid ""
424 "sh2# B<cat /proc/self/mountinfo | grep freezer>\n"
425 "155 145 0:32 /.. /sys/fs/cgroup/freezer ...\n"
426 msgstr ""
427
428 #. type: Plain text
429 #: debian-trixie fedora-44 fedora-rawhide
430 #, no-wrap
431 msgid ""
432 "sh2# B<mount --make-rslave /> # Don\\[aq]t propagate mount events\n"
433 " # to other namespaces\n"
434 "sh2# B<umount /sys/fs/cgroup/freezer>\n"
435 "sh2# B<mount -t cgroup -o freezer freezer /sys/fs/cgroup/freezer>\n"
436 "sh2# B<cat /proc/self/mountinfo | grep freezer>\n"
437 "155 145 0:32 / /sys/fs/cgroup/freezer rw,relatime ...\n"
438 msgstr ""
439
440 #. type: TH
441 #: fedora-44 fedora-rawhide
442 #, no-wrap
443 msgid "Linux man-pages 6.13"
444 msgstr "Páginas de Manual de Linux 6.13"
445
446 #. type: TH
447 #: mageia-cauldron
448 #, no-wrap
449 msgid "Linux man-pages 6.17"
450 msgstr "Páginas de Manual de Linux 6.17"
451
452 #. type: TH
453 #: opensuse-leap-16-1 opensuse-tumbleweed
454 #, no-wrap
455 msgid "Linux man-pages (unreleased)"
456 msgstr "Páginas de Manual de Linux (no publicadas)"