Debian Codegraph @

po/es/man2/mprotect.2.po

raw
1 # Spanish translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Juan Piernas <[email protected]>, 1998.
5 msgid ""
6 msgstr ""
7 "Project-Id-Version: manpages-l10n\n"
8 "POT-Creation-Date: 2026-06-05 06:31+0200\n"
9 "PO-Revision-Date: 1998-05-03 19:53+0200\n"
10 "Last-Translator: Juan Piernas <[email protected]>\n"
11 "Language-Team: Spanish <[email protected]>\n"
12 "Language: es\n"
13 "MIME-Version: 1.0\n"
14 "Content-Type: text/plain; charset=UTF-8\n"
15 "Content-Transfer-Encoding: 8bit\n"
16 "Plural-Forms: nplurals=2; plural=(n != 1);\n"
17 "X-Generator: Lokalize 20.04.1\n"
18
19 #. type: TH
20 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
21 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
22 #, no-wrap
23 msgid "mprotect"
24 msgstr ""
25
26 #. type: TH
27 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
28 #: opensuse-tumbleweed
29 #, no-wrap
30 msgid "2026-02-11"
31 msgstr "11 Febrero 2026"
32
33 #. type: TH
34 #: archlinux debian-unstable
35 #, fuzzy, no-wrap
36 #| msgid "Linux man-pages 6.17"
37 msgid "Linux man-pages 6.18"
38 msgstr "Páginas de Manual de Linux 6.17"
39
40 #. type: SH
41 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
42 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
43 #, no-wrap
44 msgid "NAME"
45 msgstr "NOMBRE"
46
47 #. type: Plain text
48 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
49 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
50 #, fuzzy
51 #| msgid "mprotect - control allowable accesses to a region of memory"
52 msgid "mprotect, pkey_mprotect - set protection on a region of memory"
53 msgstr ""
54 "mprotect - controla el tipo de acceso permitido sobre una región de memoria"
55
56 #. type: SH
57 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
58 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
59 #, no-wrap
60 msgid "LIBRARY"
61 msgstr "BIBLIOTECA"
62
63 #. type: Plain text
64 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
65 #: opensuse-leap-16-1 opensuse-tumbleweed
66 msgid "Standard C library (I<libc>,\\ I<-lc>)"
67 msgstr "Biblioteca Estándar C (I<libc>,\\ I<-lc>)"
68
69 #. type: SH
70 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
71 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
72 #, no-wrap
73 msgid "SYNOPSIS"
74 msgstr "SINOPSIS"
75
76 #. type: Plain text
77 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
78 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
79 #, no-wrap
80 msgid "B<#include E<lt>sys/mman.hE<gt>>\n"
81 msgstr "B<#include E<lt>sys/mman.hE<gt>>\n"
82
83 #. type: Plain text
84 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
85 #: opensuse-tumbleweed
86 #, fuzzy, no-wrap
87 #| msgid "B<int mprotect(void *>I<addr>B<, size_t >I<len>B<, int >I<prot>B<);>\n"
88 msgid ""
89 "B<int mprotect(>size_t size;\n"
90 "B< void >I<addr>B<[>I<size>B<], size_t >I<size>B<, int >I<prot>B<);>\n"
91 msgstr "B<int mprotect(void *>I<addr>B<, size_t >I<len>B<, int >I<prot>B<);>\n"
92
93 #. type: Plain text
94 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
95 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
96 #, no-wrap
97 msgid ""
98 "B<#define _GNU_SOURCE> /* See feature_test_macros(7) */\n"
99 "B<#include E<lt>sys/mman.hE<gt>>\n"
100 msgstr ""
101 "B<#define _GNU_SOURCE> /* Vea feature_test_macros(7) */\n"
102 "B<#include E<lt>sys/mman.hE<gt>>\n"
103
104 #. type: Plain text
105 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
106 #: opensuse-tumbleweed
107 #, fuzzy, no-wrap
108 #| msgid "B<int pkey_mprotect(void *>I<addr>B<, size_t >I<len>B<, int >I<prot>B<, int >I<pkey>B<);>\n"
109 msgid ""
110 "B<int pkey_mprotect(>size_t size;\n"
111 "B< void >I<addr>B<[>I<size>B<], size_t >I<size>B<, int >I<prot>B<, int >I<pkey>B<);>\n"
112 msgstr "B<int pkey_mprotect(void *>I<addr>B<, size_t >I<len>B<, int >I<prot>B<, int >I<pkey>B<);>\n"
113
114 #. type: SH
115 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
116 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
117 #, no-wrap
118 msgid "DESCRIPTION"
119 msgstr "DESCRIPCIÓN"
120
121 #. type: Plain text
122 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
123 #: opensuse-tumbleweed
124 msgid ""
125 "B<mprotect>() changes the access protections for the calling process's "
126 "memory pages containing any part of the address range in the interval "
127 "[I<addr>, I<addr>+I<size>-1]. I<addr> must be aligned to a page boundary."
128 msgstr ""
129
130 #. type: Plain text
131 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
132 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
133 msgid ""
134 "If the calling process tries to access memory in a manner that violates the "
135 "protections, then the kernel generates a B<SIGSEGV> signal for the process."
136 msgstr ""
137
138 #. type: Plain text
139 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
140 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
141 msgid ""
142 "I<prot> is a combination of the following access flags: B<PROT_NONE> or a "
143 "bitwise OR of the other values in the following list:"
144 msgstr ""
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<PROT_NONE>"
151 msgstr "B<PROT_NONE>"
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 "The memory cannot be accessed at all."
157 msgstr "La memoria no puede ser accedida de ninguna forma."
158
159 #. type: TP
160 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
161 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
162 #, no-wrap
163 msgid "B<PROT_READ>"
164 msgstr "B<PROT_READ>"
165
166 #. type: Plain text
167 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
168 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
169 msgid "The memory can be read."
170 msgstr "La memoria puede ser leída."
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_WRITE>"
177 msgstr "B<PROT_WRITE>"
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 #, fuzzy
183 #| msgid "The memory can be read."
184 msgid "The memory can be modified."
185 msgstr "La memoria puede ser leída."
186
187 #. type: TP
188 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
189 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
190 #, no-wrap
191 msgid "B<PROT_EXEC>"
192 msgstr "B<PROT_EXEC>"
193
194 #. type: Plain text
195 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
196 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
197 #, fuzzy
198 #| msgid "The memory can be read."
199 msgid "The memory can be executed."
200 msgstr "La memoria puede ser leída."
201
202 #. type: TP
203 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
204 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
205 #, no-wrap
206 msgid "B<PROT_SEM> (since Linux 2.5.7)"
207 msgstr "B<PROT_SEM> (desde Linux 2.5.7)"
208
209 #. type: Plain text
210 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
211 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
212 msgid ""
213 "The memory can be used for atomic operations. This flag was introduced as "
214 "part of the B<futex>(2) implementation (in order to guarantee the ability "
215 "to perform atomic operations required by commands such as B<FUTEX_WAIT>), "
216 "but is not currently used in on any architecture."
217 msgstr ""
218
219 #. type: TP
220 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
221 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
222 #, no-wrap
223 msgid "B<PROT_SAO> (since Linux 2.6.26)"
224 msgstr "B<PROT_SAO> (desde Linux 2.6.26)"
225
226 #. commit aba46c5027cb59d98052231b36efcbbde9c77a1d
227 #. commit ef3d3246a0d06be622867d21af25f997aeeb105f
228 #. type: Plain text
229 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
230 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
231 msgid ""
232 "The memory should have strong access ordering. This feature is specific to "
233 "the PowerPC architecture (version 2.06 of the architecture specification "
234 "adds the SAO CPU feature, and it is available on POWER 7 or PowerPC A2, for "
235 "example)."
236 msgstr ""
237
238 #. type: Plain text
239 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
240 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
241 msgid ""
242 "Additionally (since Linux 2.6.0), I<prot> can have one of the following "
243 "flags set:"
244 msgstr ""
245
246 #. mm/mmap.c:
247 #. vm_flags |= calc_vm_prot_bits(prot, pkey) | calc_vm_flag_bits(flags) |
248 #. mm->def_flags | VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC;
249 #. And calc_vm_flag_bits converts only GROWSDOWN/DENYWRITE/LOCKED.
250 #. type: TP
251 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
252 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
253 #, no-wrap
254 msgid "B<PROT_GROWSUP>"
255 msgstr "B<PROT_GROWSUP>"
256
257 #. #-#-#-#-# archlinux: mprotect.2.pot (PACKAGE VERSION) #-#-#-#-#
258 #. The VMA is one that was marked with VM_GROWSUP by the kernel
259 #. when the stack was created. Note that (unlike VM_GROWSDOWN),
260 #. there is no mmap() flag (analogous to MAP_GROWSDOWN) for
261 #. creating a VMA that is marked VM_GROWSUP.
262 #. type: Plain text
263 #. #-#-#-#-# debian-trixie: mprotect.2.pot (PACKAGE VERSION) #-#-#-#-#
264 #. The VMA is one that was marked with VM_GROWSUP by the kernel
265 #. when the stack was created. Note that (unlike VM_GROWSDOWN),
266 #. there is no mmap() flag (analogous to MAP_GROWSDOWN) for
267 #. creating a VMA that is marked VM_GROWSUP.
268 #. type: Plain text
269 #. #-#-#-#-# debian-unstable: mprotect.2.pot (PACKAGE VERSION) #-#-#-#-#
270 #. The VMA is one that was marked with VM_GROWSUP by the kernel
271 #. when the stack was created. Note that (unlike VM_GROWSDOWN),
272 #. there is no mmap() flag (analogous to MAP_GROWSDOWN) for
273 #. creating a VMA that is marked VM_GROWSUP.
274 #. type: Plain text
275 #. #-#-#-#-# fedora-44: mprotect.2.pot (PACKAGE VERSION) #-#-#-#-#
276 #. The VMA is one that was marked with VM_GROWSUP by the kernel
277 #. when the stack was created. Note that (unlike VM_GROWSDOWN),
278 #. there is no mmap() flag (analogous to MAP_GROWSDOWN) for
279 #. creating a VMA that is marked VM_GROWSUP.
280 #. type: Plain text
281 #. #-#-#-#-# fedora-rawhide: mprotect.2.pot (PACKAGE VERSION) #-#-#-#-#
282 #. The VMA is one that was marked with VM_GROWSUP by the kernel
283 #. when the stack was created. Note that (unlike VM_GROWSDOWN),
284 #. there is no mmap() flag (analogous to MAP_GROWSDOWN) for
285 #. creating a VMA that is marked VM_GROWSUP.
286 #. type: Plain text
287 #. #-#-#-#-# mageia-cauldron: mprotect.2.pot (PACKAGE VERSION) #-#-#-#-#
288 #. The VMA is one that was marked with VM_GROWSUP by the kernel
289 #. when the stack was created. Note that (unlike VM_GROWSDOWN),
290 #. there is no mmap() flag (analogous to MAP_GROWSDOWN) for
291 #. creating a VMA that is marked VM_GROWSUP.
292 #. type: Plain text
293 #. #-#-#-#-# opensuse-leap-16-1: mprotect.2.pot (PACKAGE VERSION) #-#-#-#-#
294 #. The VMA is one that was marked with VM_GROWSUP by the kernel
295 #. when the stack was created. Note that (unlike VM_GROWSDOWN),
296 #. there is no mmap() flag (analogous to MAP_GROWSDOWN) for
297 #. creating a VMA that is marked VM_GROWSUP.
298 #. type: Plain text
299 #. #-#-#-#-# opensuse-tumbleweed: mprotect.2.pot (PACKAGE VERSION) #-#-#-#-#
300 #. The VMA is one that was marked with VM_GROWSUP by the kernel
301 #. when the stack was created. Note that (unlike VM_GROWSDOWN),
302 #. there is no mmap() flag (analogous to MAP_GROWSDOWN) for
303 #. creating a VMA that is marked VM_GROWSUP.
304 #. type: Plain text
305 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
306 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
307 msgid ""
308 "Apply the protection mode up to the end of a mapping that grows upwards. "
309 "(Such mappings are created for the stack area on architectures\\[em]for "
310 "example, HP-PARISC\\[em]that have an upwardly growing stack.)"
311 msgstr ""
312
313 #. type: TP
314 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
315 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
316 #, no-wrap
317 msgid "B<PROT_GROWSDOWN>"
318 msgstr "B<PROT_GROWSDOWN>"
319
320 #. type: Plain text
321 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
322 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
323 msgid ""
324 "Apply the protection mode down to the beginning of a mapping that grows "
325 "downward (which should be a stack segment or a segment mapped with the "
326 "B<MAP_GROWSDOWN> flag set)."
327 msgstr ""
328
329 #. type: Plain text
330 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
331 #: opensuse-leap-16-1 opensuse-tumbleweed
332 msgid ""
333 "Like B<mprotect>(), B<pkey_mprotect>() changes the protection on the pages "
334 "specified by I<addr> and I<size>. The I<pkey> argument specifies the "
335 "protection key (see B<pkeys>(7)) to assign to the memory. The protection "
336 "key must be allocated with B<pkey_alloc>(2) before it is passed to "
337 "B<pkey_mprotect>(). For an example of the use of this system call, see "
338 "B<pkeys>(7)."
339 msgstr ""
340
341 #. type: SH
342 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
343 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
344 #, no-wrap
345 msgid "RETURN VALUE"
346 msgstr "VALOR DEVUELTO"
347
348 #. type: Plain text
349 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
350 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
351 #, fuzzy
352 #| msgid ""
353 #| "On success, B<mprotect> returns zero. On error, -1 is returned, and "
354 #| "I<errno> is set appropriately."
355 msgid ""
356 "On success, B<mprotect>() and B<pkey_mprotect>() return zero. On error, "
357 "these system calls return -1, and I<errno> is set to indicate the error."
358 msgstr ""
359 "En caso de éxito, B<mprotect> devuelve cero. En caso de error, se devuelve "
360 "-1, y se asigna a I<errno> un valor apropiado."
361
362 #. type: SH
363 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
364 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
365 #, no-wrap
366 msgid "ERRORS"
367 msgstr "ERRORES"
368
369 #. type: TP
370 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
371 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
372 #, no-wrap
373 msgid "B<EACCES>"
374 msgstr "B<EACCES>"
375
376 #. type: Plain text
377 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
378 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
379 msgid ""
380 "The memory cannot be given the specified access. This can happen, for "
381 "example, if you B<mmap>(2) a file to which you have read-only access, then "
382 "ask B<mprotect>() to mark it B<PROT_WRITE>."
383 msgstr ""
384 "La memoria no permite el acceso especificado. Esto puede ocurrir si, por "
385 "ejemplo, asocia a una zona de memoria mediante B<mmap>(2) un fichero al "
386 "cual sólo tiene acceso de lectura y pide a B<mprotect>() que lo marque "
387 "B<PROT_WRITE>."
388
389 #. type: TP
390 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
391 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
392 #, no-wrap
393 msgid "B<EINVAL>"
394 msgstr "B<EINVAL>"
395
396 #. type: Plain text
397 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
398 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
399 #, fuzzy
400 #| msgid "I<addr> is not a valid pointer, or not a multiple of PAGESIZE."
401 msgid ""
402 "I<addr> is not a valid pointer, or not a multiple of the system page size."
403 msgstr "I<addr> no es un puntero válido, o no es un múltiplo de PAGESIZE."
404
405 #. type: Plain text
406 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
407 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
408 msgid ""
409 "(B<pkey_mprotect>()) I<pkey> has not been allocated with B<pkey_alloc>(2)"
410 msgstr ""
411
412 #. type: Plain text
413 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
414 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
415 msgid "Both B<PROT_GROWSUP> and B<PROT_GROWSDOWN> were specified in I<prot>."
416 msgstr ""
417
418 #. type: Plain text
419 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
420 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
421 msgid "Invalid flags specified in I<prot>."
422 msgstr ""
423
424 #. type: Plain text
425 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
426 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
427 msgid ""
428 "(PowerPC architecture) B<PROT_SAO> was specified in I<prot>, but SAO "
429 "hardware feature is not available."
430 msgstr ""
431
432 #. type: TP
433 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
434 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
435 #, no-wrap
436 msgid "B<ENOMEM>"
437 msgstr "B<ENOMEM>"
438
439 #. type: Plain text
440 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
441 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
442 msgid "Internal kernel structures could not be allocated."
443 msgstr "No se han podido reservar estructuras internas del núcleo."
444
445 #. type: Plain text
446 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
447 #: opensuse-leap-16-1 opensuse-tumbleweed
448 msgid ""
449 "Addresses in the range [I<addr>, I<addr>+I<size>-1] are invalid for the "
450 "address space of the process, or specify one or more pages that are not "
451 "mapped. (Before Linux 2.4.19, the error B<EFAULT> was incorrectly produced "
452 "for these cases.)"
453 msgstr ""
454
455 #. I.e., the number of VMAs would exceed the 64 kB maximum
456 #. type: Plain text
457 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
458 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
459 msgid ""
460 "Changing the protection of a memory region would result in the total number "
461 "of mappings with distinct attributes (e.g., read versus read/write "
462 "protection) exceeding the allowed maximum. (For example, making the "
463 "protection of a range B<PROT_READ> in the middle of a region currently "
464 "protected as B<PROT_READ|PROT_WRITE> would result in three mappings: two "
465 "read/write mappings at each end and a read-only mapping in the middle.)"
466 msgstr ""
467
468 #. type: SH
469 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
470 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
471 #, no-wrap
472 msgid "VERSIONS"
473 msgstr "VERSIONES"
474
475 #. #-#-#-#-# archlinux: mprotect.2.pot (PACKAGE VERSION) #-#-#-#-#
476 #. SVr4 defines an additional error
477 #. code EAGAIN. The SVr4 error conditions don't map neatly onto Linux's.
478 #. type: Plain text
479 #. #-#-#-#-# debian-trixie: mprotect.2.pot (PACKAGE VERSION) #-#-#-#-#
480 #. SVr4 defines an additional error
481 #. code EAGAIN. The SVr4 error conditions don't map neatly onto Linux's.
482 #. type: Plain text
483 #. #-#-#-#-# debian-unstable: mprotect.2.pot (PACKAGE VERSION) #-#-#-#-#
484 #. SVr4 defines an additional error
485 #. code EAGAIN. The SVr4 error conditions don't map neatly onto Linux's.
486 #. type: Plain text
487 #. #-#-#-#-# fedora-44: mprotect.2.pot (PACKAGE VERSION) #-#-#-#-#
488 #. SVr4 defines an additional error
489 #. code EAGAIN. The SVr4 error conditions don't map neatly onto Linux's.
490 #. type: Plain text
491 #. #-#-#-#-# fedora-rawhide: mprotect.2.pot (PACKAGE VERSION) #-#-#-#-#
492 #. SVr4 defines an additional error
493 #. code EAGAIN. The SVr4 error conditions don't map neatly onto Linux's.
494 #. type: Plain text
495 #. #-#-#-#-# mageia-cauldron: mprotect.2.pot (PACKAGE VERSION) #-#-#-#-#
496 #. SVr4 defines an additional error
497 #. code EAGAIN. The SVr4 error conditions don't map neatly onto Linux's.
498 #. type: Plain text
499 #. #-#-#-#-# opensuse-leap-16-1: mprotect.2.pot (PACKAGE VERSION) #-#-#-#-#
500 #. SVr4 defines an additional error
501 #. code EAGAIN. The SVr4 error conditions don't map neatly onto Linux's.
502 #. type: Plain text
503 #. #-#-#-#-# opensuse-tumbleweed: mprotect.2.pot (PACKAGE VERSION) #-#-#-#-#
504 #. SVr4 defines an additional error
505 #. code EAGAIN. The SVr4 error conditions don't map neatly onto Linux's.
506 #. type: Plain text
507 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
508 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
509 msgid ""
510 "POSIX says that the behavior of B<mprotect>() is unspecified if it is "
511 "applied to a region of memory that was not obtained via B<mmap>(2)."
512 msgstr ""
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 ""
518 "On Linux, it is always permissible to call B<mprotect>() on any address in "
519 "a process's address space (except for the kernel vsyscall area). In "
520 "particular, it can be used to change existing code mappings to be writable."
521 msgstr ""
522
523 #. type: Plain text
524 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
525 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
526 msgid ""
527 "Whether B<PROT_EXEC> has any effect different from B<PROT_READ> depends on "
528 "processor architecture, kernel version, and process state. If "
529 "B<READ_IMPLIES_EXEC> is set in the process's personality flags (see "
530 "B<personality>(2)), specifying B<PROT_READ> will implicitly add B<PROT_EXEC>."
531 msgstr ""
532
533 #. type: Plain text
534 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
535 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
536 msgid ""
537 "On some hardware architectures (e.g., i386), B<PROT_WRITE> implies "
538 "B<PROT_READ>."
539 msgstr ""
540
541 #. type: Plain text
542 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
543 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
544 msgid ""
545 "POSIX.1 says that an implementation may permit access other than that "
546 "specified in I<prot>, but at a minimum can allow write access only if "
547 "B<PROT_WRITE> has been set, and must not allow any access if B<PROT_NONE> "
548 "has been set."
549 msgstr ""
550
551 #. type: Plain text
552 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
553 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
554 msgid ""
555 "Applications should be careful when mixing use of B<mprotect>() and "
556 "B<pkey_mprotect>(). On x86, when B<mprotect>() is used with I<prot> set to "
557 "B<PROT_EXEC> a pkey may be allocated and set on the memory implicitly by the "
558 "kernel, but only when the pkey was 0 previously."
559 msgstr ""
560
561 #. type: Plain text
562 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
563 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
564 msgid ""
565 "On systems that do not support protection keys in hardware, "
566 "B<pkey_mprotect>() may still be used, but I<pkey> must be set to -1. When "
567 "called this way, the operation of B<pkey_mprotect>() is equivalent to "
568 "B<mprotect>()."
569 msgstr ""
570
571 #. type: SH
572 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
573 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
574 #, no-wrap
575 msgid "STANDARDS"
576 msgstr "ESTÁNDARES"
577
578 #. type: TP
579 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
580 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
581 #, fuzzy, no-wrap
582 #| msgid "B<connect>(2)"
583 msgid "B<mprotect>()"
584 msgstr "B<connect>(2)"
585
586 #. type: Plain text
587 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
588 #: opensuse-tumbleweed
589 msgid "POSIX.1-2024."
590 msgstr "POSIX.1-2024."
591
592 #. type: TP
593 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
594 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
595 #, no-wrap
596 msgid "B<pkey_mprotect>()"
597 msgstr ""
598
599 #. type: Plain text
600 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
601 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
602 msgid "Linux."
603 msgstr "Linux."
604
605 #. type: SH
606 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
607 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
608 #, no-wrap
609 msgid "HISTORY"
610 msgstr "HISTORIAL"
611
612 #. type: Plain text
613 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
614 #: opensuse-tumbleweed
615 #, fuzzy
616 #| msgid "SVr4, 4.3BSD, POSIX.1-2001."
617 msgid "SVr4, SUSv1, POSIX.1-1996."
618 msgstr "SVr4, 4.3BSD, POSIX.1-2001."
619
620 #. type: Plain text
621 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
622 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
623 #, fuzzy
624 #| msgid "Since glibc 2.2.2:"
625 msgid "Linux 4.9, glibc 2.27."
626 msgstr "Desde glibc 2.2.2:"
627
628 #. type: SH
629 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
630 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
631 #, no-wrap
632 msgid "NOTES"
633 msgstr "NOTAS"
634
635 #. type: SH
636 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
637 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
638 #, no-wrap
639 msgid "EXAMPLES"
640 msgstr "EJEMPLOS"
641
642 #. sigaction.2 refers to this example
643 #. type: Plain text
644 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
645 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
646 msgid ""
647 "The program below demonstrates the use of B<mprotect>(). The program "
648 "allocates four pages of memory, makes the third of these pages read-only, "
649 "and then executes a loop that walks upward through the allocated region "
650 "modifying bytes."
651 msgstr ""
652
653 #. type: Plain text
654 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
655 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
656 msgid ""
657 "An example of what we might see when running the program is the following:"
658 msgstr ""
659
660 #. type: Plain text
661 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
662 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
663 #, no-wrap
664 msgid ""
665 "$B< ./a.out>\n"
666 "Start of region: 0x804c000\n"
667 "Got SIGSEGV at address: 0x804e000\n"
668 msgstr ""
669
670 #. type: SS
671 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
672 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
673 #, no-wrap
674 msgid "Program source"
675 msgstr "Código fuente"
676
677 #. type: Plain text
678 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
679 #: opensuse-tumbleweed
680 #, no-wrap
681 msgid ""
682 "#include E<lt>err.hE<gt>\n"
683 "#include E<lt>malloc.hE<gt>\n"
684 "#include E<lt>signal.hE<gt>\n"
685 "#include E<lt>stdio.hE<gt>\n"
686 "#include E<lt>stdlib.hE<gt>\n"
687 "#include E<lt>sys/mman.hE<gt>\n"
688 "#include E<lt>unistd.hE<gt>\n"
689 "\\&\n"
690 "static char *buffer;\n"
691 "\\&\n"
692 "static void\n"
693 "handler(int sig, siginfo_t *si, void *unused)\n"
694 "{\n"
695 " /* Note: calling printf() from a signal handler is not safe\n"
696 " (and should not be done in production programs), since\n"
697 " printf() is not async-signal-safe; see signal-safety(7).\n"
698 " Nevertheless, we use printf() here as a simple way of\n"
699 " showing that the handler was called. */\n"
700 "\\&\n"
701 " printf(\"Got SIGSEGV at address: %p\\[rs]n\", si-E<gt>si_addr);\n"
702 " exit(EXIT_FAILURE);\n"
703 "}\n"
704 "\\&\n"
705 "int\n"
706 "main(void)\n"
707 "{\n"
708 " int pagesize;\n"
709 " struct sigaction sa;\n"
710 "\\&\n"
711 " sa.sa_flags = SA_SIGINFO;\n"
712 " sigemptyset(&sa.sa_mask);\n"
713 " sa.sa_sigaction = handler;\n"
714 " if (sigaction(SIGSEGV, &sa, NULL) == -1)\n"
715 " err(EXIT_FAILURE, \"sigaction\");\n"
716 "\\&\n"
717 " pagesize = sysconf(_SC_PAGE_SIZE);\n"
718 " if (pagesize == -1)\n"
719 " err(EXIT_FAILURE, \"sysconf\");\n"
720 "\\&\n"
721 " /* Allocate a buffer aligned on a page boundary;\n"
722 " initial protection is PROT_READ | PROT_WRITE. */\n"
723 "\\&\n"
724 " buffer = memalign(pagesize, 4 * pagesize);\n"
725 " if (buffer == NULL)\n"
726 " err(EXIT_FAILURE, \"memalign\");\n"
727 "\\&\n"
728 " printf(\"Start of region: %p\\[rs]n\", buffer);\n"
729 "\\&\n"
730 " if (mprotect(buffer + pagesize * 2, pagesize,\n"
731 " PROT_READ) == -1)\n"
732 " err(EXIT_FAILURE, \"mprotect\");\n"
733 "\\&\n"
734 " for (char *p = buffer ; ; )\n"
735 " *(p++) = \\[aq]a\\[aq];\n"
736 "\\&\n"
737 " printf(\"Loop completed\\[rs]n\"); /* Should never happen */\n"
738 " exit(EXIT_SUCCESS);\n"
739 "}\n"
740 msgstr ""
741
742 #. SRC END
743 #. type: SH
744 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
745 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
746 #, no-wrap
747 msgid "SEE ALSO"
748 msgstr "VÉASE TAMBIÉN"
749
750 #. type: Plain text
751 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
752 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
753 msgid "B<mmap>(2), B<sysconf>(3), B<pkeys>(7)"
754 msgstr "B<mmap>(2), B<sysconf>(3), B<pkeys>(7)"
755
756 #. type: TH
757 #: debian-trixie
758 #, no-wrap
759 msgid "2024-06-15"
760 msgstr "15 Junio 2024"
761
762 #. type: TH
763 #: debian-trixie
764 #, no-wrap
765 msgid "Linux man-pages 6.9.1"
766 msgstr "Páginas de Manual de Linux 6.9.1"
767
768 #. type: Plain text
769 #: debian-trixie
770 msgid "Standard C library (I<libc>, I<-lc>)"
771 msgstr "Biblioteca Estándar C (I<libc>, I<-lc>)"
772
773 #. type: Plain text
774 #: debian-trixie
775 #, fuzzy, no-wrap
776 #| msgid "B<int mprotect(void *>I<addr>B<, size_t >I<len>B<, int >I<prot>B<);>\n"
777 msgid "B<int mprotect(void >I<addr>B<[.>I<len>B<], size_t >I<len>B<, int >I<prot>B<);>\n"
778 msgstr "B<int mprotect(void *>I<addr>B<, size_t >I<len>B<, int >I<prot>B<);>\n"
779
780 #. type: Plain text
781 #: debian-trixie
782 #, fuzzy, no-wrap
783 #| msgid "B<int pkey_mprotect(void *>I<addr>B<, size_t >I<len>B<, int >I<prot>B<, int >I<pkey>B<);>\n"
784 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"
785 msgstr "B<int pkey_mprotect(void *>I<addr>B<, size_t >I<len>B<, int >I<prot>B<, int >I<pkey>B<);>\n"
786
787 #. type: Plain text
788 #: debian-trixie
789 msgid ""
790 "B<mprotect>() changes the access protections for the calling process's "
791 "memory pages containing any part of the address range in the interval "
792 "[I<addr>,\\ I<addr>+I<len>-1]. I<addr> must be aligned to a page boundary."
793 msgstr ""
794
795 #. type: Plain text
796 #: debian-trixie
797 msgid ""
798 "Like B<mprotect>(), B<pkey_mprotect>() changes the protection on the pages "
799 "specified by I<addr> and I<len>. The I<pkey> argument specifies the "
800 "protection key (see B<pkeys>(7)) to assign to the memory. The protection "
801 "key must be allocated with B<pkey_alloc>(2) before it is passed to "
802 "B<pkey_mprotect>(). For an example of the use of this system call, see "
803 "B<pkeys>(7)."
804 msgstr ""
805
806 #. type: Plain text
807 #: debian-trixie
808 msgid ""
809 "Addresses in the range [I<addr>, I<addr>+I<len>-1] are invalid for the "
810 "address space of the process, or specify one or more pages that are not "
811 "mapped. (Before Linux 2.4.19, the error B<EFAULT> was incorrectly produced "
812 "for these cases.)"
813 msgstr ""
814
815 #. type: Plain text
816 #: debian-trixie fedora-44 fedora-rawhide
817 msgid "POSIX.1-2008."
818 msgstr "POSIX.1-2008."
819
820 #. type: Plain text
821 #: debian-trixie fedora-44 fedora-rawhide
822 msgid "POSIX.1-2001, SVr4."
823 msgstr "POSIX.1-2001, SVr4."
824
825 #. type: Plain text
826 #: debian-trixie fedora-44 fedora-rawhide
827 #, no-wrap
828 msgid ""
829 "#include E<lt>malloc.hE<gt>\n"
830 "#include E<lt>signal.hE<gt>\n"
831 "#include E<lt>stdio.hE<gt>\n"
832 "#include E<lt>stdlib.hE<gt>\n"
833 "#include E<lt>sys/mman.hE<gt>\n"
834 "#include E<lt>unistd.hE<gt>\n"
835 "\\&\n"
836 "#define handle_error(msg) \\[rs]\n"
837 " do { perror(msg); exit(EXIT_FAILURE); } while (0)\n"
838 "\\&\n"
839 "static char *buffer;\n"
840 "\\&\n"
841 "static void\n"
842 "handler(int sig, siginfo_t *si, void *unused)\n"
843 "{\n"
844 " /* Note: calling printf() from a signal handler is not safe\n"
845 " (and should not be done in production programs), since\n"
846 " printf() is not async-signal-safe; see signal-safety(7).\n"
847 " Nevertheless, we use printf() here as a simple way of\n"
848 " showing that the handler was called. */\n"
849 "\\&\n"
850 " printf(\"Got SIGSEGV at address: %p\\[rs]n\", si-E<gt>si_addr);\n"
851 " exit(EXIT_FAILURE);\n"
852 "}\n"
853 "\\&\n"
854 "int\n"
855 "main(void)\n"
856 "{\n"
857 " int pagesize;\n"
858 " struct sigaction sa;\n"
859 "\\&\n"
860 " sa.sa_flags = SA_SIGINFO;\n"
861 " sigemptyset(&sa.sa_mask);\n"
862 " sa.sa_sigaction = handler;\n"
863 " if (sigaction(SIGSEGV, &sa, NULL) == -1)\n"
864 " handle_error(\"sigaction\");\n"
865 "\\&\n"
866 " pagesize = sysconf(_SC_PAGE_SIZE);\n"
867 " if (pagesize == -1)\n"
868 " handle_error(\"sysconf\");\n"
869 "\\&\n"
870 " /* Allocate a buffer aligned on a page boundary;\n"
871 " initial protection is PROT_READ | PROT_WRITE. */\n"
872 "\\&\n"
873 " buffer = memalign(pagesize, 4 * pagesize);\n"
874 " if (buffer == NULL)\n"
875 " handle_error(\"memalign\");\n"
876 "\\&\n"
877 " printf(\"Start of region: %p\\[rs]n\", buffer);\n"
878 "\\&\n"
879 " if (mprotect(buffer + pagesize * 2, pagesize,\n"
880 " PROT_READ) == -1)\n"
881 " handle_error(\"mprotect\");\n"
882 "\\&\n"
883 " for (char *p = buffer ; ; )\n"
884 " *(p++) = \\[aq]a\\[aq];\n"
885 "\\&\n"
886 " printf(\"Loop completed\\[rs]n\"); /* Should never happen */\n"
887 " exit(EXIT_SUCCESS);\n"
888 "}\n"
889 msgstr ""
890
891 #. type: TH
892 #: fedora-44 fedora-rawhide
893 #, no-wrap
894 msgid "2024-11-17"
895 msgstr "17 Noviembre 2024"
896
897 #. type: TH
898 #: fedora-44 fedora-rawhide
899 #, no-wrap
900 msgid "Linux man-pages 6.13"
901 msgstr "Páginas de Manual de Linux 6.13"
902
903 #. type: Plain text
904 #: fedora-44 fedora-rawhide
905 #, fuzzy, no-wrap
906 #| msgid "B<int mprotect(void *>I<addr>B<, size_t >I<len>B<, int >I<prot>B<);>\n"
907 msgid "B<int mprotect(void >I<addr>B<[.>I<size>B<], size_t >I<size>B<, int >I<prot>B<);>\n"
908 msgstr "B<int mprotect(void *>I<addr>B<, size_t >I<len>B<, int >I<prot>B<);>\n"
909
910 #. type: Plain text
911 #: fedora-44 fedora-rawhide
912 #, fuzzy, no-wrap
913 #| msgid "B<int pkey_mprotect(void *>I<addr>B<, size_t >I<len>B<, int >I<prot>B<, int >I<pkey>B<);>\n"
914 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"
915 msgstr "B<int pkey_mprotect(void *>I<addr>B<, size_t >I<len>B<, int >I<prot>B<, int >I<pkey>B<);>\n"
916
917 #. type: Plain text
918 #: fedora-44 fedora-rawhide
919 msgid ""
920 "B<mprotect>() changes the access protections for the calling process's "
921 "memory pages containing any part of the address range in the interval "
922 "[I<addr>,\\ I<addr>+I<size>-1]. I<addr> must be aligned to a page boundary."
923 msgstr ""
924
925 #. type: TH
926 #: mageia-cauldron
927 #, no-wrap
928 msgid "Linux man-pages 6.17"
929 msgstr "Páginas de Manual de Linux 6.17"
930
931 #. type: TH
932 #: opensuse-leap-16-1 opensuse-tumbleweed
933 #, no-wrap
934 msgid "Linux man-pages (unreleased)"
935 msgstr "Páginas de Manual de Linux (no publicadas)"