| 1 |
# Russian translation of manpages |
| 2 |
# This file is distributed under the same license as the manpages-l10n package. |
| 3 |
# Copyright © of this file: |
| 4 |
# Azamat Hackimov <[email protected]>, 2014. |
| 5 |
# Dmitriy S. Seregin <[email protected]>, 2013. |
| 6 |
# Dmitry Bolkhovskikh <[email protected]>, 2017. |
| 7 |
# Katrin Kutepova <[email protected]>, 2018. |
| 8 |
# Yuri Kozlov <[email protected]>, 2011-2019. |
| 9 |
# Иван Павлов <[email protected]>, 2017. |
| 10 |
msgid "" |
| 11 |
msgstr "" |
| 12 |
"Project-Id-Version: manpages-l10n\n" |
| 13 |
"POT-Creation-Date: 2026-06-05 06:20+0200\n" |
| 14 |
"PO-Revision-Date: 2024-12-21 19: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 "capget" |
| 31 |
msgstr "capget" |
| 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 "capget, capset - set/get capabilities of thread(s)" |
| 58 |
msgstr "capget, capset - установка/получение мандатов нити(ей)" |
| 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<#include E<lt>linux/capability.hE<gt>> /* Definition of B<CAP_*> and\n" |
| 86 |
"B< _LINUX_CAPABILITY_*> constants */\n" |
| 87 |
"B<#include E<lt>sys/syscall.hE<gt>> /* Definition of B<SYS_*> constants */\n" |
| 88 |
"B<#include E<lt>unistd.hE<gt>>\n" |
| 89 |
msgstr "" |
| 90 |
"B<#include E<lt>linux/capability.hE<gt>> /* Определение констант B<CAP_*> и\n" |
| 91 |
"B< _LINUX_CAPABILITY_*> */\n" |
| 92 |
"B<#include E<lt>sys/syscall.hE<gt>> /* Определение констант B<SYS_*> */\n" |
| 93 |
"B<#include E<lt>unistd.hE<gt>>\n" |
| 94 |
|
| 95 |
#. type: Plain text |
| 96 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 97 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 98 |
#, no-wrap |
| 99 |
msgid "" |
| 100 |
"B<int syscall(SYS_capget, cap_user_header_t >I<hdrp>B<,>\n" |
| 101 |
"B< cap_user_data_t >I<datap>B<);>\n" |
| 102 |
"B<int syscall(SYS_capset, cap_user_header_t >I<hdrp>B<,>\n" |
| 103 |
"B< const cap_user_data_t >I<datap>B<);>\n" |
| 104 |
msgstr "" |
| 105 |
"B<int syscall(SYS_capget, cap_user_header_t >I<hdrp>B<,>\n" |
| 106 |
"B< cap_user_data_t >I<datap>B<);>\n" |
| 107 |
"B<int syscall(SYS_capset, cap_user_header_t >I<hdrp>B<,>\n" |
| 108 |
"B< const cap_user_data_t >I<datap>B<);>\n" |
| 109 |
|
| 110 |
#. type: Plain text |
| 111 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 112 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 113 |
msgid "" |
| 114 |
"I<Note>: glibc provides no wrappers for these system calls, necessitating " |
| 115 |
"the use of B<syscall>(2)." |
| 116 |
msgstr "" |
| 117 |
"I<Примечание>: glibc не предоставляет обёрточных функций для этих системных " |
| 118 |
"вызовов, что делает необходимым использование B<syscall>(2)." |
| 119 |
|
| 120 |
#. type: SH |
| 121 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 122 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 123 |
#, no-wrap |
| 124 |
msgid "DESCRIPTION" |
| 125 |
msgstr "ОПИСАНИЕ" |
| 126 |
|
| 127 |
#. type: Plain text |
| 128 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 129 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 130 |
msgid "" |
| 131 |
"These two system calls are the raw kernel interface for getting and setting " |
| 132 |
"thread capabilities. Not only are these system calls specific to Linux, but " |
| 133 |
"the kernel API is likely to change and use of these system calls (in " |
| 134 |
"particular the format of the I<cap_user_*_t> types) is subject to extension " |
| 135 |
"with each kernel revision, but old programs will keep working." |
| 136 |
msgstr "" |
| 137 |
"Данные системные вызовы представляют собой низкоуровневый интерфейс ядра для " |
| 138 |
"получения и установки мандатов нити. Кроме того, что эти системные вызовы " |
| 139 |
"есть только в Linux, из-за них, вероятно, изменится программный интерфейс " |
| 140 |
"ядра; с каждой новой версией ядра эти вызовы используются всё чаще (в " |
| 141 |
"частности, типы I<cap_user_*_t>), но старые программы работают как и прежде." |
| 142 |
|
| 143 |
#. type: Plain text |
| 144 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 145 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 146 |
msgid "" |
| 147 |
"The portable interfaces are B<cap_set_proc>(3) and B<cap_get_proc>(3); if " |
| 148 |
"possible, you should use those interfaces in applications; see NOTES." |
| 149 |
msgstr "" |
| 150 |
"Переносимыми интерфейсами являются B<cap_set_proc>(3) и B<cap_get_proc>(3); " |
| 151 |
"если возможно, в приложениях используйте именно их; смотрите ЗАМЕЧАНИЯ." |
| 152 |
|
| 153 |
#. type: SS |
| 154 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 155 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 156 |
#, no-wrap |
| 157 |
msgid "Current details" |
| 158 |
msgstr "Подробная информация" |
| 159 |
|
| 160 |
#. type: Plain text |
| 161 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 162 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 163 |
msgid "" |
| 164 |
"Now that you have been warned, some current kernel details. The structures " |
| 165 |
"are defined as follows." |
| 166 |
msgstr "На данный момент в ядре определены следующие структуры:" |
| 167 |
|
| 168 |
#. commit e338d263a76af78fe8f38a72131188b58fceb591 |
| 169 |
#. Added 64 bit capability support |
| 170 |
#. commit ca05a99a54db1db5bca72eccb5866d2a86f8517f |
| 171 |
#. type: Plain text |
| 172 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 173 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 174 |
#, no-wrap |
| 175 |
msgid "" |
| 176 |
"#define _LINUX_CAPABILITY_VERSION_1 0x19980330\n" |
| 177 |
"#define _LINUX_CAPABILITY_U32S_1 1\n" |
| 178 |
"\\&\n" |
| 179 |
" /* V2 added in Linux 2.6.25; deprecated */\n" |
| 180 |
"#define _LINUX_CAPABILITY_VERSION_2 0x20071026\n" |
| 181 |
"#define _LINUX_CAPABILITY_U32S_2 2\n" |
| 182 |
"\\&\n" |
| 183 |
" /* V3 added in Linux 2.6.26 */\n" |
| 184 |
"#define _LINUX_CAPABILITY_VERSION_3 0x20080522\n" |
| 185 |
"#define _LINUX_CAPABILITY_U32S_3 2\n" |
| 186 |
"\\&\n" |
| 187 |
"typedef struct __user_cap_header_struct {\n" |
| 188 |
" __u32 version;\n" |
| 189 |
" int pid;\n" |
| 190 |
"} *cap_user_header_t;\n" |
| 191 |
"\\&\n" |
| 192 |
"typedef struct __user_cap_data_struct {\n" |
| 193 |
" __u32 effective;\n" |
| 194 |
" __u32 permitted;\n" |
| 195 |
" __u32 inheritable;\n" |
| 196 |
"} *cap_user_data_t;\n" |
| 197 |
msgstr "" |
| 198 |
"#define _LINUX_CAPABILITY_VERSION_1 0x19980330\n" |
| 199 |
"#define _LINUX_CAPABILITY_U32S_1 1\n" |
| 200 |
"\\&\n" |
| 201 |
" /* V2 added in Linux 2.6.25; deprecated */\n" |
| 202 |
"#define _LINUX_CAPABILITY_VERSION_2 0x20071026\n" |
| 203 |
"#define _LINUX_CAPABILITY_U32S_2 2\n" |
| 204 |
"\\&\n" |
| 205 |
" /* V3 added in Linux 2.6.26 */\n" |
| 206 |
"#define _LINUX_CAPABILITY_VERSION_3 0x20080522\n" |
| 207 |
"#define _LINUX_CAPABILITY_U32S_3 2\n" |
| 208 |
"\\&\n" |
| 209 |
"typedef struct __user_cap_header_struct {\n" |
| 210 |
" __u32 version;\n" |
| 211 |
" int pid;\n" |
| 212 |
"} *cap_user_header_t;\n" |
| 213 |
"\\&\n" |
| 214 |
"typedef struct __user_cap_data_struct {\n" |
| 215 |
" __u32 effective;\n" |
| 216 |
" __u32 permitted;\n" |
| 217 |
" __u32 inheritable;\n" |
| 218 |
"} *cap_user_data_t;\n" |
| 219 |
|
| 220 |
#. type: Plain text |
| 221 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 222 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 223 |
msgid "" |
| 224 |
"The I<effective>, I<permitted>, and I<inheritable> fields are bit masks of " |
| 225 |
"the capabilities defined in B<capabilities>(7). Note that the B<CAP_*> " |
| 226 |
"values are bit indexes and need to be bit-shifted before ORing into the bit " |
| 227 |
"fields. To define the structures for passing to the system call, you have " |
| 228 |
"to use the I<struct __user_cap_header_struct> and I<struct " |
| 229 |
"__user_cap_data_struct> names because the typedefs are only pointers." |
| 230 |
msgstr "" |
| 231 |
"Поля I<effective>, I<permitted> и I<inheritable> — это битовые маски " |
| 232 |
"мандатов, определённых в B<capabilities>(7). Заметим, что значения B<CAP_*> " |
| 233 |
"являются индексами битов и требуется сдвиг битов перед выполнением операции " |
| 234 |
"ИЛИ над битовыми полями. Чтобы определить структуры для передачи в системный " |
| 235 |
"вызов, используйте имена I<struct __user_cap_header_struct> и I<struct " |
| 236 |
"__user_cap_data_struct>, так как посредством typedef описаны только " |
| 237 |
"указатели." |
| 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 |
#, fuzzy |
| 243 |
#| msgid "" |
| 244 |
#| "Kernels prior to 2.6.25 prefer 32-bit capabilities with version " |
| 245 |
#| "B<_LINUX_CAPABILITY_VERSION_1>. Linux 2.6.25 added 64-bit capability " |
| 246 |
#| "sets, with version B<_LINUX_CAPABILITY_VERSION_2>. There was, however, " |
| 247 |
#| "an API glitch, and Linux 2.6.26 added B<_LINUX_CAPABILITY_VERSION_3> to " |
| 248 |
#| "fix the problem." |
| 249 |
msgid "" |
| 250 |
"Kernels prior to Linux 2.6.25 prefer 32-bit capabilities with version " |
| 251 |
"B<_LINUX_CAPABILITY_VERSION_1>. Linux 2.6.25 added 64-bit capability sets, " |
| 252 |
"with version B<_LINUX_CAPABILITY_VERSION_2>. There was, however, an API " |
| 253 |
"glitch, and Linux 2.6.26 added B<_LINUX_CAPABILITY_VERSION_3> to fix the " |
| 254 |
"problem." |
| 255 |
msgstr "" |
| 256 |
"Ядра до версии 2.6.25 предъявляют 32-битные мандаты с версией " |
| 257 |
"B<_LINUX_CAPABILITY_VERSION_1>. В Linux 2.6.25+ добавлены 64-битные наборы " |
| 258 |
"мандатов с версией B<_LINUX_CAPABILITY_VERSION_2>. Однако имеется " |
| 259 |
"незначительная проблема в программном интерфейсе и в Linux 2.6.26 добавлена " |
| 260 |
"B<_LINUX_CAPABILITY_VERSION_3> для её исправления." |
| 261 |
|
| 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 |
"Note that 64-bit capabilities use I<datap[0]> and I<datap[1]>, whereas 32-" |
| 267 |
"bit capabilities use only I<datap[0]>." |
| 268 |
msgstr "" |
| 269 |
"Заметим, что в 64-битных мандатах используются I<datap[0]> и I<datap[1]>, в " |
| 270 |
"то время как в 32-битных только I<datap[0]>." |
| 271 |
|
| 272 |
#. type: Plain text |
| 273 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 274 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 275 |
msgid "" |
| 276 |
"On kernels that support file capabilities (VFS capabilities support), these " |
| 277 |
"system calls behave slightly differently. This support was added as an " |
| 278 |
"option in Linux 2.6.24, and became fixed (nonoptional) in Linux 2.6.33." |
| 279 |
msgstr "" |
| 280 |
"В ядрах, которые поддерживают файловые мандаты (поддержка мандатов VFS) эти " |
| 281 |
"системные вызовы ведут себя немного по-другому. Данная поддержка добавлена " |
| 282 |
"как необязательная в Linux 2.6.24 и стала постоянной (не отключаемой) в " |
| 283 |
"Linux 2.6.33." |
| 284 |
|
| 285 |
#. type: Plain text |
| 286 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 287 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 288 |
msgid "" |
| 289 |
"For B<capget>() calls, one can probe the capabilities of any process by " |
| 290 |
"specifying its process ID with the I<hdrp-E<gt>pid> field value." |
| 291 |
msgstr "" |
| 292 |
"С помощью вызова B<capget>() можно выполнить проверку мандатов любого " |
| 293 |
"процесса, указав его ID в поле I<hdrp-E<gt>pid>." |
| 294 |
|
| 295 |
#. type: Plain text |
| 296 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 297 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 298 |
msgid "For details on the data, see B<capabilities>(7)." |
| 299 |
msgstr "Подробную информацию о данных смотрите в B<capabilities>(7)." |
| 300 |
|
| 301 |
#. type: SS |
| 302 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 303 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 304 |
#, no-wrap |
| 305 |
msgid "With VFS capabilities support" |
| 306 |
msgstr "Ядро с поддержкой мандатов VFS" |
| 307 |
|
| 308 |
#. type: Plain text |
| 309 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 310 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 311 |
msgid "" |
| 312 |
"VFS capabilities employ a file extended attribute (see B<xattr>(7)) to " |
| 313 |
"allow capabilities to be attached to executables. This privilege model " |
| 314 |
"obsoletes kernel support for one process asynchronously setting the " |
| 315 |
"capabilities of another. That is, on kernels that have VFS capabilities " |
| 316 |
"support, when calling B<capset>(), the only permitted values for I<hdrp-" |
| 317 |
"E<gt>pid> are 0 or, equivalently, the value returned by B<gettid>(2)." |
| 318 |
msgstr "" |
| 319 |
"Для мандатов VFS используется расширенный атрибут файла (смотрите " |
| 320 |
"B<xattr>(7)), позволяющий присоединять мандаты к исполняемым файлам. Данная " |
| 321 |
"модель привилегий делает устаревшей ядерную поддержку асинхронного " |
| 322 |
"назначения мандатов одного процесса другому. То есть в ядрах с мандатами VFS " |
| 323 |
"при вызове B<capset>() разрешены только значения I<hdrp-E<gt>pid> равные 0 " |
| 324 |
"или B<gettid>(2), что приводит к тому же результату." |
| 325 |
|
| 326 |
#. type: SS |
| 327 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 328 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 329 |
#, no-wrap |
| 330 |
msgid "Without VFS capabilities support" |
| 331 |
msgstr "Ядро без поддержки мандатов VFS" |
| 332 |
|
| 333 |
#. type: Plain text |
| 334 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 335 |
#: opensuse-tumbleweed |
| 336 |
#, fuzzy |
| 337 |
#| msgid "" |
| 338 |
#| "On older kernels that do not provide VFS capabilities support " |
| 339 |
#| "B<capset>() can, if the caller has the B<CAP_SETPCAP> capability, be " |
| 340 |
#| "used to change not only the caller's own capabilities, but also the " |
| 341 |
#| "capabilities of other threads. The call operates on the capabilities of " |
| 342 |
#| "the thread specified by the I<pid> field of I<hdrp> when that is nonzero, " |
| 343 |
#| "or on the capabilities of the calling thread if I<pid> is 0. If I<pid> " |
| 344 |
#| "refers to a single-threaded process, then I<pid> can be specified as a " |
| 345 |
#| "traditional process ID; operating on a thread of a multithreaded process " |
| 346 |
#| "requires a thread ID of the type returned by B<gettid>(2). For " |
| 347 |
#| "B<capset>(), I<pid> can also be: -1, meaning perform the change on all " |
| 348 |
#| "threads except the caller and B<init>(1); or a value less than -1, in " |
| 349 |
#| "which case the change is applied to all members of the process group " |
| 350 |
#| "whose ID is -I<pid>." |
| 351 |
msgid "" |
| 352 |
"On older kernels that do not provide VFS capabilities support B<capset>() " |
| 353 |
"can, if the caller has the B<CAP_SETPCAP> capability, be used to change not " |
| 354 |
"only the caller's own capabilities, but also the capabilities of other " |
| 355 |
"threads. The call operates on the capabilities of the thread specified by " |
| 356 |
"the I<pid> field of I<hdrp> when that is nonzero, or on the capabilities of " |
| 357 |
"the calling thread if I<pid> is 0. If I<pid> refers to a single-threaded " |
| 358 |
"process, then I<pid> can be specified as a traditional process ID; operating " |
| 359 |
"on a thread of a multithreaded process requires a thread ID of the type " |
| 360 |
"returned by B<gettid>(2). For B<capset>(), I<pid> can also be: -1, meaning " |
| 361 |
"perform the change on all threads except the caller and B<init>(1); or a " |
| 362 |
"value less than -1, in which case the change is applied to all members of " |
| 363 |
"the process group whose ID is I<-pid>." |
| 364 |
msgstr "" |
| 365 |
"В старых ядрах без поддержки мандатов VFS вызов B<capset>(), если вызывающий " |
| 366 |
"имеет мандат B<CAP_SETPCAP>, можно использовать для изменения не только " |
| 367 |
"собственными мандатами вызывающего, то и мандатами других нитей. Вызов " |
| 368 |
"работает с мандатами нити, указанной в в поле I<pid> из I<hdrp>, если оно не " |
| 369 |
"равно нулю, или мандатами вызывающей нити, когда I<pid> равно 0. Если I<pid> " |
| 370 |
"указывает на процесс с одной нитью, то значением I<pid> может быть обычным " |
| 371 |
"идентификатором процесса; работа с нитью в многонитиевом процессе требует ID " |
| 372 |
"нити такого же типа, что и возвращается B<gettid>(2). У B<capset>() I<pid> " |
| 373 |
"также может быть: -1 — выполнить изменение у всех нитей, за исключением " |
| 374 |
"вызывающей и B<init>(1); меньше -1 — выполнить изменение всех членов группы " |
| 375 |
"процесса, чей ID равен -I<pid>." |
| 376 |
|
| 377 |
#. type: SH |
| 378 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 379 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 380 |
#, no-wrap |
| 381 |
msgid "RETURN VALUE" |
| 382 |
msgstr "ВОЗВРАЩАЕМОЕ ЗНАЧЕНИЕ" |
| 383 |
|
| 384 |
#. type: Plain text |
| 385 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 386 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 387 |
msgid "" |
| 388 |
"On success, zero is returned. On error, -1 is returned, and I<errno> is set " |
| 389 |
"to indicate the error." |
| 390 |
msgstr "" |
| 391 |
"При успешном выполнении возвращается 0. При ошибке возвращается -1, а в " |
| 392 |
"I<errno> содержится код ошибки." |
| 393 |
|
| 394 |
#. type: Plain text |
| 395 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 396 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 397 |
msgid "" |
| 398 |
"The calls fail with the error B<EINVAL>, and set the I<version> field of " |
| 399 |
"I<hdrp> to the kernel preferred value of B<_LINUX_CAPABILITY_VERSION_?> when " |
| 400 |
"an unsupported I<version> value is specified. In this way, one can probe " |
| 401 |
"what the current preferred capability revision is." |
| 402 |
msgstr "" |
| 403 |
"Вызовы завершаются с ошибкой B<EINVAL> и изменяют поле I<version> в I<hdrp> " |
| 404 |
"на предпочитаемое ядром значение B<_LINUX_CAPABILITY_VERSION_?>, если " |
| 405 |
"указано неподдерживаемое значение I<version>. Таким способом можно проверить " |
| 406 |
"какая версия мандатов является предпочтительной." |
| 407 |
|
| 408 |
#. type: SH |
| 409 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 410 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 411 |
#, no-wrap |
| 412 |
msgid "ERRORS" |
| 413 |
msgstr "ОШИБКИ" |
| 414 |
|
| 415 |
#. type: TP |
| 416 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 417 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 418 |
#, no-wrap |
| 419 |
msgid "B<EFAULT>" |
| 420 |
msgstr "B<EFAULT>" |
| 421 |
|
| 422 |
#. type: Plain text |
| 423 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 424 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 425 |
msgid "" |
| 426 |
"Bad memory address. I<hdrp> must not be NULL. I<datap> may be NULL only " |
| 427 |
"when the user is trying to determine the preferred capability version format " |
| 428 |
"supported by the kernel." |
| 429 |
msgstr "" |
| 430 |
"Неправильный адрес памяти. Значение I<hdrp> не должно быть равно NULL. " |
| 431 |
"Значение I<datap> может быть NULL только, когда пользователь пытается " |
| 432 |
"определить предпочтительную версию формата мандатов, поддерживаемую ядром." |
| 433 |
|
| 434 |
#. type: TP |
| 435 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 436 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 437 |
#, no-wrap |
| 438 |
msgid "B<EINVAL>" |
| 439 |
msgstr "B<EINVAL>" |
| 440 |
|
| 441 |
#. type: Plain text |
| 442 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 443 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 444 |
msgid "One of the arguments was invalid." |
| 445 |
msgstr "Один из аргументов неправилен." |
| 446 |
|
| 447 |
#. type: TP |
| 448 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 449 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 450 |
#, no-wrap |
| 451 |
msgid "B<EPERM>" |
| 452 |
msgstr "B<EPERM>" |
| 453 |
|
| 454 |
#. type: Plain text |
| 455 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 456 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 457 |
#, fuzzy |
| 458 |
#| msgid "" |
| 459 |
#| "An attempt was made to add a capability to the Permitted set, or to set a " |
| 460 |
#| "capability in the Effective or Inheritable sets that is not in the " |
| 461 |
#| "Permitted set." |
| 462 |
msgid "" |
| 463 |
"An attempt was made to add a capability to the permitted set, or to set a " |
| 464 |
"capability in the effective set that is not in the permitted set." |
| 465 |
msgstr "" |
| 466 |
"Была сделана попытка добавить мандат к списку разрешённых, эффективных или " |
| 467 |
"унаследованных мандатов, но это не разрешено согласно списку разрешённых." |
| 468 |
|
| 469 |
#. type: Plain text |
| 470 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 471 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 472 |
#, fuzzy |
| 473 |
#| msgid "" |
| 474 |
#| "An attempt was made to add a capability to the Permitted set, or to set a " |
| 475 |
#| "capability in the Effective or Inheritable sets that is not in the " |
| 476 |
#| "Permitted set." |
| 477 |
msgid "" |
| 478 |
"An attempt was made to add a capability to the inheritable set, and either:" |
| 479 |
msgstr "" |
| 480 |
"Была сделана попытка добавить мандат к списку разрешённых, эффективных или " |
| 481 |
"унаследованных мандатов, но это не разрешено согласно списку разрешённых." |
| 482 |
|
| 483 |
#. type: IP |
| 484 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 485 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 486 |
#, no-wrap |
| 487 |
msgid "\\[bu]" |
| 488 |
msgstr "\\[bu]" |
| 489 |
|
| 490 |
#. type: Plain text |
| 491 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 492 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 493 |
msgid "that capability was not in the caller's bounding set; or" |
| 494 |
msgstr "эта возможность не входила в ограничивающий набор вызывающего; или" |
| 495 |
|
| 496 |
#. type: Plain text |
| 497 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 498 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 499 |
msgid "" |
| 500 |
"the capability was not in the caller's permitted set and the caller lacked " |
| 501 |
"the B<CAP_SETPCAP> capability in its effective set." |
| 502 |
msgstr "" |
| 503 |
"возможность не входила в разрешенный набор вызывающей стороны, и у " |
| 504 |
"вызывающей стороны отсутствовала возможность B<CAP_SETPCAP> в ее эффективном " |
| 505 |
"наборе." |
| 506 |
|
| 507 |
#. type: Plain text |
| 508 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 509 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 510 |
#, fuzzy |
| 511 |
#| msgid "" |
| 512 |
#| "The caller attempted to use B<capset>() to modify the capabilities of a " |
| 513 |
#| "thread other than itself, but lacked sufficient privilege. For kernels " |
| 514 |
#| "supporting VFS capabilities, this is never permitted. For kernels " |
| 515 |
#| "lacking VFS support, the B<CAP_SETPCAP> capability is required. (A bug " |
| 516 |
#| "in kernels before 2.6.11 meant that this error could also occur if a " |
| 517 |
#| "thread without this capability tried to change its own capabilities by " |
| 518 |
#| "specifying the I<pid> field as a nonzero value (i.e., the value returned " |
| 519 |
#| "by B<getpid>(2)) instead of 0.)" |
| 520 |
msgid "" |
| 521 |
"The caller attempted to use B<capset>() to modify the capabilities of a " |
| 522 |
"thread other than itself, but lacked sufficient privilege. For kernels " |
| 523 |
"supporting VFS capabilities, this is never permitted. For kernels lacking " |
| 524 |
"VFS support, the B<CAP_SETPCAP> capability is required. (A bug in kernels " |
| 525 |
"before Linux 2.6.11 meant that this error could also occur if a thread " |
| 526 |
"without this capability tried to change its own capabilities by specifying " |
| 527 |
"the I<pid> field as a nonzero value (i.e., the value returned by " |
| 528 |
"B<getpid>(2)) instead of 0.)" |
| 529 |
msgstr "" |
| 530 |
"Вызывающий процесс пытается использовать B<capset>() для изменения мандатов " |
| 531 |
"не своей нити, но ему не хватает на это прав. Для ядер, поддерживающих " |
| 532 |
"мандаты VFS, это всегда запрещено. Для ядер без поддержки VFS требуется " |
| 533 |
"мандат B<CAP_SETPCAP>. (Неправильная работа ядер до версии 2.6.11 приводила " |
| 534 |
"к тому, что эта ошибка также возникала, если нить без данного мандата " |
| 535 |
"пыталась изменить свои собственные мандаты, указывая в поле I<pid> ненулевое " |
| 536 |
"значение (т.е. значение, возвращаемое B<getpid>(2)), а не 0)." |
| 537 |
|
| 538 |
#. type: TP |
| 539 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 540 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 541 |
#, no-wrap |
| 542 |
msgid "B<ESRCH>" |
| 543 |
msgstr "B<ESRCH>" |
| 544 |
|
| 545 |
#. type: Plain text |
| 546 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 547 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 548 |
msgid "No such thread." |
| 549 |
msgstr "Такой нити нет." |
| 550 |
|
| 551 |
#. type: SH |
| 552 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 553 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 554 |
#, no-wrap |
| 555 |
msgid "STANDARDS" |
| 556 |
msgstr "СТАНДАРТЫ" |
| 557 |
|
| 558 |
#. type: Plain text |
| 559 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 560 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 561 |
msgid "Linux." |
| 562 |
msgstr "Linux." |
| 563 |
|
| 564 |
#. type: SH |
| 565 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 566 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 567 |
#, no-wrap |
| 568 |
msgid "NOTES" |
| 569 |
msgstr "ПРИМЕЧАНИЯ" |
| 570 |
|
| 571 |
#. type: Plain text |
| 572 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 573 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 574 |
msgid "" |
| 575 |
"The portable interface to the capability querying and setting functions is " |
| 576 |
"provided by the I<libcap> library and is available here:" |
| 577 |
msgstr "" |
| 578 |
"Переносимый интерфейс для запроса и установки мандатов предоставляется " |
| 579 |
"библиотекой I<libcap>, которая доступна по адресу:" |
| 580 |
|
| 581 |
#. type: Plain text |
| 582 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 583 |
#: opensuse-tumbleweed |
| 584 |
#, fuzzy |
| 585 |
#| msgid "" |
| 586 |
#| "E<.UR http://git.kernel.org/cgit\\:/linux\\:/kernel\\:/git\\:/morgan\\:" |
| 587 |
#| "\\:/libcap.git> E<.UE>" |
| 588 |
msgid "" |
| 589 |
"E<.UR http:\\://git.kernel.org/cgit\\:/linux\\:/kernel\\:/git\\:/morgan\\:" |
| 590 |
"\\:/libcap.git> E<.UE>" |
| 591 |
msgstr "" |
| 592 |
"E<.UR http://git.kernel.org/cgit\\:/linux\\:/kernel\\:/git\\:/morgan\\:\\:/" |
| 593 |
"libcap.git> E<.UE>" |
| 594 |
|
| 595 |
#. type: SH |
| 596 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 597 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 598 |
#, no-wrap |
| 599 |
msgid "SEE ALSO" |
| 600 |
msgstr "СМОТРИТЕ ТАКЖЕ" |
| 601 |
|
| 602 |
#. type: Plain text |
| 603 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 604 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 605 |
msgid "B<clone>(2), B<gettid>(2), B<capabilities>(7)" |
| 606 |
msgstr "B<clone>(2), B<gettid>(2), B<capabilities>(7)" |
| 607 |
|
| 608 |
#. type: TH |
| 609 |
#: debian-trixie |
| 610 |
#, no-wrap |
| 611 |
msgid "2024-05-02" |
| 612 |
msgstr "2 мая 2024 г." |
| 613 |
|
| 614 |
#. type: TH |
| 615 |
#: debian-trixie |
| 616 |
#, no-wrap |
| 617 |
msgid "Linux man-pages 6.9.1" |
| 618 |
msgstr "Страницы руководства Linux 6.9.1" |
| 619 |
|
| 620 |
#. type: Plain text |
| 621 |
#: debian-trixie |
| 622 |
msgid "Standard C library (I<libc>, I<-lc>)" |
| 623 |
msgstr "Стандартная библиотека языка C (I<libc>, I<-lc>)" |
| 624 |
|
| 625 |
#. type: Plain text |
| 626 |
#: debian-trixie fedora-44 fedora-rawhide |
| 627 |
msgid "" |
| 628 |
"On older kernels that do not provide VFS capabilities support B<capset>() " |
| 629 |
"can, if the caller has the B<CAP_SETPCAP> capability, be used to change not " |
| 630 |
"only the caller's own capabilities, but also the capabilities of other " |
| 631 |
"threads. The call operates on the capabilities of the thread specified by " |
| 632 |
"the I<pid> field of I<hdrp> when that is nonzero, or on the capabilities of " |
| 633 |
"the calling thread if I<pid> is 0. If I<pid> refers to a single-threaded " |
| 634 |
"process, then I<pid> can be specified as a traditional process ID; operating " |
| 635 |
"on a thread of a multithreaded process requires a thread ID of the type " |
| 636 |
"returned by B<gettid>(2). For B<capset>(), I<pid> can also be: -1, meaning " |
| 637 |
"perform the change on all threads except the caller and B<init>(1); or a " |
| 638 |
"value less than -1, in which case the change is applied to all members of " |
| 639 |
"the process group whose ID is -I<pid>." |
| 640 |
msgstr "" |
| 641 |
"В старых ядрах без поддержки мандатов VFS вызов B<capset>(), если вызывающий " |
| 642 |
"имеет мандат B<CAP_SETPCAP>, можно использовать для изменения не только " |
| 643 |
"собственными мандатами вызывающего, то и мандатами других нитей. Вызов " |
| 644 |
"работает с мандатами нити, указанной в в поле I<pid> из I<hdrp>, если оно не " |
| 645 |
"равно нулю, или мандатами вызывающей нити, когда I<pid> равно 0. Если I<pid> " |
| 646 |
"указывает на процесс с одной нитью, то значением I<pid> может быть обычным " |
| 647 |
"идентификатором процесса; работа с нитью в многонитиевом процессе требует ID " |
| 648 |
"нити такого же типа, что и возвращается B<gettid>(2). У B<capset>() I<pid> " |
| 649 |
"также может быть: -1 — выполнить изменение у всех нитей, за исключением " |
| 650 |
"вызывающей и B<init>(1); меньше -1 — выполнить изменение всех членов группы " |
| 651 |
"процесса, чей ID равен -I<pid>." |
| 652 |
|
| 653 |
#. type: Plain text |
| 654 |
#: debian-trixie fedora-44 fedora-rawhide |
| 655 |
msgid "" |
| 656 |
"E<.UR http://git.kernel.org/cgit\\:/linux\\:/kernel\\:/git\\:/morgan\\:\\:/" |
| 657 |
"libcap.git> E<.UE>" |
| 658 |
msgstr "" |
| 659 |
"E<.UR http://git.kernel.org/cgit\\:/linux\\:/kernel\\:/git\\:/morgan\\:\\:/" |
| 660 |
"libcap.git> E<.UE>" |
| 661 |
|
| 662 |
#. type: TH |
| 663 |
#: fedora-44 fedora-rawhide |
| 664 |
#, no-wrap |
| 665 |
msgid "2024-07-23" |
| 666 |
msgstr "23 июля 2024 г." |
| 667 |
|
| 668 |
#. type: TH |
| 669 |
#: fedora-44 fedora-rawhide |
| 670 |
#, no-wrap |
| 671 |
msgid "Linux man-pages 6.13" |
| 672 |
msgstr "Страницы руководства Linux 6.13" |
| 673 |
|
| 674 |
#. type: TH |
| 675 |
#: mageia-cauldron |
| 676 |
#, no-wrap |
| 677 |
msgid "Linux man-pages 6.17" |
| 678 |
msgstr "Страницы руководства Linux 6.17" |
| 679 |
|
| 680 |
#. type: TH |
| 681 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 682 |
#, no-wrap |
| 683 |
msgid "Linux man-pages (unreleased)" |
| 684 |
msgstr "Страницы руководства Linux (не выпущены)" |