| 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 |
# aereiae <[email protected]>, 2014. |
| 5 |
# Alexey <[email protected]>, 2015. |
| 6 |
# Azamat Hackimov <[email protected]>, 2013-2017. |
| 7 |
# Dmitriy S. Seregin <[email protected]>, 2013. |
| 8 |
# Dmitry Bolkhovskikh <[email protected]>, 2017. |
| 9 |
# ITriskTI <[email protected]>, 2013. |
| 10 |
# Max Is <[email protected]>, 2016. |
| 11 |
# Yuri Kozlov <[email protected]>, 2011-2019. |
| 12 |
# Иван Павлов <[email protected]>, 2017. |
| 13 |
# Малянов Евгений Викторович <[email protected]>, 2014. |
| 14 |
msgid "" |
| 15 |
msgstr "" |
| 16 |
"Project-Id-Version: manpages-l10n\n" |
| 17 |
"POT-Creation-Date: 2026-06-05 06:31+0200\n" |
| 18 |
"PO-Revision-Date: 2024-12-21 19:49+0300\n" |
| 19 |
"Last-Translator: Yuri Kozlov <[email protected]>\n" |
| 20 |
"Language-Team: Russian <[email protected]>\n" |
| 21 |
"Language: ru\n" |
| 22 |
"MIME-Version: 1.0\n" |
| 23 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 24 |
"Content-Transfer-Encoding: 8bit\n" |
| 25 |
"Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " |
| 26 |
"n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || " |
| 27 |
"(n%100>=11 && n%100<=14)? 2 : 3);\n" |
| 28 |
"X-Generator: Lokalize 2.0\n" |
| 29 |
|
| 30 |
#. type: TH |
| 31 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 32 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 33 |
#, no-wrap |
| 34 |
msgid "mprotect" |
| 35 |
msgstr "mprotect" |
| 36 |
|
| 37 |
#. type: TH |
| 38 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 39 |
#: opensuse-tumbleweed |
| 40 |
#, no-wrap |
| 41 |
msgid "2026-02-11" |
| 42 |
msgstr "11 февраля 2026 г." |
| 43 |
|
| 44 |
#. type: TH |
| 45 |
#: archlinux debian-unstable |
| 46 |
#, fuzzy, no-wrap |
| 47 |
#| msgid "Linux man-pages 6.17" |
| 48 |
msgid "Linux man-pages 6.18" |
| 49 |
msgstr "Справочные страницы Linux 6.17" |
| 50 |
|
| 51 |
#. type: SH |
| 52 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 53 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 54 |
#, no-wrap |
| 55 |
msgid "NAME" |
| 56 |
msgstr "НАИМЕНОВАНИЕ" |
| 57 |
|
| 58 |
#. type: Plain text |
| 59 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 60 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 61 |
msgid "mprotect, pkey_mprotect - set protection on a region of memory" |
| 62 |
msgstr "mprotect, pkey_mprotect - контролирует доступ к области памяти" |
| 63 |
|
| 64 |
#. type: SH |
| 65 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 66 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 67 |
#, no-wrap |
| 68 |
msgid "LIBRARY" |
| 69 |
msgstr "БИБЛИОТЕКА" |
| 70 |
|
| 71 |
#. type: Plain text |
| 72 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 73 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 74 |
msgid "Standard C library (I<libc>,\\ I<-lc>)" |
| 75 |
msgstr "Стандартная библиотека языка C (I<libc>,\\ I<-lc>)" |
| 76 |
|
| 77 |
#. type: SH |
| 78 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 79 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 80 |
#, no-wrap |
| 81 |
msgid "SYNOPSIS" |
| 82 |
msgstr "СИНТАКСИС" |
| 83 |
|
| 84 |
#. type: Plain text |
| 85 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 86 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 87 |
#, no-wrap |
| 88 |
msgid "B<#include E<lt>sys/mman.hE<gt>>\n" |
| 89 |
msgstr "B<#include E<lt>sys/mman.hE<gt>>\n" |
| 90 |
|
| 91 |
#. type: Plain text |
| 92 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 93 |
#: opensuse-tumbleweed |
| 94 |
#, fuzzy, no-wrap |
| 95 |
#| msgid "B<int mprotect(void *>I<addr>B<, size_t >I<len>B<, int >I<prot>B<);>\n" |
| 96 |
msgid "" |
| 97 |
"B<int mprotect(>size_t size;\n" |
| 98 |
"B< void >I<addr>B<[>I<size>B<], size_t >I<size>B<, int >I<prot>B<);>\n" |
| 99 |
msgstr "B<int mprotect(void *>I<addr>B<, size_t >I<len>B<, int >I<prot>B<);>\n" |
| 100 |
|
| 101 |
#. type: Plain text |
| 102 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 103 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 104 |
#, no-wrap |
| 105 |
msgid "" |
| 106 |
"B<#define _GNU_SOURCE> /* See feature_test_macros(7) */\n" |
| 107 |
"B<#include E<lt>sys/mman.hE<gt>>\n" |
| 108 |
msgstr "" |
| 109 |
"B<#define _GNU_SOURCE> /* смотрите feature_test_macros(7) */\n" |
| 110 |
"B<#include E<lt>sys/mman.hE<gt>>\n" |
| 111 |
|
| 112 |
#. type: Plain text |
| 113 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 114 |
#: opensuse-tumbleweed |
| 115 |
#, fuzzy, no-wrap |
| 116 |
#| msgid "B<int pkey_mprotect(void *>I<addr>B<, size_t >I<len>B<, int >I<prot>B<, int >I<pkey>B<);>\n" |
| 117 |
msgid "" |
| 118 |
"B<int pkey_mprotect(>size_t size;\n" |
| 119 |
"B< void >I<addr>B<[>I<size>B<], size_t >I<size>B<, int >I<prot>B<, int >I<pkey>B<);>\n" |
| 120 |
msgstr "B<int pkey_mprotect(void *>I<addr>B<, size_t >I<len>B<, int >I<prot>B<, int >I<pkey>B<);>\n" |
| 121 |
|
| 122 |
#. type: SH |
| 123 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 124 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 125 |
#, no-wrap |
| 126 |
msgid "DESCRIPTION" |
| 127 |
msgstr "ОПИСАНИЕ" |
| 128 |
|
| 129 |
#. type: Plain text |
| 130 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 131 |
#: opensuse-tumbleweed |
| 132 |
#, fuzzy |
| 133 |
#| msgid "" |
| 134 |
#| "B<mprotect>() changes the access protections for the calling process's " |
| 135 |
#| "memory pages containing any part of the address range in the interval " |
| 136 |
#| "[I<addr>,\\ I<addr>+I<len>-1]. I<addr> must be aligned to a page " |
| 137 |
#| "boundary." |
| 138 |
msgid "" |
| 139 |
"B<mprotect>() changes the access protections for the calling process's " |
| 140 |
"memory pages containing any part of the address range in the interval " |
| 141 |
"[I<addr>, I<addr>+I<size>-1]. I<addr> must be aligned to a page boundary." |
| 142 |
msgstr "" |
| 143 |
"Вызов B<mprotect>() изменяет параметры доступа страниц памяти вызывающего " |
| 144 |
"процесса, которые содержатся, даже частично, в адресном диапазоне [I<addr>," |
| 145 |
"\\ I<addr>+I<len>-1]. Значение I<addr> должно быть выровнено на границу " |
| 146 |
"страницы." |
| 147 |
|
| 148 |
#. type: Plain text |
| 149 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 150 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 151 |
msgid "" |
| 152 |
"If the calling process tries to access memory in a manner that violates the " |
| 153 |
"protections, then the kernel generates a B<SIGSEGV> signal for the process." |
| 154 |
msgstr "" |
| 155 |
"Если вызывающий процесс нарушает защиту доступа к памяти, то ядро посылает " |
| 156 |
"процессу сигнал B<SIGSEGV>." |
| 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 |
#, fuzzy |
| 162 |
#| msgid "" |
| 163 |
#| "I<prot> is a combination of the following access flags: B<PROT_NONE> or a " |
| 164 |
#| "bitwise-or of the other values in the following list:" |
| 165 |
msgid "" |
| 166 |
"I<prot> is a combination of the following access flags: B<PROT_NONE> or a " |
| 167 |
"bitwise OR of the other values in the following list:" |
| 168 |
msgstr "" |
| 169 |
"Значение I<prot> представляет собой комбинацию следующих флагов доступа: " |
| 170 |
"B<PROT_NONE> или побитово сложенные другие значения из следующего списка:" |
| 171 |
|
| 172 |
#. type: TP |
| 173 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 174 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 175 |
#, no-wrap |
| 176 |
msgid "B<PROT_NONE>" |
| 177 |
msgstr "B<PROT_NONE>" |
| 178 |
|
| 179 |
#. type: Plain text |
| 180 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 181 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 182 |
msgid "The memory cannot be accessed at all." |
| 183 |
msgstr "Доступ к памяти запрещён." |
| 184 |
|
| 185 |
#. type: TP |
| 186 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 187 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 188 |
#, no-wrap |
| 189 |
msgid "B<PROT_READ>" |
| 190 |
msgstr "B<PROT_READ>" |
| 191 |
|
| 192 |
#. type: Plain text |
| 193 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 194 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 195 |
msgid "The memory can be read." |
| 196 |
msgstr "Память можно читать." |
| 197 |
|
| 198 |
#. type: TP |
| 199 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 200 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 201 |
#, no-wrap |
| 202 |
msgid "B<PROT_WRITE>" |
| 203 |
msgstr "B<PROT_WRITE>" |
| 204 |
|
| 205 |
#. type: Plain text |
| 206 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 207 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 208 |
msgid "The memory can be modified." |
| 209 |
msgstr "Память можно изменять." |
| 210 |
|
| 211 |
#. type: TP |
| 212 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 213 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 214 |
#, no-wrap |
| 215 |
msgid "B<PROT_EXEC>" |
| 216 |
msgstr "B<PROT_EXEC>" |
| 217 |
|
| 218 |
#. type: Plain text |
| 219 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 220 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 221 |
msgid "The memory can be executed." |
| 222 |
msgstr "Память можно выполнять." |
| 223 |
|
| 224 |
#. type: TP |
| 225 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 226 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 227 |
#, no-wrap |
| 228 |
msgid "B<PROT_SEM> (since Linux 2.5.7)" |
| 229 |
msgstr "B<PROT_SEM> (начиная с Linux 2.5.7)" |
| 230 |
|
| 231 |
#. type: Plain text |
| 232 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 233 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 234 |
msgid "" |
| 235 |
"The memory can be used for atomic operations. This flag was introduced as " |
| 236 |
"part of the B<futex>(2) implementation (in order to guarantee the ability " |
| 237 |
"to perform atomic operations required by commands such as B<FUTEX_WAIT>), " |
| 238 |
"but is not currently used in on any architecture." |
| 239 |
msgstr "" |
| 240 |
"Память можно использовать для атомарных операций. Этот флаг появился как " |
| 241 |
"часть реализации B<futex>(2) (для гарантии способности выполнять атомарные " |
| 242 |
"операции, требуемые таким командам как B<FUTEX_WAIT>), но пока не " |
| 243 |
"используется ни в одной архитектуре." |
| 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<PROT_SAO> (since Linux 2.6.26)" |
| 250 |
msgstr "B<PROT_SAO> (начиная с Linux 2.6.26)" |
| 251 |
|
| 252 |
#. commit aba46c5027cb59d98052231b36efcbbde9c77a1d |
| 253 |
#. commit ef3d3246a0d06be622867d21af25f997aeeb105f |
| 254 |
#. type: Plain text |
| 255 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 256 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 257 |
msgid "" |
| 258 |
"The memory should have strong access ordering. This feature is specific to " |
| 259 |
"the PowerPC architecture (version 2.06 of the architecture specification " |
| 260 |
"adds the SAO CPU feature, and it is available on POWER 7 or PowerPC A2, for " |
| 261 |
"example)." |
| 262 |
msgstr "" |
| 263 |
"Память должна иметь строгий порядок доступа. Это свойство есть только в " |
| 264 |
"архитектуре PowerPC (в спецификации архитектуры версии 2.06 добавлено " |
| 265 |
"свойство ЦП SAO и оно доступно, например, на POWER 7 или PowerPC A2)." |
| 266 |
|
| 267 |
#. type: Plain text |
| 268 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 269 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 270 |
msgid "" |
| 271 |
"Additionally (since Linux 2.6.0), I<prot> can have one of the following " |
| 272 |
"flags set:" |
| 273 |
msgstr "" |
| 274 |
"Также (начиная с Linux 2.6.0), I<prot> может содержать один из следующих " |
| 275 |
"установленных флагов:" |
| 276 |
|
| 277 |
#. mm/mmap.c: |
| 278 |
#. vm_flags |= calc_vm_prot_bits(prot, pkey) | calc_vm_flag_bits(flags) | |
| 279 |
#. mm->def_flags | VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC; |
| 280 |
#. And calc_vm_flag_bits converts only GROWSDOWN/DENYWRITE/LOCKED. |
| 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<PROT_GROWSUP>" |
| 286 |
msgstr "B<PROT_GROWSUP>" |
| 287 |
|
| 288 |
#. #-#-#-#-# archlinux: mprotect.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 289 |
#. The VMA is one that was marked with VM_GROWSUP by the kernel |
| 290 |
#. when the stack was created. Note that (unlike VM_GROWSDOWN), |
| 291 |
#. there is no mmap() flag (analogous to MAP_GROWSDOWN) for |
| 292 |
#. creating a VMA that is marked VM_GROWSUP. |
| 293 |
#. type: Plain text |
| 294 |
#. #-#-#-#-# debian-trixie: mprotect.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 295 |
#. The VMA is one that was marked with VM_GROWSUP by the kernel |
| 296 |
#. when the stack was created. Note that (unlike VM_GROWSDOWN), |
| 297 |
#. there is no mmap() flag (analogous to MAP_GROWSDOWN) for |
| 298 |
#. creating a VMA that is marked VM_GROWSUP. |
| 299 |
#. type: Plain text |
| 300 |
#. #-#-#-#-# debian-unstable: mprotect.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 301 |
#. The VMA is one that was marked with VM_GROWSUP by the kernel |
| 302 |
#. when the stack was created. Note that (unlike VM_GROWSDOWN), |
| 303 |
#. there is no mmap() flag (analogous to MAP_GROWSDOWN) for |
| 304 |
#. creating a VMA that is marked VM_GROWSUP. |
| 305 |
#. type: Plain text |
| 306 |
#. #-#-#-#-# fedora-44: mprotect.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 307 |
#. The VMA is one that was marked with VM_GROWSUP by the kernel |
| 308 |
#. when the stack was created. Note that (unlike VM_GROWSDOWN), |
| 309 |
#. there is no mmap() flag (analogous to MAP_GROWSDOWN) for |
| 310 |
#. creating a VMA that is marked VM_GROWSUP. |
| 311 |
#. type: Plain text |
| 312 |
#. #-#-#-#-# fedora-rawhide: mprotect.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 313 |
#. The VMA is one that was marked with VM_GROWSUP by the kernel |
| 314 |
#. when the stack was created. Note that (unlike VM_GROWSDOWN), |
| 315 |
#. there is no mmap() flag (analogous to MAP_GROWSDOWN) for |
| 316 |
#. creating a VMA that is marked VM_GROWSUP. |
| 317 |
#. type: Plain text |
| 318 |
#. #-#-#-#-# mageia-cauldron: mprotect.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 319 |
#. The VMA is one that was marked with VM_GROWSUP by the kernel |
| 320 |
#. when the stack was created. Note that (unlike VM_GROWSDOWN), |
| 321 |
#. there is no mmap() flag (analogous to MAP_GROWSDOWN) for |
| 322 |
#. creating a VMA that is marked VM_GROWSUP. |
| 323 |
#. type: Plain text |
| 324 |
#. #-#-#-#-# opensuse-leap-16-1: mprotect.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 325 |
#. The VMA is one that was marked with VM_GROWSUP by the kernel |
| 326 |
#. when the stack was created. Note that (unlike VM_GROWSDOWN), |
| 327 |
#. there is no mmap() flag (analogous to MAP_GROWSDOWN) for |
| 328 |
#. creating a VMA that is marked VM_GROWSUP. |
| 329 |
#. type: Plain text |
| 330 |
#. #-#-#-#-# opensuse-tumbleweed: mprotect.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 331 |
#. The VMA is one that was marked with VM_GROWSUP by the kernel |
| 332 |
#. when the stack was created. Note that (unlike VM_GROWSDOWN), |
| 333 |
#. there is no mmap() flag (analogous to MAP_GROWSDOWN) for |
| 334 |
#. creating a VMA that is marked VM_GROWSUP. |
| 335 |
#. type: Plain text |
| 336 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 337 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 338 |
#, fuzzy |
| 339 |
#| msgid "" |
| 340 |
#| "Apply the protection mode up to the end of a mapping that grows upwards. " |
| 341 |
#| "(Such mappings are created for the stack area on architectures\\(emfor " |
| 342 |
#| "example, HP-PARISC\\(emthat have an upwardly growing stack.)" |
| 343 |
msgid "" |
| 344 |
"Apply the protection mode up to the end of a mapping that grows upwards. " |
| 345 |
"(Such mappings are created for the stack area on architectures\\[em]for " |
| 346 |
"example, HP-PARISC\\[em]that have an upwardly growing stack.)" |
| 347 |
msgstr "" |
| 348 |
"Применить режим защиты до конца отображения, которое растёт вверх (такие " |
| 349 |
"отображения создаются для области стека например в архитектуре HP-PARISC, " |
| 350 |
"где стек растёт вверх)." |
| 351 |
|
| 352 |
#. type: TP |
| 353 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 354 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 355 |
#, no-wrap |
| 356 |
msgid "B<PROT_GROWSDOWN>" |
| 357 |
msgstr "B<PROT_GROWSDOWN>" |
| 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 |
msgid "" |
| 363 |
"Apply the protection mode down to the beginning of a mapping that grows " |
| 364 |
"downward (which should be a stack segment or a segment mapped with the " |
| 365 |
"B<MAP_GROWSDOWN> flag set)." |
| 366 |
msgstr "" |
| 367 |
"Применить режим защиты до начала отображения, которое растёт вниз (которое " |
| 368 |
"должно быть сегментом стека или сегментом, отображённым с установленным " |
| 369 |
"флагом B<MAP_GROWSDOWN>)." |
| 370 |
|
| 371 |
#. type: Plain text |
| 372 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 373 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 374 |
#, fuzzy |
| 375 |
#| msgid "" |
| 376 |
#| "Like B<mprotect>(), B<pkey_mprotect>() changes the protection on the " |
| 377 |
#| "pages specified by I<addr> and I<len>. The I<pkey> argument specifies " |
| 378 |
#| "the protection key (see B<pkeys>(7)) to assign to the memory. The " |
| 379 |
#| "protection key must be allocated with B<pkey_alloc>(2) before it is " |
| 380 |
#| "passed to B<pkey_mprotect>(). For an example of the use of this system " |
| 381 |
#| "call, see B<pkeys>(7)." |
| 382 |
msgid "" |
| 383 |
"Like B<mprotect>(), B<pkey_mprotect>() changes the protection on the pages " |
| 384 |
"specified by I<addr> and I<size>. The I<pkey> argument specifies the " |
| 385 |
"protection key (see B<pkeys>(7)) to assign to the memory. The protection " |
| 386 |
"key must be allocated with B<pkey_alloc>(2) before it is passed to " |
| 387 |
"B<pkey_mprotect>(). For an example of the use of this system call, see " |
| 388 |
"B<pkeys>(7)." |
| 389 |
msgstr "" |
| 390 |
"Подобно B<mprotect>(), вызов B<pkey_mprotect>() изменяет защиту страниц, " |
| 391 |
"указанных I<addr> и I<len>. Аргумент I<pkey> содержит ключ защиты (смотрите " |
| 392 |
"B<pkeys>(7)), назначаемый памяти. Ключ защиты должен быть выделен с помощью " |
| 393 |
"B<pkey_alloc>(2) до передачи в B<pkey_mprotect>(). Пример использования " |
| 394 |
"этого системного вызова смотрите в B<pkeys>(7)." |
| 395 |
|
| 396 |
#. type: SH |
| 397 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 398 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 399 |
#, no-wrap |
| 400 |
msgid "RETURN VALUE" |
| 401 |
msgstr "ВОЗВРАЩАЕМОЕ ЗНАЧЕНИЕ" |
| 402 |
|
| 403 |
#. type: Plain text |
| 404 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 405 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 406 |
#, fuzzy |
| 407 |
#| msgid "" |
| 408 |
#| "On success, B<mprotect>() and B<pkey_mprotect>() return zero. On " |
| 409 |
#| "error, these system calls return -1, and I<errno> is set appropriately." |
| 410 |
msgid "" |
| 411 |
"On success, B<mprotect>() and B<pkey_mprotect>() return zero. On error, " |
| 412 |
"these system calls return -1, and I<errno> is set to indicate the error." |
| 413 |
msgstr "" |
| 414 |
"При успешном выполнении B<mprotect>() и B<pkey_mprotect>() возвращают 0. В " |
| 415 |
"случае ошибки возвращается -1, а I<errno> устанавливается в соответствующее " |
| 416 |
"значение." |
| 417 |
|
| 418 |
#. type: SH |
| 419 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 420 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 421 |
#, no-wrap |
| 422 |
msgid "ERRORS" |
| 423 |
msgstr "ОШИБКИ" |
| 424 |
|
| 425 |
#. type: TP |
| 426 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 427 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 428 |
#, no-wrap |
| 429 |
msgid "B<EACCES>" |
| 430 |
msgstr "B<EACCES>" |
| 431 |
|
| 432 |
#. type: Plain text |
| 433 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 434 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 435 |
msgid "" |
| 436 |
"The memory cannot be given the specified access. This can happen, for " |
| 437 |
"example, if you B<mmap>(2) a file to which you have read-only access, then " |
| 438 |
"ask B<mprotect>() to mark it B<PROT_WRITE>." |
| 439 |
msgstr "" |
| 440 |
"Нельзя задать этот вид доступа. Например, это может случиться, если при " |
| 441 |
"вызове B<mmap>(2) файл доступен только на чтение, а запрос B<mprotect>() был " |
| 442 |
"B<PROT_WRITE>." |
| 443 |
|
| 444 |
#. type: TP |
| 445 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 446 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 447 |
#, no-wrap |
| 448 |
msgid "B<EINVAL>" |
| 449 |
msgstr "B<EINVAL>" |
| 450 |
|
| 451 |
#. type: Plain text |
| 452 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 453 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 454 |
msgid "" |
| 455 |
"I<addr> is not a valid pointer, or not a multiple of the system page size." |
| 456 |
msgstr "" |
| 457 |
"Значение I<addr> не является правильным указателем или не кратен размеру " |
| 458 |
"системной страницы." |
| 459 |
|
| 460 |
#. type: Plain text |
| 461 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 462 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 463 |
msgid "" |
| 464 |
"(B<pkey_mprotect>()) I<pkey> has not been allocated with B<pkey_alloc>(2)" |
| 465 |
msgstr "" |
| 466 |
"(B<pkey_mprotect>()) I<pkey> не был выделен с помощью B<pkey_alloc>(2)." |
| 467 |
|
| 468 |
#. type: Plain text |
| 469 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 470 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 471 |
msgid "Both B<PROT_GROWSUP> and B<PROT_GROWSDOWN> were specified in I<prot>." |
| 472 |
msgstr "В I<prot> указаны оба флага, B<PROT_GROWSUP> и B<PROT_GROWSDOWN>." |
| 473 |
|
| 474 |
#. type: Plain text |
| 475 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 476 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 477 |
msgid "Invalid flags specified in I<prot>." |
| 478 |
msgstr "Указано неверное значение в I<prot>." |
| 479 |
|
| 480 |
#. type: Plain text |
| 481 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 482 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 483 |
msgid "" |
| 484 |
"(PowerPC architecture) B<PROT_SAO> was specified in I<prot>, but SAO " |
| 485 |
"hardware feature is not available." |
| 486 |
msgstr "" |
| 487 |
"(архитектура PowerPC ) В I<prot> указан B<PROT_SAO>, но недоступно " |
| 488 |
"аппаратное свойство SAO." |
| 489 |
|
| 490 |
#. type: TP |
| 491 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 492 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 493 |
#, no-wrap |
| 494 |
msgid "B<ENOMEM>" |
| 495 |
msgstr "B<ENOMEM>" |
| 496 |
|
| 497 |
#. type: Plain text |
| 498 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 499 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 500 |
msgid "Internal kernel structures could not be allocated." |
| 501 |
msgstr "Не удалось выделить место под внутренние структуры ядра." |
| 502 |
|
| 503 |
#. type: Plain text |
| 504 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 505 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 506 |
#, fuzzy |
| 507 |
#| msgid "" |
| 508 |
#| "Addresses in the range [I<addr>, I<addr>+I<len>-1] are invalid for the " |
| 509 |
#| "address space of the process, or specify one or more pages that are not " |
| 510 |
#| "mapped. (Before kernel 2.4.19, the error B<EFAULT> was incorrectly " |
| 511 |
#| "produced for these cases.)" |
| 512 |
msgid "" |
| 513 |
"Addresses in the range [I<addr>, I<addr>+I<size>-1] are invalid for the " |
| 514 |
"address space of the process, or specify one or more pages that are not " |
| 515 |
"mapped. (Before Linux 2.4.19, the error B<EFAULT> was incorrectly produced " |
| 516 |
"for these cases.)" |
| 517 |
msgstr "" |
| 518 |
"Адреса в диапазоне [I<addr>, I<addr>+I<len>-1] некорректны для адресного " |
| 519 |
"пространства процесса, или одна или более указанных страниц не отображена " |
| 520 |
"(до ядра версии 2.4.19 в этих случаях некорректно возвращалась ошибка " |
| 521 |
"B<EFAULT>)." |
| 522 |
|
| 523 |
#. I.e., the number of VMAs would exceed the 64 kB maximum |
| 524 |
#. type: Plain text |
| 525 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 526 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 527 |
msgid "" |
| 528 |
"Changing the protection of a memory region would result in the total number " |
| 529 |
"of mappings with distinct attributes (e.g., read versus read/write " |
| 530 |
"protection) exceeding the allowed maximum. (For example, making the " |
| 531 |
"protection of a range B<PROT_READ> in the middle of a region currently " |
| 532 |
"protected as B<PROT_READ|PROT_WRITE> would result in three mappings: two " |
| 533 |
"read/write mappings at each end and a read-only mapping in the middle.)" |
| 534 |
msgstr "" |
| 535 |
"Изменение защиты области памяти привело бы к превышению разрешённого " |
| 536 |
"максимума на количество отображений с различающимися атрибутами (защита на " |
| 537 |
"чтение и на чтение/запись). Например, защита диапазона B<PROT_READ> в " |
| 538 |
"середине области, которая сейчас защищена B<PROT_READ|PROT_WRITE>, привела " |
| 539 |
"бы к трём отображениям: два отображения на концах, доступных на чтение/" |
| 540 |
"запись и доступное только для чтение отображение посередине." |
| 541 |
|
| 542 |
#. type: SH |
| 543 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 544 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 545 |
#, no-wrap |
| 546 |
msgid "VERSIONS" |
| 547 |
msgstr "ВЕРСИИ" |
| 548 |
|
| 549 |
#. #-#-#-#-# archlinux: mprotect.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 550 |
#. SVr4 defines an additional error |
| 551 |
#. code EAGAIN. The SVr4 error conditions don't map neatly onto Linux's. |
| 552 |
#. type: Plain text |
| 553 |
#. #-#-#-#-# debian-trixie: mprotect.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 554 |
#. SVr4 defines an additional error |
| 555 |
#. code EAGAIN. The SVr4 error conditions don't map neatly onto Linux's. |
| 556 |
#. type: Plain text |
| 557 |
#. #-#-#-#-# debian-unstable: mprotect.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 558 |
#. SVr4 defines an additional error |
| 559 |
#. code EAGAIN. The SVr4 error conditions don't map neatly onto Linux's. |
| 560 |
#. type: Plain text |
| 561 |
#. #-#-#-#-# fedora-44: mprotect.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 562 |
#. SVr4 defines an additional error |
| 563 |
#. code EAGAIN. The SVr4 error conditions don't map neatly onto Linux's. |
| 564 |
#. type: Plain text |
| 565 |
#. #-#-#-#-# fedora-rawhide: mprotect.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 566 |
#. SVr4 defines an additional error |
| 567 |
#. code EAGAIN. The SVr4 error conditions don't map neatly onto Linux's. |
| 568 |
#. type: Plain text |
| 569 |
#. #-#-#-#-# mageia-cauldron: mprotect.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 570 |
#. SVr4 defines an additional error |
| 571 |
#. code EAGAIN. The SVr4 error conditions don't map neatly onto Linux's. |
| 572 |
#. type: Plain text |
| 573 |
#. #-#-#-#-# opensuse-leap-16-1: mprotect.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 574 |
#. SVr4 defines an additional error |
| 575 |
#. code EAGAIN. The SVr4 error conditions don't map neatly onto Linux's. |
| 576 |
#. type: Plain text |
| 577 |
#. #-#-#-#-# opensuse-tumbleweed: mprotect.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 578 |
#. SVr4 defines an additional error |
| 579 |
#. code EAGAIN. The SVr4 error conditions don't map neatly onto Linux's. |
| 580 |
#. type: Plain text |
| 581 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 582 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 583 |
#, fuzzy |
| 584 |
#| msgid "" |
| 585 |
#| "B<mprotect>(): POSIX.1-2001, POSIX.1-2008, SVr4. POSIX says that the " |
| 586 |
#| "behavior of B<mprotect>() is unspecified if it is applied to a region of " |
| 587 |
#| "memory that was not obtained via B<mmap>(2)." |
| 588 |
msgid "" |
| 589 |
"POSIX says that the behavior of B<mprotect>() is unspecified if it is " |
| 590 |
"applied to a region of memory that was not obtained via B<mmap>(2)." |
| 591 |
msgstr "" |
| 592 |
"B<mprotect>(): В POSIX.1-2001, POSIX.1-2008, SVr4 сказано, что поведение " |
| 593 |
"B<mprotect>() не определено, если переданная область памяти не получена " |
| 594 |
"через B<mmap>(2)." |
| 595 |
|
| 596 |
#. type: Plain text |
| 597 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 598 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 599 |
msgid "" |
| 600 |
"On Linux, it is always permissible to call B<mprotect>() on any address in " |
| 601 |
"a process's address space (except for the kernel vsyscall area). In " |
| 602 |
"particular, it can be used to change existing code mappings to be writable." |
| 603 |
msgstr "" |
| 604 |
"В Linux всегда можно вызвать B<mprotect>() с любым адресом из адресного " |
| 605 |
"пространства процесса (за исключением области ядра vsyscall). В частности, " |
| 606 |
"это можно использовать для изменения отображений существующего кода на " |
| 607 |
"записываемые." |
| 608 |
|
| 609 |
#. type: Plain text |
| 610 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 611 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 612 |
msgid "" |
| 613 |
"Whether B<PROT_EXEC> has any effect different from B<PROT_READ> depends on " |
| 614 |
"processor architecture, kernel version, and process state. If " |
| 615 |
"B<READ_IMPLIES_EXEC> is set in the process's personality flags (see " |
| 616 |
"B<personality>(2)), specifying B<PROT_READ> will implicitly add B<PROT_EXEC>." |
| 617 |
msgstr "" |
| 618 |
"Отличается ли действие B<PROT_EXEC> от B<PROT_READ> зависит от архитектуры " |
| 619 |
"процессора, версии ядра и состояния процесса. Если в флагах специализаций " |
| 620 |
"процессора установлен B<READ_IMPLIES_EXEC> (смотрите B<personality>(2)), то " |
| 621 |
"указание B<PROT_READ> подразумевает добавление B<PROT_EXEC>." |
| 622 |
|
| 623 |
#. type: Plain text |
| 624 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 625 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 626 |
msgid "" |
| 627 |
"On some hardware architectures (e.g., i386), B<PROT_WRITE> implies " |
| 628 |
"B<PROT_READ>." |
| 629 |
msgstr "" |
| 630 |
"На некоторых аппаратных архитектурах (например, i386) B<PROT_WRITE> " |
| 631 |
"подразумевает B<PROT_READ>." |
| 632 |
|
| 633 |
#. type: Plain text |
| 634 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 635 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 636 |
msgid "" |
| 637 |
"POSIX.1 says that an implementation may permit access other than that " |
| 638 |
"specified in I<prot>, but at a minimum can allow write access only if " |
| 639 |
"B<PROT_WRITE> has been set, and must not allow any access if B<PROT_NONE> " |
| 640 |
"has been set." |
| 641 |
msgstr "" |
| 642 |
"В POSIX.1 сказано, что реализация может разрешить доступ отличный от " |
| 643 |
"указанного в I<prot>, но для доступа на запись должен быть обязательно " |
| 644 |
"установлен флаг B<PROT_WRITE>, и любой доступ должен быть запрещён, если " |
| 645 |
"установлен флаг B<PROT_NONE>." |
| 646 |
|
| 647 |
#. type: Plain text |
| 648 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 649 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 650 |
msgid "" |
| 651 |
"Applications should be careful when mixing use of B<mprotect>() and " |
| 652 |
"B<pkey_mprotect>(). On x86, when B<mprotect>() is used with I<prot> set to " |
| 653 |
"B<PROT_EXEC> a pkey may be allocated and set on the memory implicitly by the " |
| 654 |
"kernel, but only when the pkey was 0 previously." |
| 655 |
msgstr "" |
| 656 |
"В приложениях нужно осторожно использовать B<mprotect>() и " |
| 657 |
"B<pkey_mprotect>() вместе. На x86, если B<mprotect>() используется с " |
| 658 |
"установленным в I<prot> значением B<PROT_EXEC>, то pkey может быть выделен " |
| 659 |
"и установлен ядром в память неявным образом, но только если до этого pkey " |
| 660 |
"был равен 0." |
| 661 |
|
| 662 |
#. type: Plain text |
| 663 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 664 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 665 |
msgid "" |
| 666 |
"On systems that do not support protection keys in hardware, " |
| 667 |
"B<pkey_mprotect>() may still be used, but I<pkey> must be set to -1. When " |
| 668 |
"called this way, the operation of B<pkey_mprotect>() is equivalent to " |
| 669 |
"B<mprotect>()." |
| 670 |
msgstr "" |
| 671 |
"В системах без аппаратной поддержки ключей защиты B<pkey_mprotect>() всё ещё " |
| 672 |
"можно использовать, но значение I<pkey> должно быть равно -1. При таком " |
| 673 |
"вызове операция B<pkey_mprotect>() эквивалентна B<mprotect>()." |
| 674 |
|
| 675 |
#. type: SH |
| 676 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 677 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 678 |
#, no-wrap |
| 679 |
msgid "STANDARDS" |
| 680 |
msgstr "СТАНДАРТЫ" |
| 681 |
|
| 682 |
#. type: TP |
| 683 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 684 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 685 |
#, fuzzy, no-wrap |
| 686 |
#| msgid "mprotect" |
| 687 |
msgid "B<mprotect>()" |
| 688 |
msgstr "mprotect" |
| 689 |
|
| 690 |
#. type: Plain text |
| 691 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 692 |
#: opensuse-tumbleweed |
| 693 |
msgid "POSIX.1-2024." |
| 694 |
msgstr "POSIX.1-2024." |
| 695 |
|
| 696 |
#. type: TP |
| 697 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 698 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 699 |
#, fuzzy, no-wrap |
| 700 |
#| msgid "mprotect" |
| 701 |
msgid "B<pkey_mprotect>()" |
| 702 |
msgstr "mprotect" |
| 703 |
|
| 704 |
#. type: Plain text |
| 705 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 706 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 707 |
msgid "Linux." |
| 708 |
msgstr "Linux." |
| 709 |
|
| 710 |
#. type: SH |
| 711 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 712 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 713 |
#, no-wrap |
| 714 |
msgid "HISTORY" |
| 715 |
msgstr "ИСТОРИЯ" |
| 716 |
|
| 717 |
#. type: Plain text |
| 718 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 719 |
#: opensuse-tumbleweed |
| 720 |
#, fuzzy |
| 721 |
#| msgid "SVr4, 4.3BSD, POSIX.1-2001." |
| 722 |
msgid "SVr4, SUSv1, POSIX.1-1996." |
| 723 |
msgstr "SVr4, 4.3BSD, POSIX.1-2001." |
| 724 |
|
| 725 |
#. type: Plain text |
| 726 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 727 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 728 |
msgid "Linux 4.9, glibc 2.27." |
| 729 |
msgstr "Linux 4.9, glibc 2.27." |
| 730 |
|
| 731 |
#. type: SH |
| 732 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 733 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 734 |
#, no-wrap |
| 735 |
msgid "NOTES" |
| 736 |
msgstr "ПРИМЕЧАНИЯ" |
| 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 "EXAMPLES" |
| 743 |
msgstr "ПРИМЕРЫ" |
| 744 |
|
| 745 |
#. sigaction.2 refers to this example |
| 746 |
#. type: Plain text |
| 747 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 748 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 749 |
msgid "" |
| 750 |
"The program below demonstrates the use of B<mprotect>(). The program " |
| 751 |
"allocates four pages of memory, makes the third of these pages read-only, " |
| 752 |
"and then executes a loop that walks upward through the allocated region " |
| 753 |
"modifying bytes." |
| 754 |
msgstr "" |
| 755 |
"Программа, представленная далее, показывает использование B<mprotect>(). Она " |
| 756 |
"выделяет четыре страницы памяти, делает третью доступной только на чтение, а " |
| 757 |
"затем запускает цикл, который проходит по выделенной области, меняя байты." |
| 758 |
|
| 759 |
#. type: Plain text |
| 760 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 761 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 762 |
msgid "" |
| 763 |
"An example of what we might see when running the program is the following:" |
| 764 |
msgstr "Результат работы программы:" |
| 765 |
|
| 766 |
#. type: Plain text |
| 767 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 768 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 769 |
#, no-wrap |
| 770 |
msgid "" |
| 771 |
"$B< ./a.out>\n" |
| 772 |
"Start of region: 0x804c000\n" |
| 773 |
"Got SIGSEGV at address: 0x804e000\n" |
| 774 |
msgstr "" |
| 775 |
"$B< ./a.out>\n" |
| 776 |
"Начало области: 0x804c000\n" |
| 777 |
"Получен SIGSEGV при адресе: 0x804e000\n" |
| 778 |
|
| 779 |
#. type: SS |
| 780 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 781 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 782 |
#, no-wrap |
| 783 |
msgid "Program source" |
| 784 |
msgstr "Исходный код программы" |
| 785 |
|
| 786 |
#. type: Plain text |
| 787 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 788 |
#: opensuse-tumbleweed |
| 789 |
#, no-wrap |
| 790 |
msgid "" |
| 791 |
"#include E<lt>err.hE<gt>\n" |
| 792 |
"#include E<lt>malloc.hE<gt>\n" |
| 793 |
"#include E<lt>signal.hE<gt>\n" |
| 794 |
"#include E<lt>stdio.hE<gt>\n" |
| 795 |
"#include E<lt>stdlib.hE<gt>\n" |
| 796 |
"#include E<lt>sys/mman.hE<gt>\n" |
| 797 |
"#include E<lt>unistd.hE<gt>\n" |
| 798 |
"\\&\n" |
| 799 |
"static char *buffer;\n" |
| 800 |
"\\&\n" |
| 801 |
"static void\n" |
| 802 |
"handler(int sig, siginfo_t *si, void *unused)\n" |
| 803 |
"{\n" |
| 804 |
" /* Note: calling printf() from a signal handler is not safe\n" |
| 805 |
" (and should not be done in production programs), since\n" |
| 806 |
" printf() is not async-signal-safe; see signal-safety(7).\n" |
| 807 |
" Nevertheless, we use printf() here as a simple way of\n" |
| 808 |
" showing that the handler was called. */\n" |
| 809 |
"\\&\n" |
| 810 |
" printf(\"Got SIGSEGV at address: %p\\[rs]n\", si-E<gt>si_addr);\n" |
| 811 |
" exit(EXIT_FAILURE);\n" |
| 812 |
"}\n" |
| 813 |
"\\&\n" |
| 814 |
"int\n" |
| 815 |
"main(void)\n" |
| 816 |
"{\n" |
| 817 |
" int pagesize;\n" |
| 818 |
" struct sigaction sa;\n" |
| 819 |
"\\&\n" |
| 820 |
" sa.sa_flags = SA_SIGINFO;\n" |
| 821 |
" sigemptyset(&sa.sa_mask);\n" |
| 822 |
" sa.sa_sigaction = handler;\n" |
| 823 |
" if (sigaction(SIGSEGV, &sa, NULL) == -1)\n" |
| 824 |
" err(EXIT_FAILURE, \"sigaction\");\n" |
| 825 |
"\\&\n" |
| 826 |
" pagesize = sysconf(_SC_PAGE_SIZE);\n" |
| 827 |
" if (pagesize == -1)\n" |
| 828 |
" err(EXIT_FAILURE, \"sysconf\");\n" |
| 829 |
"\\&\n" |
| 830 |
" /* Allocate a buffer aligned on a page boundary;\n" |
| 831 |
" initial protection is PROT_READ | PROT_WRITE. */\n" |
| 832 |
"\\&\n" |
| 833 |
" buffer = memalign(pagesize, 4 * pagesize);\n" |
| 834 |
" if (buffer == NULL)\n" |
| 835 |
" err(EXIT_FAILURE, \"memalign\");\n" |
| 836 |
"\\&\n" |
| 837 |
" printf(\"Start of region: %p\\[rs]n\", buffer);\n" |
| 838 |
"\\&\n" |
| 839 |
" if (mprotect(buffer + pagesize * 2, pagesize,\n" |
| 840 |
" PROT_READ) == -1)\n" |
| 841 |
" err(EXIT_FAILURE, \"mprotect\");\n" |
| 842 |
"\\&\n" |
| 843 |
" for (char *p = buffer ; ; )\n" |
| 844 |
" *(p++) = \\[aq]a\\[aq];\n" |
| 845 |
"\\&\n" |
| 846 |
" printf(\"Loop completed\\[rs]n\"); /* Should never happen */\n" |
| 847 |
" exit(EXIT_SUCCESS);\n" |
| 848 |
"}\n" |
| 849 |
msgstr "" |
| 850 |
|
| 851 |
#. SRC END |
| 852 |
#. type: SH |
| 853 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 854 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 855 |
#, no-wrap |
| 856 |
msgid "SEE ALSO" |
| 857 |
msgstr "СМОТРИТЕ ТАКЖЕ" |
| 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 "B<mmap>(2), B<sysconf>(3), B<pkeys>(7)" |
| 863 |
msgstr "B<mmap>(2), B<sysconf>(3), B<pkeys>(7)" |
| 864 |
|
| 865 |
#. type: TH |
| 866 |
#: debian-trixie |
| 867 |
#, no-wrap |
| 868 |
msgid "2024-06-15" |
| 869 |
msgstr "15 июня 2024 г." |
| 870 |
|
| 871 |
#. type: TH |
| 872 |
#: debian-trixie |
| 873 |
#, no-wrap |
| 874 |
msgid "Linux man-pages 6.9.1" |
| 875 |
msgstr "Страницы руководства Linux 6.9.1" |
| 876 |
|
| 877 |
#. type: Plain text |
| 878 |
#: debian-trixie |
| 879 |
msgid "Standard C library (I<libc>, I<-lc>)" |
| 880 |
msgstr "Стандартная библиотека языка C (I<libc>, I<-lc>)" |
| 881 |
|
| 882 |
#. type: Plain text |
| 883 |
#: debian-trixie |
| 884 |
#, fuzzy, no-wrap |
| 885 |
#| msgid "B<int mprotect(void *>I<addr>B<, size_t >I<len>B<, int >I<prot>B<);>\n" |
| 886 |
msgid "B<int mprotect(void >I<addr>B<[.>I<len>B<], size_t >I<len>B<, int >I<prot>B<);>\n" |
| 887 |
msgstr "B<int mprotect(void *>I<addr>B<, size_t >I<len>B<, int >I<prot>B<);>\n" |
| 888 |
|
| 889 |
#. type: Plain text |
| 890 |
#: debian-trixie |
| 891 |
#, fuzzy, no-wrap |
| 892 |
#| msgid "B<int pkey_mprotect(void *>I<addr>B<, size_t >I<len>B<, int >I<prot>B<, int >I<pkey>B<);>\n" |
| 893 |
msgid "B<int pkey_mprotect(void >I<addr>B<[.>I<len>B<], size_t >I<len>B<, int >I<prot>B<, int >I<pkey>B<);>\n" |
| 894 |
msgstr "B<int pkey_mprotect(void *>I<addr>B<, size_t >I<len>B<, int >I<prot>B<, int >I<pkey>B<);>\n" |
| 895 |
|
| 896 |
#. type: Plain text |
| 897 |
#: debian-trixie |
| 898 |
msgid "" |
| 899 |
"B<mprotect>() changes the access protections for the calling process's " |
| 900 |
"memory pages containing any part of the address range in the interval " |
| 901 |
"[I<addr>,\\ I<addr>+I<len>-1]. I<addr> must be aligned to a page boundary." |
| 902 |
msgstr "" |
| 903 |
"Вызов B<mprotect>() изменяет параметры доступа страниц памяти вызывающего " |
| 904 |
"процесса, которые содержатся, даже частично, в адресном диапазоне [I<addr>," |
| 905 |
"\\ I<addr>+I<len>-1]. Значение I<addr> должно быть выровнено на границу " |
| 906 |
"страницы." |
| 907 |
|
| 908 |
#. type: Plain text |
| 909 |
#: debian-trixie |
| 910 |
msgid "" |
| 911 |
"Like B<mprotect>(), B<pkey_mprotect>() changes the protection on the pages " |
| 912 |
"specified by I<addr> and I<len>. The I<pkey> argument specifies the " |
| 913 |
"protection key (see B<pkeys>(7)) to assign to the memory. The protection " |
| 914 |
"key must be allocated with B<pkey_alloc>(2) before it is passed to " |
| 915 |
"B<pkey_mprotect>(). For an example of the use of this system call, see " |
| 916 |
"B<pkeys>(7)." |
| 917 |
msgstr "" |
| 918 |
"Подобно B<mprotect>(), вызов B<pkey_mprotect>() изменяет защиту страниц, " |
| 919 |
"указанных I<addr> и I<len>. Аргумент I<pkey> содержит ключ защиты (смотрите " |
| 920 |
"B<pkeys>(7)), назначаемый памяти. Ключ защиты должен быть выделен с помощью " |
| 921 |
"B<pkey_alloc>(2) до передачи в B<pkey_mprotect>(). Пример использования " |
| 922 |
"этого системного вызова смотрите в B<pkeys>(7)." |
| 923 |
|
| 924 |
#. type: Plain text |
| 925 |
#: debian-trixie |
| 926 |
#, fuzzy |
| 927 |
#| msgid "" |
| 928 |
#| "Addresses in the range [I<addr>, I<addr>+I<len>-1] are invalid for the " |
| 929 |
#| "address space of the process, or specify one or more pages that are not " |
| 930 |
#| "mapped. (Before kernel 2.4.19, the error B<EFAULT> was incorrectly " |
| 931 |
#| "produced for these cases.)" |
| 932 |
msgid "" |
| 933 |
"Addresses in the range [I<addr>, I<addr>+I<len>-1] are invalid for the " |
| 934 |
"address space of the process, or specify one or more pages that are not " |
| 935 |
"mapped. (Before Linux 2.4.19, the error B<EFAULT> was incorrectly produced " |
| 936 |
"for these cases.)" |
| 937 |
msgstr "" |
| 938 |
"Адреса в диапазоне [I<addr>, I<addr>+I<len>-1] некорректны для адресного " |
| 939 |
"пространства процесса, или одна или более указанных страниц не отображена " |
| 940 |
"(до ядра версии 2.4.19 в этих случаях некорректно возвращалась ошибка " |
| 941 |
"B<EFAULT>)." |
| 942 |
|
| 943 |
#. type: Plain text |
| 944 |
#: debian-trixie fedora-44 fedora-rawhide |
| 945 |
msgid "POSIX.1-2008." |
| 946 |
msgstr "POSIX.1-2008." |
| 947 |
|
| 948 |
#. type: Plain text |
| 949 |
#: debian-trixie fedora-44 fedora-rawhide |
| 950 |
msgid "POSIX.1-2001, SVr4." |
| 951 |
msgstr "POSIX.1-2001, SVr4." |
| 952 |
|
| 953 |
#. type: Plain text |
| 954 |
#: debian-trixie fedora-44 fedora-rawhide |
| 955 |
#, no-wrap |
| 956 |
msgid "" |
| 957 |
"#include E<lt>malloc.hE<gt>\n" |
| 958 |
"#include E<lt>signal.hE<gt>\n" |
| 959 |
"#include E<lt>stdio.hE<gt>\n" |
| 960 |
"#include E<lt>stdlib.hE<gt>\n" |
| 961 |
"#include E<lt>sys/mman.hE<gt>\n" |
| 962 |
"#include E<lt>unistd.hE<gt>\n" |
| 963 |
"\\&\n" |
| 964 |
"#define handle_error(msg) \\[rs]\n" |
| 965 |
" do { perror(msg); exit(EXIT_FAILURE); } while (0)\n" |
| 966 |
"\\&\n" |
| 967 |
"static char *buffer;\n" |
| 968 |
"\\&\n" |
| 969 |
"static void\n" |
| 970 |
"handler(int sig, siginfo_t *si, void *unused)\n" |
| 971 |
"{\n" |
| 972 |
" /* Note: calling printf() from a signal handler is not safe\n" |
| 973 |
" (and should not be done in production programs), since\n" |
| 974 |
" printf() is not async-signal-safe; see signal-safety(7).\n" |
| 975 |
" Nevertheless, we use printf() here as a simple way of\n" |
| 976 |
" showing that the handler was called. */\n" |
| 977 |
"\\&\n" |
| 978 |
" printf(\"Got SIGSEGV at address: %p\\[rs]n\", si-E<gt>si_addr);\n" |
| 979 |
" exit(EXIT_FAILURE);\n" |
| 980 |
"}\n" |
| 981 |
"\\&\n" |
| 982 |
"int\n" |
| 983 |
"main(void)\n" |
| 984 |
"{\n" |
| 985 |
" int pagesize;\n" |
| 986 |
" struct sigaction sa;\n" |
| 987 |
"\\&\n" |
| 988 |
" sa.sa_flags = SA_SIGINFO;\n" |
| 989 |
" sigemptyset(&sa.sa_mask);\n" |
| 990 |
" sa.sa_sigaction = handler;\n" |
| 991 |
" if (sigaction(SIGSEGV, &sa, NULL) == -1)\n" |
| 992 |
" handle_error(\"sigaction\");\n" |
| 993 |
"\\&\n" |
| 994 |
" pagesize = sysconf(_SC_PAGE_SIZE);\n" |
| 995 |
" if (pagesize == -1)\n" |
| 996 |
" handle_error(\"sysconf\");\n" |
| 997 |
"\\&\n" |
| 998 |
" /* Allocate a buffer aligned on a page boundary;\n" |
| 999 |
" initial protection is PROT_READ | PROT_WRITE. */\n" |
| 1000 |
"\\&\n" |
| 1001 |
" buffer = memalign(pagesize, 4 * pagesize);\n" |
| 1002 |
" if (buffer == NULL)\n" |
| 1003 |
" handle_error(\"memalign\");\n" |
| 1004 |
"\\&\n" |
| 1005 |
" printf(\"Start of region: %p\\[rs]n\", buffer);\n" |
| 1006 |
"\\&\n" |
| 1007 |
" if (mprotect(buffer + pagesize * 2, pagesize,\n" |
| 1008 |
" PROT_READ) == -1)\n" |
| 1009 |
" handle_error(\"mprotect\");\n" |
| 1010 |
"\\&\n" |
| 1011 |
" for (char *p = buffer ; ; )\n" |
| 1012 |
" *(p++) = \\[aq]a\\[aq];\n" |
| 1013 |
"\\&\n" |
| 1014 |
" printf(\"Loop completed\\[rs]n\"); /* Should never happen */\n" |
| 1015 |
" exit(EXIT_SUCCESS);\n" |
| 1016 |
"}\n" |
| 1017 |
msgstr "" |
| 1018 |
|
| 1019 |
#. type: TH |
| 1020 |
#: fedora-44 fedora-rawhide |
| 1021 |
#, no-wrap |
| 1022 |
msgid "2024-11-17" |
| 1023 |
msgstr "17 ноября 2024 г." |
| 1024 |
|
| 1025 |
#. type: TH |
| 1026 |
#: fedora-44 fedora-rawhide |
| 1027 |
#, no-wrap |
| 1028 |
msgid "Linux man-pages 6.13" |
| 1029 |
msgstr "Страницы руководства Linux 6.13" |
| 1030 |
|
| 1031 |
#. type: Plain text |
| 1032 |
#: fedora-44 fedora-rawhide |
| 1033 |
#, fuzzy, no-wrap |
| 1034 |
#| msgid "B<int mprotect(void *>I<addr>B<, size_t >I<len>B<, int >I<prot>B<);>\n" |
| 1035 |
msgid "B<int mprotect(void >I<addr>B<[.>I<size>B<], size_t >I<size>B<, int >I<prot>B<);>\n" |
| 1036 |
msgstr "B<int mprotect(void *>I<addr>B<, size_t >I<len>B<, int >I<prot>B<);>\n" |
| 1037 |
|
| 1038 |
#. type: Plain text |
| 1039 |
#: fedora-44 fedora-rawhide |
| 1040 |
#, fuzzy, no-wrap |
| 1041 |
#| msgid "B<int pkey_mprotect(void *>I<addr>B<, size_t >I<len>B<, int >I<prot>B<, int >I<pkey>B<);>\n" |
| 1042 |
msgid "B<int pkey_mprotect(void >I<addr>B<[.>I<size>B<], size_t >I<size>B<, int >I<prot>B<, int >I<pkey>B<);>\n" |
| 1043 |
msgstr "B<int pkey_mprotect(void *>I<addr>B<, size_t >I<len>B<, int >I<prot>B<, int >I<pkey>B<);>\n" |
| 1044 |
|
| 1045 |
#. type: Plain text |
| 1046 |
#: fedora-44 fedora-rawhide |
| 1047 |
#, fuzzy |
| 1048 |
#| msgid "" |
| 1049 |
#| "B<mprotect>() changes the access protections for the calling process's " |
| 1050 |
#| "memory pages containing any part of the address range in the interval " |
| 1051 |
#| "[I<addr>,\\ I<addr>+I<len>-1]. I<addr> must be aligned to a page " |
| 1052 |
#| "boundary." |
| 1053 |
msgid "" |
| 1054 |
"B<mprotect>() changes the access protections for the calling process's " |
| 1055 |
"memory pages containing any part of the address range in the interval " |
| 1056 |
"[I<addr>,\\ I<addr>+I<size>-1]. I<addr> must be aligned to a page boundary." |
| 1057 |
msgstr "" |
| 1058 |
"Вызов B<mprotect>() изменяет параметры доступа страниц памяти вызывающего " |
| 1059 |
"процесса, которые содержатся, даже частично, в адресном диапазоне [I<addr>," |
| 1060 |
"\\ I<addr>+I<len>-1]. Значение I<addr> должно быть выровнено на границу " |
| 1061 |
"страницы." |
| 1062 |
|
| 1063 |
#. type: TH |
| 1064 |
#: mageia-cauldron |
| 1065 |
#, no-wrap |
| 1066 |
msgid "Linux man-pages 6.17" |
| 1067 |
msgstr "Страницы руководства Linux 6.17" |
| 1068 |
|
| 1069 |
#. type: TH |
| 1070 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1071 |
#, no-wrap |
| 1072 |
msgid "Linux man-pages (unreleased)" |
| 1073 |
msgstr "Страницы руководства Linux (не выпущены)" |