Debian Codegraph @

po/ru/man2/unshare.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 # Azamat Hackimov <[email protected]>, 2013, 2016.
5 # Dmitriy Ovchinnikov <[email protected]>, 2012.
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:50+0200\n"
14 "PO-Revision-Date: 2024-12-21 19:49+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 #, no-wrap
30 msgid "unshare"
31 msgstr "unshare"
32
33 #. type: TH
34 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
35 #: opensuse-tumbleweed
36 #, no-wrap
37 msgid "2026-02-08"
38 msgstr "8 февраля 2026 г."
39
40 #. type: TH
41 #: archlinux debian-unstable
42 #, fuzzy, no-wrap
43 #| msgid "Linux man-pages 6.17"
44 msgid "Linux man-pages 6.18"
45 msgstr "Справочные страницы Linux 6.17"
46
47 #. type: SH
48 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
49 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
50 #, no-wrap
51 msgid "NAME"
52 msgstr "НАИМЕНОВАНИЕ"
53
54 #. type: Plain text
55 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
56 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
57 msgid "unshare - disassociate parts of the process execution context"
58 msgstr "unshare - отделяет части процесса контекста выполнения"
59
60 #. type: SH
61 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
62 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
63 #, no-wrap
64 msgid "LIBRARY"
65 msgstr "БИБЛИОТЕКА"
66
67 #. type: Plain text
68 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
69 #: opensuse-leap-16-1 opensuse-tumbleweed
70 msgid "Standard C library (I<libc>,\\ I<-lc>)"
71 msgstr "Стандартная библиотека языка C (I<libc>,\\ I<-lc>)"
72
73 #. type: SH
74 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
75 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
76 #, no-wrap
77 msgid "SYNOPSIS"
78 msgstr "СИНТАКСИС"
79
80 #. type: Plain text
81 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
82 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
83 #, no-wrap
84 msgid ""
85 "B<#define _GNU_SOURCE>\n"
86 "B<#include E<lt>sched.hE<gt>>\n"
87 msgstr ""
88 "B<#define _GNU_SOURCE>\n"
89 "B<#include E<lt>sched.hE<gt>>\n"
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 #, no-wrap
95 msgid "B<int unshare(int >I<flags>B<);>\n"
96 msgstr "B<int unshare(int >I<flags>B<);>\n"
97
98 #. type: SH
99 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
100 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
101 #, no-wrap
102 msgid "DESCRIPTION"
103 msgstr "ОПИСАНИЕ"
104
105 #. type: Plain text
106 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
107 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
108 msgid ""
109 "B<unshare>() allows a process (or thread) to disassociate parts of its "
110 "execution context that are currently being shared with other processes (or "
111 "threads). Part of the execution context, such as the mount namespace, is "
112 "shared implicitly when a new process is created using B<fork>(2) or "
113 "B<vfork>(2), while other parts, such as virtual memory, may be shared by "
114 "explicit request when creating a process or thread using B<clone>(2)."
115 msgstr ""
116 "Вызов B<unshare>() позволяет процессу (или потоку) отделить части своего "
117 "контекста выполнения, которые используются совместно с другими процессами "
118 "(или потоками). Часть контекста выполнения, например пространство имён "
119 "монтирования, неявно делается общей при создании нового процесса с помощью "
120 "B<fork>(2) или B<vfork>(2), в то время как другие части, такие как "
121 "виртуальная память, могут стать общими по явному запросу при создании "
122 "процесса или потока с помощью B<clone>(2)."
123
124 #. type: Plain text
125 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
126 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
127 msgid ""
128 "The main use of B<unshare>() is to allow a process to control its shared "
129 "execution context without creating a new process."
130 msgstr ""
131 "Основное предназначение B<unshare>() \\(em позволить процессу контролировать "
132 "свой общий контекст выполнения без создания нового процесса."
133
134 #. type: Plain text
135 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
136 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
137 msgid ""
138 "The I<flags> argument is a bit mask that specifies which parts of the "
139 "execution context should be unshared. This argument is specified by ORing "
140 "together zero or more of the following constants:"
141 msgstr ""
142 "Значение аргумента I<flags> представляет собой битовую маску, в которой "
143 "указывается какие части контекста выполнения должны перестать быть общими. "
144 "Значение составляется из нескольких следующих констант (через OR):"
145
146 #. type: TP
147 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
148 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
149 #, no-wrap
150 msgid "B<CLONE_FILES>"
151 msgstr "B<CLONE_FILES>"
152
153 #. type: Plain text
154 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
155 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
156 msgid ""
157 "Reverse the effect of the B<clone>(2) B<CLONE_FILES> flag. Unshare the "
158 "file descriptor table, so that the calling process no longer shares its file "
159 "descriptors with any other process."
160 msgstr ""
161 "Обратный эффект флагу B<CLONE_FILES> для B<clone>(2). Отделяет таблицу "
162 "файловых дескрипторов таким образом, что вызывающий процесс больше не имеет "
163 "общих файловых дескрипторов с другими процессами."
164
165 #. type: TP
166 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
167 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
168 #, no-wrap
169 msgid "B<CLONE_FS>"
170 msgstr "B<CLONE_FS>"
171
172 #. type: Plain text
173 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
174 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
175 msgid ""
176 "Reverse the effect of the B<clone>(2) B<CLONE_FS> flag. Unshare filesystem "
177 "attributes, so that the calling process no longer shares its root directory "
178 "(B<chroot>(2)), current directory (B<chdir>(2)), or umask (B<umask>(2)) "
179 "attributes with any other process."
180 msgstr ""
181 "Обратный эффект флагу B<CLONE_FS> для B<clone>(2). Отделяет атрибуты "
182 "файловой системы таким образом, что вызывающий процесс больше не имеет общих "
183 "атрибутов корневого каталога (B<chroot>(2)), текущего каталога (B<chdir>(2)) "
184 "и umask (B<umask>(2)) с другими процессами."
185
186 #. type: TP
187 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
188 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
189 #, no-wrap
190 msgid "B<CLONE_NEWCGROUP> (since Linux 4.6)"
191 msgstr "B<CLONE_NEWCGROUP> (начиная с Linux 4.6)"
192
193 #. type: Plain text
194 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
195 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
196 msgid ""
197 "This flag has the same effect as the B<clone>(2) B<CLONE_NEWCGROUP> flag. "
198 "Unshare the cgroup namespace. Use of B<CLONE_NEWCGROUP> requires the "
199 "B<CAP_SYS_ADMIN> capability."
200 msgstr ""
201 "Этот флаг имеет действие подобное флагу B<CLONE_NEWCGROUP> для B<clone>(2). "
202 "Отделяет пространство имён cgroup. Для использования B<CLONE_NEWCGROUP> "
203 "требуется мандат B<CAP_SYS_ADMIN>."
204
205 #. type: TP
206 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
207 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
208 #, no-wrap
209 msgid "B<CLONE_NEWIPC> (since Linux 2.6.19)"
210 msgstr "B<CLONE_NEWIPC> (начиная с Linux 2.6.19)"
211
212 #. type: Plain text
213 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
214 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
215 msgid ""
216 "This flag has the same effect as the B<clone>(2) B<CLONE_NEWIPC> flag. "
217 "Unshare the IPC namespace, so that the calling process has a private copy of "
218 "the IPC namespace which is not shared with any other process. Specifying "
219 "this flag automatically implies B<CLONE_SYSVSEM> as well. Use of "
220 "B<CLONE_NEWIPC> requires the B<CAP_SYS_ADMIN> capability."
221 msgstr ""
222 "Этот флаг имеет действие подобное флагу B<CLONE_NEWIPC> для B<clone>(2). "
223 "Отделяет пространство имён IPC таким образом, что вызывающий процесс будет "
224 "иметь свою личную копию пространства имён IPC, неиспользуемую другими "
225 "процессами. Задание данного флага автоматически устанавливает флаг "
226 "B<CLONE_SYSVSEM>. Для использования B<CLONE_NEWIPC> требуется мандат "
227 "B<CAP_SYS_ADMIN>."
228
229 #. type: TP
230 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
231 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
232 #, no-wrap
233 msgid "B<CLONE_NEWNET> (since Linux 2.6.24)"
234 msgstr "B<CLONE_NEWNET> (начиная с Linux 2.6.24)"
235
236 #. type: Plain text
237 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
238 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
239 msgid ""
240 "This flag has the same effect as the B<clone>(2) B<CLONE_NEWNET> flag. "
241 "Unshare the network namespace, so that the calling process is moved into a "
242 "new network namespace which is not shared with any previously existing "
243 "process. Use of B<CLONE_NEWNET> requires the B<CAP_SYS_ADMIN> capability."
244 msgstr ""
245 "Этот флаг имеет действие подобное флагу B<CLONE_NEWNET> для B<clone>(2). "
246 "Отделяет сетевое пространство имён таким образом, что вызывающий процесс "
247 "будет иметь свою личную копию сетевого пространства имён, неиспользуемую "
248 "другими процессами. Для использования B<CLONE_NEWNET> требуется мандат "
249 "B<CAP_SYS_ADMIN>."
250
251 #. type: TP
252 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
253 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
254 #, no-wrap
255 msgid "B<CLONE_NEWNS>"
256 msgstr "B<CLONE_NEWNS>"
257
258 #. These flag name are inconsistent:
259 #. CLONE_NEWNS does the same thing in clone(), but CLONE_VM,
260 #. CLONE_FS, and CLONE_FILES reverse the action of the clone()
261 #. flags of the same name.
262 #. type: Plain text
263 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
264 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
265 msgid ""
266 "This flag has the same effect as the B<clone>(2) B<CLONE_NEWNS> flag. "
267 "Unshare the mount namespace, so that the calling process has a private copy "
268 "of its namespace which is not shared with any other process. Specifying "
269 "this flag automatically implies B<CLONE_FS> as well. Use of B<CLONE_NEWNS> "
270 "requires the B<CAP_SYS_ADMIN> capability. For further information, see "
271 "B<mount_namespaces>(7)."
272 msgstr ""
273 "Этот флаг имеет действие подобное флагу B<CLONE_NEWNS> для B<clone>(2). "
274 "Отделяет пространство имён монтирования таким образом, что вызывающий "
275 "процесс будет иметь свою личную копию данного пространства имён, "
276 "неиспользуемую другими процессами. Задание данного флага автоматически "
277 "устанавливает флаг B<CLONE_FS>. Для использования B<CLONE_NEWNS> требуется "
278 "мандат B<CAP_SYS_ADMIN>. Дополнительная информация доступна в "
279 "B<mount_namespaces>(7)."
280
281 #. type: TP
282 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
283 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
284 #, no-wrap
285 msgid "B<CLONE_NEWPID> (since Linux 3.8)"
286 msgstr "B<CLONE_NEWPID> (начиная с Linux 3.8)"
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 "This flag has the same effect as the B<clone>(2) B<CLONE_NEWPID> flag. "
293 "Unshare the PID namespace, so that the calling process has a new PID "
294 "namespace for its children which is not shared with any previously existing "
295 "process. The calling process is I<not> moved into the new namespace. The "
296 "first child created by the calling process will have the process ID 1 and "
297 "will assume the role of B<init>(1) in the new namespace. B<CLONE_NEWPID> "
298 "automatically implies B<CLONE_THREAD> as well. Use of B<CLONE_NEWPID> "
299 "requires the B<CAP_SYS_ADMIN> capability. For further information, see "
300 "B<pid_namespaces>(7)."
301 msgstr ""
302 "Данный флаг позволяет то же что и B<CLONE_NEWPID> у B<clone>(2). Выполняется "
303 "отключение от пространства имён PID; вызывающий процесс создаёт новое "
304 "пространство имён PID для своих потомков, которые до этого не были "
305 "объединены с существующим процессом. Вызывающий процесс I<не> перемещается в "
306 "новое пространство имён. Первый потомок, созданный вызывающим процессом, "
307 "будет иметь ID процесса 1 и считаться B<init>(1) в новом пространстве имён. "
308 "Также флаг B<CLONE_NEWPID> автоматически подразумевает B<CLONE_THREAD>. Для "
309 "использования B<CLONE_NEWPID> требуется мандат B<CAP_SYS_ADMIN>. Подробней "
310 "смотрите B<pid_namespaces>(7)."
311
312 #. type: TP
313 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
314 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
315 #, no-wrap
316 msgid "B<CLONE_NEWTIME> (since Linux 5.6)"
317 msgstr "B<CLONE_NEWTIME> (начиная с Linux 5.6)"
318
319 #. type: Plain text
320 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
321 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
322 #, fuzzy
323 #| msgid ""
324 #| "This flag has the same effect as the B<clone>(2) B<CLONE_NEWNS> flag. "
325 #| "Unshare the mount namespace, so that the calling process has a private "
326 #| "copy of its namespace which is not shared with any other process. "
327 #| "Specifying this flag automatically implies B<CLONE_FS> as well. Use of "
328 #| "B<CLONE_NEWNS> requires the B<CAP_SYS_ADMIN> capability. For further "
329 #| "information, see B<mount_namespaces>(7)."
330 msgid ""
331 "Unshare the time namespace, so that the calling process has a new time "
332 "namespace for its children which is not shared with any previously existing "
333 "process. The calling process is I<not> moved into the new namespace. Use "
334 "of B<CLONE_NEWTIME> requires the B<CAP_SYS_ADMIN> capability. For further "
335 "information, see B<time_namespaces>(7)."
336 msgstr ""
337 "Этот флаг имеет действие подобное флагу B<CLONE_NEWNS> для B<clone>(2). "
338 "Отделяет пространство имён монтирования таким образом, что вызывающий "
339 "процесс будет иметь свою личную копию данного пространства имён, "
340 "неиспользуемую другими процессами. Задание данного флага автоматически "
341 "устанавливает флаг B<CLONE_FS>. Для использования B<CLONE_NEWNS> требуется "
342 "мандат B<CAP_SYS_ADMIN>. Дополнительная информация доступна в "
343 "B<mount_namespaces>(7)."
344
345 #. type: TP
346 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
347 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
348 #, no-wrap
349 msgid "B<CLONE_NEWUSER> (since Linux 3.8)"
350 msgstr "B<CLONE_NEWUSER> (начиная с Linux 3.8)"
351
352 #. type: Plain text
353 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
354 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
355 msgid ""
356 "This flag has the same effect as the B<clone>(2) B<CLONE_NEWUSER> flag. "
357 "Unshare the user namespace, so that the calling process is moved into a new "
358 "user namespace which is not shared with any previously existing process. As "
359 "with the child process created by B<clone>(2) with the B<CLONE_NEWUSER> "
360 "flag, the caller obtains a full set of capabilities in the new namespace."
361 msgstr ""
362 "Данный флаг позволяет то же что и B<CLONE_NEWUSER> у B<clone>(2). "
363 "Выполняется отключение от пользовательского пространства имён; вызывающий "
364 "процесс перемещается в новое пользовательское пространство имён, которое до "
365 "этого не был общим для существующего процесса. Как потомок процесса, "
366 "созданный B<clone>(2) с флагом B<CLONE_NEWUSER>, вызывающий получает полный "
367 "набор мандатов в новом пользовательском пространстве имён."
368
369 #. commit e66eded8309ebf679d3d3c1f5820d1f2ca332c71
370 #. https://lwn.net/Articles/543273/
371 #. type: Plain text
372 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
373 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
374 msgid ""
375 "B<CLONE_NEWUSER> requires that the calling process is not threaded; "
376 "specifying B<CLONE_NEWUSER> automatically implies B<CLONE_THREAD>. Since "
377 "Linux 3.9, B<CLONE_NEWUSER> also automatically implies B<CLONE_FS>. "
378 "B<CLONE_NEWUSER> requires that the user ID and group ID of the calling "
379 "process are mapped to user IDs and group IDs in the user namespace of the "
380 "calling process at the time of the call."
381 msgstr ""
382 "Для B<CLONE_NEWUSER> требуется, чтобы вызывающий процесс не имел нитей; "
383 "указание B<CLONE_NEWUSER> автоматически подразумевает B<CLONE_THREAD>. "
384 "Начиная с Linux 3.9, B<CLONE_NEWUSER> также автоматически подразумевает "
385 "B<CLONE_FS>. Для B<CLONE_NEWUSER> требуется, чтобы ID пользователя и группы "
386 "вызывающего процесса отображались в ID пользователя и группы в "
387 "пользовательском пространстве имён вызывающего процесса на момент вызова."
388
389 #. type: Plain text
390 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
391 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
392 msgid "For further information on user namespaces, see B<user_namespaces>(7)."
393 msgstr ""
394 "Дополнительную информацию о пространствах имён пользователя смотрите в "
395 "B<user_namespaces>(7)."
396
397 #. type: TP
398 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
399 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
400 #, no-wrap
401 msgid "B<CLONE_NEWUTS> (since Linux 2.6.19)"
402 msgstr "B<CLONE_NEWUTS> (начиная с Linux 2.6.19)"
403
404 #. type: Plain text
405 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
406 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
407 msgid ""
408 "This flag has the same effect as the B<clone>(2) B<CLONE_NEWUTS> flag. "
409 "Unshare the UTS IPC namespace, so that the calling process has a private "
410 "copy of the UTS namespace which is not shared with any other process. Use "
411 "of B<CLONE_NEWUTS> requires the B<CAP_SYS_ADMIN> capability."
412 msgstr ""
413 "Этот флаг имеет действие подобное флагу B<CLONE_NEWUTS> для B<clone>(2). "
414 "Отделяет пространство имён UTS IPC таким образом, что вызывающий процесс "
415 "будет иметь свою личную копию пространства имён UTS, неиспользуемую другими "
416 "процессами. Для использования B<CLONE_NEWUTS> требуется мандат "
417 "B<CAP_SYS_ADMIN>."
418
419 #. type: TP
420 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
421 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
422 #, no-wrap
423 msgid "B<CLONE_SYSVSEM> (since Linux 2.6.26)"
424 msgstr "B<CLONE_SYSVSEM> (начиная с Linux 2.6.26)"
425
426 #. commit 9edff4ab1f8d82675277a04e359d0ed8bf14a7b7
427 #. CLONE_NEWNS If CLONE_SIGHAND is set and signals are also being shared
428 #. (i.e., current->signal->count > 1), force CLONE_THREAD.
429 #. type: Plain text
430 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
431 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
432 msgid ""
433 "This flag reverses the effect of the B<clone>(2) B<CLONE_SYSVSEM> flag. "
434 "Unshare System\\ V semaphore adjustment (I<semadj>) values, so that the "
435 "calling process has a new empty I<semadj> list that is not shared with any "
436 "other process. If this is the last process that has a reference to the "
437 "process's current I<semadj> list, then the adjustments in that list are "
438 "applied to the corresponding semaphores, as described in B<semop>(2)."
439 msgstr ""
440 "С данным флагом выполняется обратное действие B<clone>(2) с флагом "
441 "B<CLONE_SYSVSEM>. Выполняется отмена изменения значений семафоров System\\ V "
442 "(I<semadj>) таким образом, что вызывающий процесс получает новый пустой "
443 "список I<semadj>, который не является общим ни с одним другим процессом. "
444 "Если это последний процесс, который ссылается на текущий список I<semadj> "
445 "процесса, то изменения (adjustments) в этом списке применяются к "
446 "соответствующим семафорам как описано в B<semop>(2)."
447
448 #. As at 3.9, the following forced implications also apply,
449 #. although the relevant flags are not yet implemented.
450 #. If CLONE_THREAD is set force CLONE_VM.
451 #. If CLONE_VM is set, force CLONE_SIGHAND.
452 #. See kernel/fork.c::check_unshare_flags()
453 #. type: Plain text
454 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
455 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
456 msgid ""
457 "In addition, B<CLONE_THREAD>, B<CLONE_SIGHAND>, and B<CLONE_VM> can be "
458 "specified in I<flags> if the caller is single threaded (i.e., it is not "
459 "sharing its address space with another process or thread). In this case, "
460 "these flags have no effect. (Note also that specifying B<CLONE_THREAD> "
461 "automatically implies B<CLONE_VM>, and specifying B<CLONE_VM> automatically "
462 "implies B<CLONE_SIGHAND>.) If the process is multithreaded, then the use of "
463 "these flags results in an error."
464 msgstr ""
465 "Также в I<flags> могут быть указаны флаги B<CLONE_THREAD>, B<CLONE_SIGHAND> "
466 "и B<CLONE_VM>, если вызывающий состоит из одной нити (т. е., он не делит "
467 "своё адресное пространство с другим процессом или нитью). Иначе данные флаги "
468 "не работают (также заметим, что указание B<CLONE_THREAD> автоматически "
469 "подразумевает B<CLONE_VM>, а указание B<CLONE_VM> автоматически "
470 "подразумевает B<CLONE_SIGHAND>). Если процесс состоит из нескольких нитей, "
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 "If I<flags> is specified as zero, then B<unshare>() is a no-op; no changes "
478 "are made to the calling process's execution context."
479 msgstr ""
480 "Если значение I<flags> равно нулю, то B<unshare>() ничего не делает, то есть "
481 "в контексте выполнения вызывающего процесса ничего не изменяется."
482
483 #. type: SH
484 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
485 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
486 #, no-wrap
487 msgid "RETURN VALUE"
488 msgstr "ВОЗВРАЩАЕМОЕ ЗНАЧЕНИЕ"
489
490 #. type: Plain text
491 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
492 #: opensuse-tumbleweed
493 msgid ""
494 "On success, zero is returned. On failure, -1 is returned and I<errno> is "
495 "set to indicate the error."
496 msgstr ""
497 "В случае успеха возвращается ноль. В случае неудачи возвращается -1, а "
498 "I<errno> устанавливается для указания ошибки."
499
500 #. type: SH
501 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
502 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
503 #, no-wrap
504 msgid "ERRORS"
505 msgstr "ОШИБКИ"
506
507 #. type: TP
508 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
509 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
510 #, no-wrap
511 msgid "B<EINVAL>"
512 msgstr "B<EINVAL>"
513
514 #. type: Plain text
515 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
516 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
517 msgid "An invalid bit was specified in I<flags>."
518 msgstr "В значении I<flags> установлен недопустимый бит."
519
520 #. type: Plain text
521 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
522 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
523 msgid ""
524 "B<CLONE_THREAD>, B<CLONE_SIGHAND>, or B<CLONE_VM> was specified in I<flags>, "
525 "and the caller is multithreaded."
526 msgstr ""
527 "В I<flags> указан B<CLONE_THREAD>, B<CLONE_SIGHAND> или B<CLONE_VM>, а "
528 "вызывающий состоит из нескольких нитей."
529
530 #. type: Plain text
531 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
532 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
533 msgid ""
534 "B<CLONE_NEWIPC> was specified in I<flags>, but the kernel was not configured "
535 "with the B<CONFIG_SYSVIPC> and B<CONFIG_IPC_NS> options."
536 msgstr ""
537 "Указан флаг B<CLONE_NEWIPC> в I<flags>, но ядро собрано без параметров "
538 "B<CONFIG_SYSVIPC> и B<CONFIG_IPC_NS>."
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 msgid ""
544 "B<CLONE_NEWNET> was specified in I<flags>, but the kernel was not configured "
545 "with the B<CONFIG_NET_NS> option."
546 msgstr ""
547 "Указан флаг B<CLONE_NEWNET> в I<flags>, но ядро собрано без параметра "
548 "B<CONFIG_NET_NS>."
549
550 #. type: Plain text
551 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
552 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
553 msgid ""
554 "B<CLONE_NEWPID> was specified in I<flags>, but the kernel was not configured "
555 "with the B<CONFIG_PID_NS> option."
556 msgstr ""
557 "Указан флаг B<CLONE_NEWPID> в I<flags>, но ядро собрано без параметра "
558 "B<CONFIG_PID_NS>."
559
560 #. type: Plain text
561 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
562 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
563 msgid ""
564 "B<CLONE_NEWUSER> was specified in I<flags>, but the kernel was not "
565 "configured with the B<CONFIG_USER_NS> option."
566 msgstr ""
567 "Указан флаг B<CLONE_NEWUSER> в I<flags>, но ядро собрано без параметра "
568 "B<CONFIG_USER_NS>."
569
570 #. type: Plain text
571 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
572 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
573 msgid ""
574 "B<CLONE_NEWUTS> was specified in I<flags>, but the kernel was not configured "
575 "with the B<CONFIG_UTS_NS> option."
576 msgstr ""
577 "Указан флаг B<CLONE_NEWUTS> в I<flags>, но ядро собрано без параметра "
578 "B<CONFIG_UTS_NS>."
579
580 #. type: Plain text
581 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
582 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
583 msgid ""
584 "B<CLONE_NEWPID> was specified in I<flags>, but the process has previously "
585 "called B<unshare>() with the B<CLONE_NEWPID> flag."
586 msgstr ""
587 "Указан флаг B<CLONE_NEWPID> в I<flags>, но процесс был ранее вызван "
588 "B<unshare>() с флагом B<CLONE_NEWPID>."
589
590 #. type: TP
591 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
592 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
593 #, no-wrap
594 msgid "B<ENOMEM>"
595 msgstr "B<ENOMEM>"
596
597 #. type: Plain text
598 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
599 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
600 msgid ""
601 "Cannot allocate sufficient memory to copy parts of caller's context that "
602 "need to be unshared."
603 msgstr ""
604 "Не удалось выделить достаточно памяти для копирования части контекста "
605 "вызывающего, которая должна быть отделена."
606
607 #. type: TP
608 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
609 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
610 #, no-wrap
611 msgid "B<ENOSPC> (since Linux 3.7)"
612 msgstr "B<ENOSPC> (начиная с Linux 3.7)"
613
614 #. commit f2302505775fd13ba93f034206f1e2a587017929
615 #. type: Plain text
616 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
617 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
618 msgid ""
619 "B<CLONE_NEWPID> was specified in flags, but the limit on the nesting depth "
620 "of PID namespaces would have been exceeded; see B<pid_namespaces>(7)."
621 msgstr ""
622 "В флагах указан B<CLONE_NEWPID>, но вызов привёл бы к превышению ограничения "
623 "на количество вложенных имён PID; смотрите B<pid_namespaces>(7)."
624
625 #. type: TP
626 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
627 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
628 #, no-wrap
629 msgid "B<ENOSPC> (since Linux 4.9; beforehand B<EUSERS>)"
630 msgstr "B<ENOSPC> (начиная с Linux 4.9; до этого B<EUSERS>)"
631
632 #. type: Plain text
633 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
634 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
635 msgid ""
636 "B<CLONE_NEWUSER> was specified in I<flags>, and the call would cause the "
637 "limit on the number of nested user namespaces to be exceeded. See "
638 "B<user_namespaces>(7)."
639 msgstr ""
640 "Флаг B<CLONE_NEWUSER> указан в I<flags>, и вызов привёл бы к превышению "
641 "ограничения на количество вложенных пользовательских пространств имён. "
642 "Смотрите B<user_namespaces>(7)."
643
644 #. type: Plain text
645 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
646 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
647 msgid ""
648 "From Linux 3.11 to Linux 4.8, the error diagnosed in this case was B<EUSERS>."
649 msgstr "В этом случае в Linux 3.11 по Linux 4.8 возвращалась ошибка B<EUSERS>."
650
651 #. type: TP
652 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
653 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
654 #, no-wrap
655 msgid "B<ENOSPC> (since Linux 4.9)"
656 msgstr "B<ENOSPC> (начиная с Linux 4.9)"
657
658 #. type: Plain text
659 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
660 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
661 msgid ""
662 "One of the values in I<flags> specified the creation of a new user "
663 "namespace, but doing so would have caused the limit defined by the "
664 "corresponding file in I</proc/sys/user> to be exceeded. For further "
665 "details, see B<namespaces>(7)."
666 msgstr ""
667 "Одним из значений в I<flags> задаётся создание нового пространства "
668 "пространства имён пользователя, но это превысило бы ограничение, "
669 "определённое в соответствующем файле в каталоге I</proc/sys/user>. "
670 "Дополнительную информацию смотрите в B<namespaces>(7)."
671
672 #. type: TP
673 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
674 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
675 #, no-wrap
676 msgid "B<EPERM>"
677 msgstr "B<EPERM>"
678
679 #. type: Plain text
680 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
681 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
682 msgid ""
683 "The calling process did not have the required privileges for this operation."
684 msgstr "Вызывающий процесс не имеет требуемых привилегий для этой операции."
685
686 #. type: Plain text
687 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
688 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
689 msgid ""
690 "B<CLONE_NEWUSER> was specified in I<flags>, but either the effective user ID "
691 "or the effective group ID of the caller does not have a mapping in the "
692 "parent namespace (see B<user_namespaces>(7))."
693 msgstr ""
694 "Флаг B<CLONE_NEWUSER> указан в I<flags>, но эффективный пользовательский ID "
695 "или эффективный ID группы вызывающего не отображён в родительское "
696 "пространство имён (смотрите B<user_namespaces>(7))."
697
698 #. type: TP
699 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
700 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
701 #, no-wrap
702 msgid "B<EPERM> (since Linux 3.9)"
703 msgstr "B<EPERM> (начиная с Linux 3.9)"
704
705 #. commit 3151527ee007b73a0ebd296010f1c0454a919c7d
706 #. FIXME What is the rationale for this restriction?
707 #. type: Plain text
708 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
709 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
710 msgid ""
711 "B<CLONE_NEWUSER> was specified in I<flags> and the caller is in a chroot "
712 "environment (i.e., the caller's root directory does not match the root "
713 "directory of the mount namespace in which it resides)."
714 msgstr ""
715 "В I<flags> был указан флаг B<CLONE_NEWUSER> и вызывающий выполняется в "
716 "окружении chroot (т. е. корневой каталог вызывающего не совпадает с корневым "
717 "каталогом пространства имён монтирования, в котором он находится)."
718
719 #. type: TP
720 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
721 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
722 #, no-wrap
723 msgid "B<EUSERS> (from Linux 3.11 to Linux 4.8)"
724 msgstr "B<EUSERS> (Linux 3.11 по Linux 4.8)"
725
726 #. type: Plain text
727 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
728 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
729 msgid ""
730 "B<CLONE_NEWUSER> was specified in I<flags>, and the limit on the number of "
731 "nested user namespaces would be exceeded. See the discussion of the "
732 "B<ENOSPC> error above."
733 msgstr ""
734 "Флаг B<CLONE_NEWUSER> указан в I<flags>, и вызов привёл бы к превышению "
735 "ограничения на количество вложенных пользовательских пространств имён. "
736 "Смотрите описание ошибки B<ENOSPC>, представленное выше."
737
738 #. type: SH
739 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
740 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
741 #, no-wrap
742 msgid "STANDARDS"
743 msgstr "СТАНДАРТЫ"
744
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 "Linux."
749 msgstr "Linux."
750
751 #. type: SH
752 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
753 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
754 #, no-wrap
755 msgid "HISTORY"
756 msgstr "ИСТОРИЯ"
757
758 #. type: Plain text
759 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
760 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
761 msgid "Linux 2.6.16."
762 msgstr "Linux 2.6.16."
763
764 #. type: SH
765 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
766 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
767 #, no-wrap
768 msgid "NOTES"
769 msgstr "ПРИМЕЧАНИЯ"
770
771 #. #-#-#-#-# archlinux: unshare.2.pot (PACKAGE VERSION) #-#-#-#-#
772 #. FIXME all of the following needs to be reviewed for the current kernel
773 #. However, we can do unshare(CLONE_SIGHAND) if CLONE_SIGHAND
774 #. was not specified when doing clone(); i.e., unsharing
775 #. signal handlers is permitted if we are not actually
776 #. sharing signal handlers. mtk
777 #. However, we can do unshare(CLONE_VM) if CLONE_VM
778 #. was not specified when doing clone(); i.e., unsharing
779 #. virtual memory is permitted if we are not actually
780 #. sharing virtual memory. mtk
781 #. 9) Future Work
782 #. --------------
783 #. The current implementation of unshare does not allow unsharing of
784 #. signals and signal handlers. Signals are complex to begin with and
785 #. to unshare signals and/or signal handlers of a currently running
786 #. process is even more complex. If in the future there is a specific
787 #. need to allow unsharing of signals and/or signal handlers, it can
788 #. be incrementally added to unshare without affecting legacy
789 #. applications using unshare.
790 #. type: Plain text
791 #. #-#-#-#-# debian-trixie: unshare.2.pot (PACKAGE VERSION) #-#-#-#-#
792 #. FIXME all of the following needs to be reviewed for the current kernel
793 #. However, we can do unshare(CLONE_SIGHAND) if CLONE_SIGHAND
794 #. was not specified when doing clone(); i.e., unsharing
795 #. signal handlers is permitted if we are not actually
796 #. sharing signal handlers. mtk
797 #. However, we can do unshare(CLONE_VM) if CLONE_VM
798 #. was not specified when doing clone(); i.e., unsharing
799 #. virtual memory is permitted if we are not actually
800 #. sharing virtual memory. mtk
801 #. 9) Future Work
802 #. --------------
803 #. The current implementation of unshare does not allow unsharing of
804 #. signals and signal handlers. Signals are complex to begin with and
805 #. to unshare signals and/or signal handlers of a currently running
806 #. process is even more complex. If in the future there is a specific
807 #. need to allow unsharing of signals and/or signal handlers, it can
808 #. be incrementally added to unshare without affecting legacy
809 #. applications using unshare.
810 #. type: Plain text
811 #. #-#-#-#-# debian-unstable: unshare.2.pot (PACKAGE VERSION) #-#-#-#-#
812 #. FIXME all of the following needs to be reviewed for the current kernel
813 #. However, we can do unshare(CLONE_SIGHAND) if CLONE_SIGHAND
814 #. was not specified when doing clone(); i.e., unsharing
815 #. signal handlers is permitted if we are not actually
816 #. sharing signal handlers. mtk
817 #. However, we can do unshare(CLONE_VM) if CLONE_VM
818 #. was not specified when doing clone(); i.e., unsharing
819 #. virtual memory is permitted if we are not actually
820 #. sharing virtual memory. mtk
821 #. 9) Future Work
822 #. --------------
823 #. The current implementation of unshare does not allow unsharing of
824 #. signals and signal handlers. Signals are complex to begin with and
825 #. to unshare signals and/or signal handlers of a currently running
826 #. process is even more complex. If in the future there is a specific
827 #. need to allow unsharing of signals and/or signal handlers, it can
828 #. be incrementally added to unshare without affecting legacy
829 #. applications using unshare.
830 #. type: Plain text
831 #. #-#-#-#-# fedora-44: unshare.2.pot (PACKAGE VERSION) #-#-#-#-#
832 #. FIXME all of the following needs to be reviewed for the current kernel
833 #. However, we can do unshare(CLONE_SIGHAND) if CLONE_SIGHAND
834 #. was not specified when doing clone(); i.e., unsharing
835 #. signal handlers is permitted if we are not actually
836 #. sharing signal handlers. mtk
837 #. However, we can do unshare(CLONE_VM) if CLONE_VM
838 #. was not specified when doing clone(); i.e., unsharing
839 #. virtual memory is permitted if we are not actually
840 #. sharing virtual memory. mtk
841 #. 9) Future Work
842 #. --------------
843 #. The current implementation of unshare does not allow unsharing of
844 #. signals and signal handlers. Signals are complex to begin with and
845 #. to unshare signals and/or signal handlers of a currently running
846 #. process is even more complex. If in the future there is a specific
847 #. need to allow unsharing of signals and/or signal handlers, it can
848 #. be incrementally added to unshare without affecting legacy
849 #. applications using unshare.
850 #. type: Plain text
851 #. #-#-#-#-# fedora-rawhide: unshare.2.pot (PACKAGE VERSION) #-#-#-#-#
852 #. FIXME all of the following needs to be reviewed for the current kernel
853 #. However, we can do unshare(CLONE_SIGHAND) if CLONE_SIGHAND
854 #. was not specified when doing clone(); i.e., unsharing
855 #. signal handlers is permitted if we are not actually
856 #. sharing signal handlers. mtk
857 #. However, we can do unshare(CLONE_VM) if CLONE_VM
858 #. was not specified when doing clone(); i.e., unsharing
859 #. virtual memory is permitted if we are not actually
860 #. sharing virtual memory. mtk
861 #. 9) Future Work
862 #. --------------
863 #. The current implementation of unshare does not allow unsharing of
864 #. signals and signal handlers. Signals are complex to begin with and
865 #. to unshare signals and/or signal handlers of a currently running
866 #. process is even more complex. If in the future there is a specific
867 #. need to allow unsharing of signals and/or signal handlers, it can
868 #. be incrementally added to unshare without affecting legacy
869 #. applications using unshare.
870 #. type: Plain text
871 #. #-#-#-#-# mageia-cauldron: unshare.2.pot (PACKAGE VERSION) #-#-#-#-#
872 #. FIXME all of the following needs to be reviewed for the current kernel
873 #. However, we can do unshare(CLONE_SIGHAND) if CLONE_SIGHAND
874 #. was not specified when doing clone(); i.e., unsharing
875 #. signal handlers is permitted if we are not actually
876 #. sharing signal handlers. mtk
877 #. However, we can do unshare(CLONE_VM) if CLONE_VM
878 #. was not specified when doing clone(); i.e., unsharing
879 #. virtual memory is permitted if we are not actually
880 #. sharing virtual memory. mtk
881 #. 9) Future Work
882 #. --------------
883 #. The current implementation of unshare does not allow unsharing of
884 #. signals and signal handlers. Signals are complex to begin with and
885 #. to unshare signals and/or signal handlers of a currently running
886 #. process is even more complex. If in the future there is a specific
887 #. need to allow unsharing of signals and/or signal handlers, it can
888 #. be incrementally added to unshare without affecting legacy
889 #. applications using unshare.
890 #. type: Plain text
891 #. #-#-#-#-# opensuse-leap-16-1: unshare.2.pot (PACKAGE VERSION) #-#-#-#-#
892 #. FIXME all of the following needs to be reviewed for the current kernel
893 #. However, we can do unshare(CLONE_SIGHAND) if CLONE_SIGHAND
894 #. was not specified when doing clone(); i.e., unsharing
895 #. signal handlers is permitted if we are not actually
896 #. sharing signal handlers. mtk
897 #. However, we can do unshare(CLONE_VM) if CLONE_VM
898 #. was not specified when doing clone(); i.e., unsharing
899 #. virtual memory is permitted if we are not actually
900 #. sharing virtual memory. mtk
901 #. 9) Future Work
902 #. --------------
903 #. The current implementation of unshare does not allow unsharing of
904 #. signals and signal handlers. Signals are complex to begin with and
905 #. to unshare signals and/or signal handlers of a currently running
906 #. process is even more complex. If in the future there is a specific
907 #. need to allow unsharing of signals and/or signal handlers, it can
908 #. be incrementally added to unshare without affecting legacy
909 #. applications using unshare.
910 #. type: Plain text
911 #. #-#-#-#-# opensuse-tumbleweed: unshare.2.pot (PACKAGE VERSION) #-#-#-#-#
912 #. FIXME all of the following needs to be reviewed for the current kernel
913 #. However, we can do unshare(CLONE_SIGHAND) if CLONE_SIGHAND
914 #. was not specified when doing clone(); i.e., unsharing
915 #. signal handlers is permitted if we are not actually
916 #. sharing signal handlers. mtk
917 #. However, we can do unshare(CLONE_VM) if CLONE_VM
918 #. was not specified when doing clone(); i.e., unsharing
919 #. virtual memory is permitted if we are not actually
920 #. sharing virtual memory. mtk
921 #. 9) Future Work
922 #. --------------
923 #. The current implementation of unshare does not allow unsharing of
924 #. signals and signal handlers. Signals are complex to begin with and
925 #. to unshare signals and/or signal handlers of a currently running
926 #. process is even more complex. If in the future there is a specific
927 #. need to allow unsharing of signals and/or signal handlers, it can
928 #. be incrementally added to unshare without affecting legacy
929 #. applications using unshare.
930 #. type: Plain text
931 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
932 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
933 msgid ""
934 "Not all of the process attributes that can be shared when a new process is "
935 "created using B<clone>(2) can be unshared using B<unshare>(). In "
936 "particular, as at kernel 3.8, B<unshare>() does not implement flags that "
937 "reverse the effects of B<CLONE_SIGHAND>, B<CLONE_THREAD>, or B<CLONE_VM>. "
938 "Such functionality may be added in the future, if required."
939 msgstr ""
940 "Не все атрибуты процесса, которые могут использоваться совместно при "
941 "создании нового процесса с помощью B<clone>(2), могут быть отделены с "
942 "помощью B<unshare>(). В частности, начиная с ядра 3.8 в B<unshare>() не "
943 "реализована поддержка флагов, которые были имели обратное действие "
944 "B<CLONE_SIGHAND>, B<CLONE_THREAD> или B<CLONE_VM>. Эти возможности могут "
945 "быть добавлены позднее, если потребуется."
946
947 #. type: Plain text
948 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
949 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
950 msgid ""
951 "Creating all kinds of namespace, except user namespaces, requires the "
952 "B<CAP_SYS_ADMIN> capability. However, since creating a user namespace "
953 "automatically confers a full set of capabilities, creating both a user "
954 "namespace and any other type of namespace in the same B<unshare>() call "
955 "does not require the B<CAP_SYS_ADMIN> capability in the original namespace."
956 msgstr ""
957
958 #. type: SH
959 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
960 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
961 #, no-wrap
962 msgid "EXAMPLES"
963 msgstr "ПРИМЕРЫ"
964
965 #. type: Plain text
966 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
967 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
968 msgid ""
969 "The program below provides a simple implementation of the B<unshare>(1) "
970 "command, which unshares one or more namespaces and executes the command "
971 "supplied in its command-line arguments. Here's an example of the use of "
972 "this program, running a shell in a new mount namespace, and verifying that "
973 "the original shell and the new shell are in separate mount namespaces:"
974 msgstr ""
975 "Программа, представленная далее, предоставляет простую реализацию команды "
976 "B<unshare>(1), которая отключает использование одного или более пространств "
977 "имён и выполняет команду, переданную в аргументах командной строки. Вот "
978 "пример использования этой программы; запускается оболочка в новом "
979 "пространстве имён монтирования и проверяется, что первоначальная оболочка и "
980 "новая оболочка находятся в разных пространствах имён монтирования:"
981
982 #. type: Plain text
983 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
984 #: opensuse-tumbleweed
985 #, fuzzy, no-wrap
986 #| msgid ""
987 #| "$ B<readlink /proc/$$/ns/mnt>\n"
988 #| "mnt:[4026531840]\n"
989 #| "$ B<sudo ./unshare -m /bin/bash>\n"
990 #| "# B<readlink /proc/$$/ns/mnt>\n"
991 #| "mnt:[4026532325]\n"
992 msgid ""
993 "$B< readlink /proc/$$/ns/mnt>;\n"
994 "mnt:[4026531840]\n"
995 "$B< sudo ./unshare -m /bin/bash>;\n"
996 "#B< readlink /proc/$$/ns/mnt>;\n"
997 "mnt:[4026532325]\n"
998 msgstr ""
999 "$ B<readlink /proc/$$/ns/mnt>\n"
1000 "mnt:[4026531840]\n"
1001 "$ B<sudo ./unshare -m /bin/bash>\n"
1002 "# B<readlink /proc/$$/ns/mnt>\n"
1003 "mnt:[4026532325]\n"
1004
1005 #. type: Plain text
1006 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1007 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1008 msgid ""
1009 "The differing output of the two B<readlink>(1) commands shows that the two "
1010 "shells are in different mount namespaces."
1011 msgstr ""
1012 "Различающийся вывод двух команд B<readlink>(1) показывает, что две оболочки "
1013 "находятся в разных пространствах имён монтирования."
1014
1015 #. type: SS
1016 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1017 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1018 #, no-wrap
1019 msgid "Program source"
1020 msgstr "Исходный код программы"
1021
1022 #. type: Plain text
1023 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1024 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1025 #, no-wrap
1026 msgid ""
1027 "/* unshare.c\n"
1028 "\\&\n"
1029 " A simple implementation of the unshare(1) command: unshare\n"
1030 " namespaces and execute a command.\n"
1031 "*/\n"
1032 "#define _GNU_SOURCE\n"
1033 "#include E<lt>err.hE<gt>\n"
1034 "#include E<lt>sched.hE<gt>\n"
1035 "#include E<lt>stdio.hE<gt>\n"
1036 "#include E<lt>stdlib.hE<gt>\n"
1037 "#include E<lt>unistd.hE<gt>\n"
1038 "\\&\n"
1039 "static void\n"
1040 "usage(char *pname)\n"
1041 "{\n"
1042 " fprintf(stderr, \"Usage: %s [options] program [arg...]\\[rs]n\", pname);\n"
1043 " fprintf(stderr, \"Options can be:\\[rs]n\");\n"
1044 " fprintf(stderr, \" -C unshare cgroup namespace\\[rs]n\");\n"
1045 " fprintf(stderr, \" -i unshare IPC namespace\\[rs]n\");\n"
1046 " fprintf(stderr, \" -m unshare mount namespace\\[rs]n\");\n"
1047 " fprintf(stderr, \" -n unshare network namespace\\[rs]n\");\n"
1048 " fprintf(stderr, \" -p unshare PID namespace\\[rs]n\");\n"
1049 " fprintf(stderr, \" -t unshare time namespace\\[rs]n\");\n"
1050 " fprintf(stderr, \" -u unshare UTS namespace\\[rs]n\");\n"
1051 " fprintf(stderr, \" -U unshare user namespace\\[rs]n\");\n"
1052 " exit(EXIT_FAILURE);\n"
1053 "}\n"
1054 "\\&\n"
1055 "int\n"
1056 "main(int argc, char *argv[])\n"
1057 "{\n"
1058 " int flags, opt;\n"
1059 "\\&\n"
1060 " flags = 0;\n"
1061 "\\&\n"
1062 " while ((opt = getopt(argc, argv, \"CimnptuU\")) != -1) {\n"
1063 " switch (opt) {\n"
1064 " case \\[aq]C\\[aq]: flags |= CLONE_NEWCGROUP; break;\n"
1065 " case \\[aq]i\\[aq]: flags |= CLONE_NEWIPC; break;\n"
1066 " case \\[aq]m\\[aq]: flags |= CLONE_NEWNS; break;\n"
1067 " case \\[aq]n\\[aq]: flags |= CLONE_NEWNET; break;\n"
1068 " case \\[aq]p\\[aq]: flags |= CLONE_NEWPID; break;\n"
1069 " case \\[aq]t\\[aq]: flags |= CLONE_NEWTIME; break;\n"
1070 " case \\[aq]u\\[aq]: flags |= CLONE_NEWUTS; break;\n"
1071 " case \\[aq]U\\[aq]: flags |= CLONE_NEWUSER; break;\n"
1072 " default: usage(argv[0]);\n"
1073 " }\n"
1074 " }\n"
1075 "\\&\n"
1076 " if (optind E<gt>= argc)\n"
1077 " usage(argv[0]);\n"
1078 "\\&\n"
1079 " if (unshare(flags) == -1)\n"
1080 " err(EXIT_FAILURE, \"unshare\");\n"
1081 "\\&\n"
1082 " execvp(argv[optind], &argv[optind]);\n"
1083 " err(EXIT_FAILURE, \"execvp\");\n"
1084 "}\n"
1085 msgstr ""
1086
1087 #. SRC END
1088 #. type: SH
1089 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1090 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1091 #, no-wrap
1092 msgid "SEE ALSO"
1093 msgstr "СМОТРИТЕ ТАКЖЕ"
1094
1095 #. type: Plain text
1096 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1097 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1098 msgid ""
1099 "B<unshare>(1), B<clone>(2), B<fork>(2), B<kcmp>(2), B<setns>(2), "
1100 "B<vfork>(2), B<namespaces>(7)"
1101 msgstr ""
1102 "B<unshare>(1), B<clone>(2), B<fork>(2), B<kcmp>(2), B<setns>(2), "
1103 "B<vfork>(2), B<namespaces>(7)"
1104
1105 #. type: Plain text
1106 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
1107 #: opensuse-tumbleweed
1108 #, fuzzy
1109 #| msgid ""
1110 #| "I<Documentation/userspace-api/unshare.rst> in the Linux kernel source "
1111 #| "tree (or I<Documentation/unshare.txt> before Linux 4.12)"
1112 msgid ""
1113 "I<Documentation/userspace-api/unshare.rst> in the Linux kernel source tree"
1114 msgstr ""
1115 "Файл I<Documentation/userspace-api/unshare.rst> из дерева исходного кода "
1116 "ядра Linux (или I<Documentation/unshare.txt> до Linux 4.12)"
1117
1118 #. type: TH
1119 #: debian-trixie
1120 #, no-wrap
1121 msgid "2024-06-15"
1122 msgstr "15 июня 2024 г."
1123
1124 #. type: TH
1125 #: debian-trixie
1126 #, no-wrap
1127 msgid "Linux man-pages 6.9.1"
1128 msgstr "Страницы руководства Linux 6.9.1"
1129
1130 #. type: Plain text
1131 #: debian-trixie
1132 msgid "Standard C library (I<libc>, I<-lc>)"
1133 msgstr "Стандартная библиотека языка C (I<libc>, I<-lc>)"
1134
1135 #. type: Plain text
1136 #: debian-trixie fedora-44 fedora-rawhide
1137 msgid ""
1138 "On success, zero returned. On failure, -1 is returned and I<errno> is set "
1139 "to indicate the error."
1140 msgstr ""
1141 "При успешном выполнении возвращается 0. При ошибке возвращается -1, а "
1142 "I<errno> присваивается значение ошибки."
1143
1144 #. type: Plain text
1145 #: debian-trixie fedora-44 fedora-rawhide
1146 #, no-wrap
1147 msgid ""
1148 "$ B<readlink /proc/$$/ns/mnt>\n"
1149 "mnt:[4026531840]\n"
1150 "$ B<sudo ./unshare -m /bin/bash>\n"
1151 "# B<readlink /proc/$$/ns/mnt>\n"
1152 "mnt:[4026532325]\n"
1153 msgstr ""
1154 "$ B<readlink /proc/$$/ns/mnt>\n"
1155 "mnt:[4026531840]\n"
1156 "$ B<sudo ./unshare -m /bin/bash>\n"
1157 "# B<readlink /proc/$$/ns/mnt>\n"
1158 "mnt:[4026532325]\n"
1159
1160 #. commit f504d47be5e8fa7ecf2bf660b18b42e6960c0eb2
1161 #. type: Plain text
1162 #: debian-trixie fedora-44 fedora-rawhide
1163 msgid ""
1164 "I<Documentation/userspace-api/unshare.rst> in the Linux kernel source tree "
1165 "(or I<Documentation/unshare.txt> before Linux 4.12)"
1166 msgstr ""
1167 "Файл I<Documentation/userspace-api/unshare.rst> из дерева исходного кода "
1168 "ядра Linux (или I<Documentation/unshare.txt> до Linux 4.12)"
1169
1170 #. type: TH
1171 #: fedora-44 fedora-rawhide
1172 #, no-wrap
1173 msgid "2024-07-23"
1174 msgstr "23 июля 2024 г."
1175
1176 #. type: TH
1177 #: fedora-44 fedora-rawhide
1178 #, no-wrap
1179 msgid "Linux man-pages 6.13"
1180 msgstr "Страницы руководства Linux 6.13"
1181
1182 #. type: TH
1183 #: mageia-cauldron
1184 #, no-wrap
1185 msgid "Linux man-pages 6.17"
1186 msgstr "Страницы руководства Linux 6.17"
1187
1188 #. type: TH
1189 #: opensuse-leap-16-1 opensuse-tumbleweed
1190 #, no-wrap
1191 msgid "Linux man-pages (unreleased)"
1192 msgstr "Страницы руководства Linux (не выпущены)"