Debian Codegraph @

po/ru/man2/setns.2.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 # Alexander Golubev <[email protected]>, 2018.
5 # Azamat Hackimov <[email protected]>, 2011, 2014-2016.
6 # Hotellook, 2014.
7 # Nikita <[email protected]>, 2014.
8 # Spiros Georgaras <[email protected]>, 2016.
9 # Vladislav <[email protected]>, 2015.
10 # Yuri Kozlov <[email protected]>, 2011-2019.
11 # Иван Павлов <[email protected]>, 2017.
12 msgid ""
13 msgstr ""
14 "Project-Id-Version: manpages-l10n\n"
15 "POT-Creation-Date: 2026-06-05 06:43+0200\n"
16 "PO-Revision-Date: 2024-12-21 19:49+0300\n"
17 "Last-Translator: Yuri Kozlov <[email protected]>\n"
18 "Language-Team: Russian <[email protected]>\n"
19 "Language: ru\n"
20 "MIME-Version: 1.0\n"
21 "Content-Type: text/plain; charset=UTF-8\n"
22 "Content-Transfer-Encoding: 8bit\n"
23 "Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
24 "n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || "
25 "(n%100>=11 && n%100<=14)? 2 : 3);\n"
26 "X-Generator: Lokalize 2.0\n"
27
28 #. type: TH
29 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
30 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
31 #, no-wrap
32 msgid "setns"
33 msgstr "setns"
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 "setns - reassociate thread with a namespace"
60 msgstr "setns - повторно связывает нить с пространством имён"
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 "LIBRARY"
67 msgstr "БИБЛИОТЕКА"
68
69 #. type: Plain text
70 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
71 #: opensuse-leap-16-1 opensuse-tumbleweed
72 msgid "Standard C library (I<libc>,\\ I<-lc>)"
73 msgstr "Стандартная библиотека языка C (I<libc>,\\ I<-lc>)"
74
75 #. type: SH
76 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
77 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
78 #, no-wrap
79 msgid "SYNOPSIS"
80 msgstr "СИНТАКСИС"
81
82 #. type: Plain text
83 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
84 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
85 #, no-wrap
86 msgid ""
87 "B<#define _GNU_SOURCE> /* See feature_test_macros(7) */\n"
88 "B<#include E<lt>sched.hE<gt>>\n"
89 msgstr ""
90 "B<#define _GNU_SOURCE> /* Смотрите feature_test_macros(7) */\n"
91 "B<#include E<lt>sched.hE<gt>>\n"
92
93 #. type: Plain text
94 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
95 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
96 #, no-wrap
97 msgid "B<int setns(int >I<fd>B<, int >I<nstype>B<);>\n"
98 msgstr "B<int setns(int >I<fd>B<, int >I<nstype>B<);>\n"
99
100 #. type: SH
101 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
102 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
103 #, no-wrap
104 msgid "DESCRIPTION"
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 #, fuzzy
111 #| msgid ""
112 #| "The B<setvbuf>() function may be used on any open stream to change its "
113 #| "buffer. The I<mode> argument must be one of the following three macros:"
114 msgid ""
115 "The B<setns>() system call allows the calling thread to move into different "
116 "namespaces. The I<fd> argument is one of the following:"
117 msgstr ""
118 "Функция B<setvbuf>() может быть использована для изменения типа буферизации "
119 "любого открытого потока. Параметр I<mode> должен быть одним из трёх "
120 "следующих макросов:"
121
122 #. type: IP
123 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
124 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
125 #, no-wrap
126 msgid "\\[bu]"
127 msgstr "\\[bu]"
128
129 #. type: Plain text
130 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
131 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
132 msgid ""
133 "a file descriptor referring to one of the magic links in a I</proc/>pidI</ns/"
134 "> directory (or a bind mount to such a link);"
135 msgstr ""
136
137 #. type: Plain text
138 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
139 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
140 #, fuzzy
141 #| msgid "Invalid file descriptor I<fd>."
142 msgid "a PID file descriptor (see B<pidfd_open>(2))."
143 msgstr "Неверный файловый дескриптор I<fd>."
144
145 #. type: Plain text
146 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
147 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
148 msgid "The I<nstype> argument is interpreted differently in each case."
149 msgstr ""
150
151 #. type: SS
152 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
153 #: opensuse-tumbleweed
154 #, no-wrap
155 msgid "fd refers to a \\f[I]/proc/\\fBpid\\f[I]/ns/\\fB link"
156 msgstr ""
157
158 #. type: Plain text
159 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
160 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
161 msgid ""
162 "If I<fd> refers to a I</proc/>pidI</ns/> link, then B<setns>() reassociates "
163 "the calling thread with the namespace associated with that link, subject to "
164 "any constraints imposed by the I<nstype> argument. In this usage, each call "
165 "to B<setns>() changes just one of the caller's namespace memberships."
166 msgstr ""
167
168 #. type: Plain text
169 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
170 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
171 msgid ""
172 "The I<nstype> argument specifies which type of namespace the calling thread "
173 "may be reassociated with. This argument can have I<one> of the following "
174 "values:"
175 msgstr ""
176 "В аргументе I<nstype> указывается тип пространства имён, с которым "
177 "вызывающая нить может быть повторно связана. Данный аргумент может иметь "
178 "I<одно> из следующих значений:"
179
180 #. type: TP
181 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
182 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
183 #, no-wrap
184 msgid "B<0>"
185 msgstr "B<0>"
186
187 #. type: Plain text
188 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
189 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
190 msgid "Allow any type of namespace to be joined."
191 msgstr "Разрешить подключиться к пространству имён любого типа."
192
193 #. type: TP
194 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
195 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
196 #, no-wrap
197 msgid "B<CLONE_NEWCGROUP> (since Linux 4.6)"
198 msgstr "B<CLONE_NEWCGROUP> (начиная с Linux 4.6)"
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 "I<fd> must refer to a cgroup namespace."
204 msgstr "Значение I<fd> должно указывать на пространство имён cgroup."
205
206 #. type: TP
207 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
208 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
209 #, no-wrap
210 msgid "B<CLONE_NEWIPC> (since Linux 3.0)"
211 msgstr "B<CLONE_NEWIPC> (начиная с Linux 3.0)"
212
213 #. type: Plain text
214 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
215 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
216 msgid "I<fd> must refer to an IPC namespace."
217 msgstr "Значение I<fd> должно указывать на пространство имён IPC."
218
219 #. type: TP
220 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
221 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
222 #, no-wrap
223 msgid "B<CLONE_NEWNET> (since Linux 3.0)"
224 msgstr "B<CLONE_NEWNET> (начиная с Linux 3.0)"
225
226 #. type: Plain text
227 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
228 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
229 msgid "I<fd> must refer to a network namespace."
230 msgstr "Значение I<fd> должно указывать на пространство имён network."
231
232 #. type: TP
233 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
234 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
235 #, no-wrap
236 msgid "B<CLONE_NEWNS> (since Linux 3.8)"
237 msgstr "B<CLONE_NEWNS> (начиная с Linux 3.8)"
238
239 #. type: Plain text
240 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
241 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
242 msgid "I<fd> must refer to a mount namespace."
243 msgstr "Значение I<fd> должно указывать на пространство имён mount."
244
245 #. type: TP
246 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
247 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
248 #, no-wrap
249 msgid "B<CLONE_NEWPID> (since Linux 3.8)"
250 msgstr "B<CLONE_NEWPID> (начиная с Linux 3.8)"
251
252 #. type: Plain text
253 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
254 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
255 msgid "I<fd> must refer to a descendant PID namespace."
256 msgstr "Значение I<fd> должно указывать на пространство имён PID потомков."
257
258 #. type: TP
259 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
260 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
261 #, no-wrap
262 msgid "B<CLONE_NEWTIME> (since Linux 5.8)"
263 msgstr "B<CLONE_NEWTIME> (начиная с Linux 5.8)"
264
265 #. commit 76c12881a38aaa83e1eb4ce2fada36c3a732bad4
266 #. type: Plain text
267 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
268 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
269 #, fuzzy
270 #| msgid "I<fd> must refer to a user namespace."
271 msgid "I<fd> must refer to a time namespace."
272 msgstr "Значение I<fd> должно указывать на пространство имён user."
273
274 #. type: TP
275 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
276 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
277 #, no-wrap
278 msgid "B<CLONE_NEWUSER> (since Linux 3.8)"
279 msgstr "B<CLONE_NEWUSER> (начиная с Linux 3.8)"
280
281 #. type: Plain text
282 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
283 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
284 msgid "I<fd> must refer to a user namespace."
285 msgstr "Значение I<fd> должно указывать на пространство имён user."
286
287 #. type: TP
288 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
289 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
290 #, no-wrap
291 msgid "B<CLONE_NEWUTS> (since Linux 3.0)"
292 msgstr "B<CLONE_NEWUTS> (начиная с Linux 3.0)"
293
294 #. type: Plain text
295 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
296 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
297 msgid "I<fd> must refer to a UTS namespace."
298 msgstr "Значение I<fd> должно указывать на пространство имён UTS."
299
300 #. type: Plain text
301 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
302 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
303 msgid ""
304 "Specifying I<nstype> as 0 suffices if the caller knows (or does not care) "
305 "what type of namespace is referred to by I<fd>. Specifying a nonzero value "
306 "for I<nstype> is useful if the caller does not know what type of namespace "
307 "is referred to by I<fd> and wants to ensure that the namespace is of a "
308 "particular type. (The caller might not know the type of the namespace "
309 "referred to by I<fd> if the file descriptor was opened by another process "
310 "and, for example, passed to the caller via a UNIX domain socket.)"
311 msgstr ""
312 "Установка I<nstype> в 0 имеет смысл только, если вызывающий знает (или ему "
313 "не важно) на какой тип пространства имён ссылается I<fd>. Назначение "
314 "ненулевого значения в I<nstype> полезно, если вызывающий не знает на какой "
315 "тип пространства имён ссылается I<fd>. и хочет быть уверенным, что "
316 "пространство имён именно нужного типа (вызывающий может не знать тип "
317 "пространства имён на который указывает I<fd>, если файловый дескриптор был "
318 "открыт другим процессом и, например, передан вызывающему через доменный "
319 "сокет UNIX)."
320
321 #. type: SS
322 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
323 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
324 #, fuzzy, no-wrap
325 #| msgid "I<fd> is not a valid file descriptor."
326 msgid "fd is a PID file descriptor"
327 msgstr "Значение I<fd> не является правильным файловым дескриптором."
328
329 #. type: Plain text
330 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
331 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
332 msgid ""
333 "Since Linux 5.8, I<fd> may refer to a PID file descriptor obtained from "
334 "B<pidfd_open>(2) or B<clone>(2). In this usage, B<setns>() atomically "
335 "moves the calling thread into one or more of the same namespaces as the "
336 "thread referred to by I<fd>."
337 msgstr ""
338
339 #. type: Plain text
340 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
341 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
342 msgid ""
343 "The I<nstype> argument is a bit mask specified by ORing together I<one or "
344 "more> of the B<CLONE_NEW*> namespace constants listed above. The caller is "
345 "moved into each of the target thread's namespaces that is specified in "
346 "I<nstype>; the caller's memberships in the remaining namespaces are left "
347 "unchanged."
348 msgstr ""
349
350 #. type: Plain text
351 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
352 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
353 msgid ""
354 "For example, the following code would move the caller into the same user, "
355 "network, and UTS namespaces as PID 1234, but would leave the caller's other "
356 "namespace memberships unchanged:"
357 msgstr ""
358
359 #. type: Plain text
360 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
361 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
362 #, no-wrap
363 msgid ""
364 "int fd = pidfd_open(1234, 0);\n"
365 "setns(fd, CLONE_NEWUSER | CLONE_NEWNET | CLONE_NEWUTS);\n"
366 msgstr ""
367 "int fd = pidfd_open(1234, 0);\n"
368 "setns(fd, CLONE_NEWUSER | CLONE_NEWNET | CLONE_NEWUTS);\n"
369
370 #. type: SS
371 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
372 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
373 #, no-wrap
374 msgid "Details for specific namespace types"
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 ""
381 "Note the following details and restrictions when reassociating with specific "
382 "namespace types:"
383 msgstr ""
384 "Некоторые примечания и ограничения при пересопряжении с некоторыми типами "
385 "пространств имён:"
386
387 #. type: TP
388 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
389 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
390 #, no-wrap
391 msgid "User namespaces"
392 msgstr "Пользовательские пространства имён"
393
394 #. See kernel/user_namespace.c:userns_install() [3.8 source]
395 #. type: Plain text
396 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
397 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
398 msgid ""
399 "A process reassociating itself with a user namespace must have the "
400 "B<CAP_SYS_ADMIN> capability in the target user namespace. (This necessarily "
401 "implies that it is only possible to join a descendant user namespace.) Upon "
402 "successfully joining a user namespace, a process is granted all capabilities "
403 "in that namespace, regardless of its user and group IDs."
404 msgstr ""
405 "Для пересопряжения процесса с пространством имён пользователя он должен "
406 "иметь мандат B<CAP_SYS_ADMIN> в назначаемом пространстве имён пользователя "
407 "(эта необходимость подразумевает, что возможно присоединение только "
408 "дочернего пространства имён пользователя). При успешном присоединении к "
409 "пространству имён пользователя процесс получает все мандаты в этом "
410 "пространстве имён, независимо от своего ID пользователя и группы."
411
412 #. type: Plain text
413 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
414 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
415 msgid "A multithreaded process may not change user namespace with B<setns>()."
416 msgstr ""
417 "Многонитевой процесс не может изменить пространство имён пользователя с "
418 "помощью B<setns>()."
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 ""
424 "It is not permitted to use B<setns>() to reenter the caller's current user "
425 "namespace. This prevents a caller that has dropped capabilities from "
426 "regaining those capabilities via a call to B<setns>()."
427 msgstr ""
428 "Запрещается использовать B<setns>() для повторного вхождения вызывающего в "
429 "текущее пространство имён пользователя. Это не позволяет вызывающему, "
430 "оставшемуся без мандатов, повторно получить их через вызов B<setns>()."
431
432 #. commit e66eded8309ebf679d3d3c1f5820d1f2ca332c71
433 #. https://lwn.net/Articles/543273/
434 #. type: Plain text
435 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
436 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
437 msgid ""
438 "For security reasons, a process can't join a new user namespace if it is "
439 "sharing filesystem-related attributes (the attributes whose sharing is "
440 "controlled by the B<clone>(2) B<CLONE_FS> flag) with another process."
441 msgstr ""
442 "По причинам, связанным с безопасностью, процесс не может войти в новое "
443 "пользовательское пространство имён, если он сообща владеет атрибутами "
444 "файловых систем (атрибуты, чьё наследование управляется флагом B<CLONE_FS> в "
445 "B<clone>(2)) с другим процессом."
446
447 #. type: Plain text
448 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
449 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
450 msgid "For further details on user namespaces, see B<user_namespaces>(7)."
451 msgstr ""
452 "Дополнительную информацию о пользовательских пространствах имён смотрите в "
453 "B<user_namespaces>(7)."
454
455 #. type: TP
456 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
457 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
458 #, no-wrap
459 msgid "Mount namespaces"
460 msgstr "Пространства имён монтирования"
461
462 #. type: Plain text
463 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
464 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
465 msgid ""
466 "Changing the mount namespace requires that the caller possess both "
467 "B<CAP_SYS_CHROOT> and B<CAP_SYS_ADMIN> capabilities in its own user "
468 "namespace and B<CAP_SYS_ADMIN> in the user namespace that owns the target "
469 "mount namespace."
470 msgstr ""
471 "Для смены пространства имён монтирования требуется, чтобы вызывающий процесс "
472 "имел мандаты B<CAP_SYS_CHROOT> и B<CAP_SYS_ADMIN> в своём пространстве имён "
473 "пользователя и мандат B<CAP_SYS_ADMIN> в пользовательском пространстве имён, "
474 "которое принадлежит целевому пространству имён монтирования."
475
476 #. Above check is in fs/namespace.c:mntns_install() [3.8 source]
477 #. type: Plain text
478 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
479 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
480 msgid ""
481 "A process can't join a new mount namespace if it is sharing filesystem-"
482 "related attributes (the attributes whose sharing is controlled by the "
483 "B<clone>(2) B<CLONE_FS> flag) with another process."
484 msgstr ""
485 "Процесс не может войти в новое пространство имён монтирования, если он "
486 "сообща владеет атрибутами файловых систем (атрибуты, чьё наследование "
487 "управляется флагом B<CLONE_FS> в B<clone>(2)) с другим процессом."
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 "See B<user_namespaces>(7) for details on the interaction of user namespaces "
494 "and mount namespaces."
495 msgstr ""
496 "Подробную информацию взаимодействии пользовательского пространствах имён и "
497 "пространства имён монтирования смотрите в B<user_namespaces>(7)."
498
499 #. type: TP
500 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
501 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
502 #, no-wrap
503 msgid "PID namespaces"
504 msgstr "Пространства имён PID"
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 order to reassociate itself with a new PID namespace, the caller must "
511 "have the B<CAP_SYS_ADMIN> capability both in its own user namespace and in "
512 "the user namespace that owns the target PID namespace."
513 msgstr ""
514 "Чтобы пересопрячь новое пространство имён PID c самим собой, вызывающий "
515 "должен иметь мандат B<CAP_SYS_ADMIN> в своём пространстве имён пользователя "
516 "и пространстве имён пользователя целевого пространства имён PID."
517
518 #. type: Plain text
519 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
520 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
521 #, fuzzy
522 #| msgid ""
523 #| "If I<fd> refers to a PID namespace, the semantics are somewhat different "
524 #| "from other namespace types: reassociating the calling thread with a PID "
525 #| "namespace changes only the PID namespace that subsequently created child "
526 #| "processes of the caller will be placed in; it does not change the PID "
527 #| "namespace of the caller itself."
528 msgid ""
529 "Reassociating the PID namespace has somewhat different from other namespace "
530 "types. Reassociating the calling thread with a PID namespace changes only "
531 "the PID namespace that subsequently created child processes of the caller "
532 "will be placed in; it does not change the PID namespace of the caller itself."
533 msgstr ""
534 "Если I<fd> ссылается на пространство имён PID, то семантика слегла "
535 "отличается от других типов пространств имён: пересопряжение вызывающей нити "
536 "с пространством имён PID изменяет только пространство имён PID, в которое "
537 "будут помещены все создаваемые далее потомки вызывающего; пространство имён "
538 "PID самого вызывающего не изменяется."
539
540 #. type: Plain text
541 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
542 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
543 #, fuzzy
544 #| msgid ""
545 #| "Reassociating with a PID namespace is allowed only if the PID namespace "
546 #| "specified by I<fd> is a descendant (child, grandchild, etc.) of the PID "
547 #| "namespace of the caller."
548 msgid ""
549 "Reassociating with a PID namespace is allowed only if the target PID "
550 "namespace is a descendant (child, grandchild, etc.) of, or is the same as, "
551 "the current PID namespace of the caller."
552 msgstr ""
553 "Пересопряжение (reassociating) с пространством имён PID разрешено только, "
554 "если пространство имён PID, указанное в I<fd>, является потомком (дочерним, "
555 "внучатым и т. д.) пространства имён PID вызывающего."
556
557 #. type: Plain text
558 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
559 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
560 msgid "For further details on PID namespaces, see B<pid_namespaces>(7)."
561 msgstr ""
562 "Дополнительную информацию о пространствах имён PID смотрите в "
563 "B<pid_namespaces>(7)."
564
565 #. type: TP
566 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
567 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
568 #, no-wrap
569 msgid "Cgroup namespaces"
570 msgstr "Пространства имён cgroup"
571
572 #. type: Plain text
573 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
574 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
575 msgid ""
576 "In order to reassociate itself with a new cgroup namespace, the caller must "
577 "have the B<CAP_SYS_ADMIN> capability both in its own user namespace and in "
578 "the user namespace that owns the target cgroup namespace."
579 msgstr ""
580 "Чтобы пересопрячь новое пространство имён cgroup c самим собой, вызывающий "
581 "должен иметь мандат B<CAP_SYS_ADMIN> в своём пространстве имён пользователя "
582 "и пространстве имён пользователя целевого пространства имён cgroup."
583
584 #. type: Plain text
585 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
586 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
587 msgid ""
588 "Using B<setns>() to change the caller's cgroup namespace does not change "
589 "the caller's cgroup memberships."
590 msgstr ""
591 "Использование B<setns>() для изменения пространства имён cgroup вызывающего "
592 "не изменяет членство cgroup вызывающего."
593
594 #. type: TP
595 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
596 #: opensuse-leap-16-1 opensuse-tumbleweed
597 #, fuzzy, no-wrap
598 #| msgid "User namespaces"
599 msgid "Time namespaces"
600 msgstr "Пользовательские пространства имён"
601
602 #. type: Plain text
603 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
604 #: opensuse-leap-16-1 opensuse-tumbleweed
605 #, fuzzy
606 #| msgid ""
607 #| "In order to reassociate itself with a new PID namespace, the caller must "
608 #| "have the B<CAP_SYS_ADMIN> capability both in its own user namespace and "
609 #| "in the user namespace that owns the target PID namespace."
610 msgid ""
611 "In order to reassociate itself with a new time namespace, the caller must "
612 "have the B<CAP_SYS_ADMIN> capability both in its own user namespace and in "
613 "the user namespace that owns the target namespace."
614 msgstr ""
615 "Чтобы пересопрячь новое пространство имён PID c самим собой, вызывающий "
616 "должен иметь мандат B<CAP_SYS_ADMIN> в своём пространстве имён пользователя "
617 "и пространстве имён пользователя целевого пространства имён PID."
618
619 #. type: Plain text
620 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
621 #: opensuse-leap-16-1 opensuse-tumbleweed
622 #, fuzzy
623 #| msgid ""
624 #| "A multithreaded process may not change user namespace with B<setns>()."
625 msgid "A multithreaded process may not change time namespace with B<setns>()."
626 msgstr ""
627 "Многонитевой процесс не может изменить пространство имён пользователя с "
628 "помощью B<setns>()."
629
630 #. type: TP
631 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
632 #: opensuse-leap-16-1 opensuse-tumbleweed
633 #, fuzzy, no-wrap
634 #| msgid "Network, IPC, and UTS namespaces"
635 msgid "Network, IPC, and UTS namespaces"
636 msgstr "Пространства имён IPC, UTS и сетевое"
637
638 #. type: Plain text
639 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
640 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
641 #, fuzzy
642 #| msgid ""
643 #| "In order to reassociate itself with a new network, IPC, or UTS namespace, "
644 #| "the caller must have the B<CAP_SYS_ADMIN> capability both in its own user "
645 #| "namespace and in the user namespace that owns the target namespace."
646 msgid ""
647 "In order to reassociate itself with a new network, IPC, time, or UTS "
648 "namespace, the caller must have the B<CAP_SYS_ADMIN> capability both in its "
649 "own user namespace and in the user namespace that owns the target namespace."
650 msgstr ""
651 "Чтобы пересопрячь новое пространство имён IPC, UTS или сетевое c самим "
652 "собой, вызывающий должен иметь мандат B<CAP_SYS_ADMIN> в своём пространстве "
653 "имён пользователя и пространстве имён пользователя целевого пространства "
654 "имён PID."
655
656 #. type: SH
657 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
658 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
659 #, no-wrap
660 msgid "RETURN VALUE"
661 msgstr "ВОЗВРАЩАЕМОЕ ЗНАЧЕНИЕ"
662
663 #. type: Plain text
664 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
665 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
666 msgid ""
667 "On success, B<setns>() returns 0. On failure, -1 is returned and I<errno> "
668 "is set to indicate the error."
669 msgstr ""
670 "При успешном выполнении B<setns>() возвращает 0. При ошибке возвращается -1, "
671 "и I<errno> устанавливается в соответствующее значение."
672
673 #. type: SH
674 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
675 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
676 #, no-wrap
677 msgid "ERRORS"
678 msgstr "ОШИБКИ"
679
680 #. type: TP
681 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
682 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
683 #, no-wrap
684 msgid "B<EBADF>"
685 msgstr "B<EBADF>"
686
687 #. type: Plain text
688 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
689 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
690 msgid "I<fd> is not a valid file descriptor."
691 msgstr "Значение I<fd> не является правильным файловым дескриптором."
692
693 #. type: TP
694 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
695 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
696 #, no-wrap
697 msgid "B<EINVAL>"
698 msgstr "B<EINVAL>"
699
700 #. type: Plain text
701 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
702 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
703 msgid ""
704 "I<fd> refers to a namespace whose type does not match that specified in "
705 "I<nstype>."
706 msgstr ""
707 "Значение I<fd> ссылается на пространство имён, чей тип не соответствует с "
708 "указанным в I<nstype>."
709
710 #. type: Plain text
711 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
712 #: opensuse-tumbleweed
713 #, fuzzy
714 #| msgid ""
715 #| "There is problem with reassociating the thread with the specified "
716 #| "namespace."
717 msgid ""
718 "There is a problem with reassociating the thread with the specified "
719 "namespace."
720 msgstr ""
721 "Эти проблемы возникают при повторном связывании нити с указанным "
722 "пространством имён."
723
724 #. type: Plain text
725 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
726 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
727 msgid ""
728 "The caller tried to join an ancestor (parent, grandparent, and so on) PID "
729 "namespace."
730 msgstr ""
731 "Вызывающий пытается объединиться с пространством имён PID предка (родителя, "
732 "родителя родителя и т. д.)."
733
734 #. type: Plain text
735 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
736 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
737 msgid ""
738 "The caller attempted to join the user namespace in which it is already a "
739 "member."
740 msgstr ""
741 "Вызывающий пытается объединиться с пространством имён пользователя, в "
742 "которое он уже входит."
743
744 #. commit e66eded8309ebf679d3d3c1f5820d1f2ca332c71
745 #. type: Plain text
746 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
747 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
748 msgid ""
749 "The caller shares filesystem (B<CLONE_FS>) state (in particular, the root "
750 "directory) with other processes and tried to join a new user namespace."
751 msgstr ""
752 "Вызывающий сообща владеет состоянием файловой системы (B<CLONE_FS>) (в "
753 "частности, корневой каталог) с другим процессом и пытается объединить новое "
754 "пользовательское пространство имён."
755
756 #. See kernel/user_namespace.c::userns_install() [kernel 3.15 sources]
757 #. type: Plain text
758 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
759 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
760 msgid "The caller is multithreaded and tried to join a new user namespace."
761 msgstr ""
762 "Вызывающий состоит из нескольких нитей и пытается объединить новое "
763 "пользовательское пространство имён."
764
765 #. type: Plain text
766 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
767 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
768 msgid ""
769 "I<fd> is a PID file descriptor and I<nstype> is invalid (e.g., it is 0)."
770 msgstr ""
771
772 #. type: TP
773 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
774 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
775 #, no-wrap
776 msgid "B<ENOMEM>"
777 msgstr "B<ENOMEM>"
778
779 #. type: Plain text
780 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
781 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
782 msgid "Cannot allocate sufficient memory to change the specified namespace."
783 msgstr ""
784 "Невозможно выделить достаточно памяти для изменения указанного пространства "
785 "имён."
786
787 #. type: TP
788 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
789 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
790 #, no-wrap
791 msgid "B<EPERM>"
792 msgstr "B<EPERM>"
793
794 #. type: Plain text
795 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
796 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
797 msgid ""
798 "The calling thread did not have the required capability for this operation."
799 msgstr "Вызывающая нить не имеет требуемого мандата для этой операции."
800
801 #. type: TP
802 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
803 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
804 #, no-wrap
805 msgid "B<ESRCH>"
806 msgstr "B<ESRCH>"
807
808 #. type: Plain text
809 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
810 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
811 msgid ""
812 "I<fd> is a PID file descriptor but the process it refers to no longer exists "
813 "(i.e., it has terminated and been waited on)."
814 msgstr ""
815
816 #. type: SH
817 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
818 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
819 #, no-wrap
820 msgid "STANDARDS"
821 msgstr "СТАНДАРТЫ"
822
823 #. type: Plain text
824 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
825 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
826 msgid "Linux."
827 msgstr "Linux."
828
829 #. type: SH
830 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
831 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
832 #, no-wrap
833 msgid "VERSIONS"
834 msgstr "ВЕРСИИ"
835
836 #. type: Plain text
837 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
838 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
839 msgid "Linux 3.0, glibc 2.14."
840 msgstr "Linux 3.0, glibc 2.14."
841
842 #. type: SH
843 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
844 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
845 #, no-wrap
846 msgid "NOTES"
847 msgstr "ПРИМЕЧАНИЯ"
848
849 #. type: Plain text
850 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
851 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
852 #, fuzzy
853 #| msgid "For further information on the above fields, see B<inode>(7)."
854 msgid ""
855 "For further information on the I</proc/>pidI</ns/> magic links, see "
856 "B<namespaces>(7)."
857 msgstr "Дополнительную информацию об этих полях смотрите в B<inode>(7)."
858
859 #. type: Plain text
860 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
861 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
862 msgid ""
863 "Not all of the attributes that can be shared when a new thread is created "
864 "using B<clone>(2) can be changed using B<setns>()."
865 msgstr ""
866 "Не все атрибуты, которыми можно владеть сообща при создании новой нити с "
867 "помощью using B<clone>(2), можно изменить с помощью B<setns>()."
868
869 #. type: SH
870 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
871 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
872 #, no-wrap
873 msgid "EXAMPLES"
874 msgstr "ПРИМЕРЫ"
875
876 #. type: Plain text
877 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
878 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
879 msgid ""
880 "The program below takes two or more arguments. The first argument specifies "
881 "the pathname of a namespace file in an existing I</proc/>pidI</ns/> "
882 "directory. The remaining arguments specify a command and its arguments. "
883 "The program opens the namespace file, joins that namespace using B<setns>(), "
884 "and executes the specified command inside that namespace."
885 msgstr ""
886 "Программа, представленная ниже, ожидает два и более аргументов. В первом "
887 "аргумент указывается путь к файлу пространства имён в существующем каталоге "
888 "I</proc/>pidI</ns/>. В остальных аргументах указывается команда и её "
889 "параметры. Программа открывает файл пространства имён, объединяет это "
890 "пространство имён с помощью B<setns>() и выполняет указанную команду внутри "
891 "этого пространства имён."
892
893 #. type: Plain text
894 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
895 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
896 msgid ""
897 "The following shell session demonstrates the use of this program (compiled "
898 "as a binary named I<ns_exec>) in conjunction with the B<CLONE_NEWUTS> "
899 "example program in the B<clone>(2) man page (complied as a binary named "
900 "I<newuts>)."
901 msgstr ""
902 "В следующем сеансе оболочки показано использование этой программы "
903 "(скомпилирована под именем I<ns_exec>) вместе с примером для B<CLONE_NEWUTS> "
904 "из справочной страницы B<clone>(2) (скомпилирована под именем I<newuts>)."
905
906 #. type: Plain text
907 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
908 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
909 msgid ""
910 "We begin by executing the example program in B<clone>(2) in the "
911 "background. That program creates a child in a separate UTS namespace. The "
912 "child changes the hostname in its namespace, and then both processes display "
913 "the hostnames in their UTS namespaces, so that we can see that they are "
914 "different."
915 msgstr ""
916 "Сначала мы запускаем программу из B<clone>(2) в фоновом режиме. Эта "
917 "программа создаёт потомка в отдельном пространстве имён UTS. Потомок "
918 "изменяет имя узла в своём пространстве имён, а затем оба процесса отображают "
919 "имена узлов в своих пространствах имён UTS для того, чтобы мы увидели, что "
920 "они разные."
921
922 #. type: Plain text
923 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
924 #: opensuse-tumbleweed
925 #, fuzzy, no-wrap
926 #| msgid ""
927 #| "$ B<su> # Need privilege for namespace operations\n"
928 #| "Password:\n"
929 #| "# B<./newuts bizarro &>\n"
930 #| "[1] 3549\n"
931 #| "clone() returned 3550\n"
932 #| "uts.nodename in child: bizarro\n"
933 #| "uts.nodename in parent: antero\n"
934 #| "# B<uname -n> # Verify hostname in the shell\n"
935 #| "antero\n"
936 msgid ""
937 "$B< su>; # Need privilege for namespace operations\n"
938 "Password:\n"
939 "#B< ./newuts bizarro &>\n"
940 "[1] 3549\n"
941 "clone() returned 3550\n"
942 "uts.nodename in child: bizarro\n"
943 "uts.nodename in parent: antero\n"
944 "#B< uname -n>; # Verify hostname in the shell\n"
945 "antero\n"
946 msgstr ""
947 "$ B<su> # Требуются права для выполнения\n"
948 " # операций с пространством имён\n"
949 "Password:\n"
950 "# B<./newuts bizarro &>\n"
951 "[1] 3549\n"
952 "clone() returned 3550\n"
953 "uts.nodename in child: bizarro\n"
954 "uts.nodename in parent: antero\n"
955 "# B<uname -n> # проверяем имя узла в оболочке\n"
956 "antero\n"
957
958 #. type: Plain text
959 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
960 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
961 msgid ""
962 "We then run the program shown below, using it to execute a shell. Inside "
963 "that shell, we verify that the hostname is the one set by the child created "
964 "by the first program:"
965 msgstr ""
966 "Затем мы запускаем программу, показанную ниже, используя ту же оболочку. "
967 "Внутри этой оболочки мы проверяем, что имя узла — одно из изменённых "
968 "потомком, созданным первой программой:"
969
970 #. type: Plain text
971 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
972 #: opensuse-tumbleweed
973 #, fuzzy, no-wrap
974 #| msgid ""
975 #| "# B<./ns_exec /proc/3550/ns/uts /bin/bash>\n"
976 #| "# B<uname -n> # Executed in shell started by ns_exec\n"
977 #| "bizarro\n"
978 msgid ""
979 "#B< ./ns_exec /proc/3550/ns/uts /bin/bash>;\n"
980 "#B< uname -n>; # Executed in shell started by ns_exec\n"
981 "bizarro\n"
982 msgstr ""
983 "# B<./ns_exec /proc/3550/ns/uts /bin/bash>\n"
984 "# B<uname -n> # выполняется в оболочке, запущенной ns_exec\n"
985 "bizarro\n"
986
987 #. type: SS
988 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
989 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
990 #, no-wrap
991 msgid "Program source"
992 msgstr "Исходный код программы"
993
994 #. type: Plain text
995 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
996 #: opensuse-tumbleweed
997 #, no-wrap
998 msgid ""
999 "#define _GNU_SOURCE\n"
1000 "#include E<lt>err.hE<gt>\n"
1001 "#include E<lt>fcntl.hE<gt>\n"
1002 "#include E<lt>sched.hE<gt>\n"
1003 "#include E<lt>stdio.hE<gt>\n"
1004 "#include E<lt>stdlib.hE<gt>\n"
1005 "#include E<lt>unistd.hE<gt>\n"
1006 "\\&\n"
1007 "int\n"
1008 "main(int argc, char *argv[])\n"
1009 "{\n"
1010 " int fd;\n"
1011 "\\&\n"
1012 " if (argc E<lt> 3) {\n"
1013 " fprintf(stderr, \"%s /proc/PID/ns/FILE cmd args...\\[rs]n\", argv[0]);\n"
1014 " exit(EXIT_FAILURE);\n"
1015 " }\n"
1016 "\\&\n"
1017 " /* Get file descriptor for namespace; the file descriptor is opened\n"
1018 " with O_CLOEXEC so as to ensure that it is not inherited by the\n"
1019 " program that is later executed. */\n"
1020 "\\&\n"
1021 " fd = open(argv[1], O_RDONLY | O_CLOEXEC);\n"
1022 " if (fd == -1)\n"
1023 " err(EXIT_FAILURE, \"open\");\n"
1024 "\\&\n"
1025 " if (setns(fd, 0) == -1) /* Join that namespace */\n"
1026 " err(EXIT_FAILURE, \"setns\");\n"
1027 "\\&\n"
1028 " execvp(argv[2], &argv[2]); /* Execute a command in namespace */\n"
1029 " err(EXIT_FAILURE, \"execvp\");\n"
1030 "}\n"
1031 msgstr ""
1032
1033 #. SRC END
1034 #. type: SH
1035 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1036 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1037 #, no-wrap
1038 msgid "SEE ALSO"
1039 msgstr "СМОТРИТЕ ТАКЖЕ"
1040
1041 #. type: Plain text
1042 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1043 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1044 msgid ""
1045 "B<nsenter>(1), B<clone>(2), B<fork>(2), B<unshare>(2), B<vfork>(2), "
1046 "B<namespaces>(7), B<unix>(7)"
1047 msgstr ""
1048 "B<nsenter>(1), B<clone>(2), B<fork>(2), B<unshare>(2), B<vfork>(2), "
1049 "B<namespaces>(7), B<unix>(7)"
1050
1051 #. type: TH
1052 #: debian-trixie
1053 #, no-wrap
1054 msgid "2024-06-15"
1055 msgstr "15 июня 2024 г."
1056
1057 #. type: TH
1058 #: debian-trixie
1059 #, no-wrap
1060 msgid "Linux man-pages 6.9.1"
1061 msgstr "Страницы руководства Linux 6.9.1"
1062
1063 #. type: Plain text
1064 #: debian-trixie
1065 msgid "Standard C library (I<libc>, I<-lc>)"
1066 msgstr "Стандартная библиотека языка C (I<libc>, I<-lc>)"
1067
1068 #. type: SS
1069 #: debian-trixie fedora-44 fedora-rawhide
1070 #, no-wrap
1071 msgid "fd refers to a I</proc/>pidI</ns/> link"
1072 msgstr ""
1073
1074 #. type: TP
1075 #: debian-trixie
1076 #, fuzzy, no-wrap
1077 #| msgid "Network, IPC, and UTS namespaces"
1078 msgid "Network, IPC, time, and UTS namespaces"
1079 msgstr "Пространства имён IPC, UTS и сетевое"
1080
1081 #. type: Plain text
1082 #: debian-trixie fedora-44 fedora-rawhide
1083 msgid ""
1084 "There is problem with reassociating the thread with the specified namespace."
1085 msgstr ""
1086 "Эти проблемы возникают при повторном связывании нити с указанным "
1087 "пространством имён."
1088
1089 #. type: Plain text
1090 #: debian-trixie fedora-44 fedora-rawhide
1091 #, no-wrap
1092 msgid ""
1093 "$ B<su> # Need privilege for namespace operations\n"
1094 "Password:\n"
1095 "# B<./newuts bizarro &>\n"
1096 "[1] 3549\n"
1097 "clone() returned 3550\n"
1098 "uts.nodename in child: bizarro\n"
1099 "uts.nodename in parent: antero\n"
1100 "# B<uname -n> # Verify hostname in the shell\n"
1101 "antero\n"
1102 msgstr ""
1103 "$ B<su> # Требуются права для выполнения\n"
1104 " # операций с пространством имён\n"
1105 "Password:\n"
1106 "# B<./newuts bizarro &>\n"
1107 "[1] 3549\n"
1108 "clone() returned 3550\n"
1109 "uts.nodename in child: bizarro\n"
1110 "uts.nodename in parent: antero\n"
1111 "# B<uname -n> # проверяем имя узла в оболочке\n"
1112 "antero\n"
1113
1114 #. type: Plain text
1115 #: debian-trixie fedora-44 fedora-rawhide
1116 #, no-wrap
1117 msgid ""
1118 "# B<./ns_exec /proc/3550/ns/uts /bin/bash>\n"
1119 "# B<uname -n> # Executed in shell started by ns_exec\n"
1120 "bizarro\n"
1121 msgstr ""
1122 "# B<./ns_exec /proc/3550/ns/uts /bin/bash>\n"
1123 "# B<uname -n> # выполняется в оболочке, запущенной ns_exec\n"
1124 "bizarro\n"
1125
1126 #. type: Plain text
1127 #: debian-trixie fedora-44 fedora-rawhide
1128 #, no-wrap
1129 msgid ""
1130 "#define _GNU_SOURCE\n"
1131 "#include E<lt>err.hE<gt>\n"
1132 "#include E<lt>fcntl.hE<gt>\n"
1133 "#include E<lt>sched.hE<gt>\n"
1134 "#include E<lt>stdio.hE<gt>\n"
1135 "#include E<lt>stdlib.hE<gt>\n"
1136 "#include E<lt>unistd.hE<gt>\n"
1137 "\\&\n"
1138 "int\n"
1139 "main(int argc, char *argv[])\n"
1140 "{\n"
1141 " int fd;\n"
1142 "\\&\n"
1143 " if (argc E<lt> 3) {\n"
1144 " fprintf(stderr, \"%s /proc/PID/ns/FILE cmd args...\\[rs]n\", argv[0]);\n"
1145 " exit(EXIT_FAILURE);\n"
1146 " }\n"
1147 "\\&\n"
1148 " /* Get file descriptor for namespace; the file descriptor is opened\n"
1149 " with O_CLOEXEC so as to ensure that it is not inherited by the\n"
1150 " program that is later executed. */\n"
1151 "\\&\n"
1152 " fd = open(argv[1], O_RDONLY | O_CLOEXEC);\n"
1153 " if (fd == -1)\n"
1154 " err(EXIT_FAILURE, \"open\");\n"
1155 "\\&\n"
1156 " if (setns(fd, 0) == -1) /* Join that namespace */\n"
1157 " err(EXIT_FAILURE, \"setns\");\n"
1158 "\\&\n"
1159 " execvp(argv[2], &argv[2]); /* Execute a command in namespace */\n"
1160 " err(EXIT_FAILURE, \"execvp\");\n"
1161 "}\n"
1162 msgstr ""
1163
1164 #. type: TH
1165 #: fedora-44 fedora-rawhide
1166 #, no-wrap
1167 msgid "2025-01-07"
1168 msgstr "7 января 2025 г."
1169
1170 #. type: TH
1171 #: fedora-44 fedora-rawhide
1172 #, no-wrap
1173 msgid "Linux man-pages 6.13"
1174 msgstr "Страницы руководства Linux 6.13"
1175
1176 #. type: TH
1177 #: mageia-cauldron
1178 #, no-wrap
1179 msgid "Linux man-pages 6.17"
1180 msgstr "Страницы руководства Linux 6.17"
1181
1182 #. type: TH
1183 #: opensuse-leap-16-1 opensuse-tumbleweed
1184 #, no-wrap
1185 msgid "Linux man-pages (unreleased)"
1186 msgstr "Страницы руководства Linux (не выпущены)"