Debian Codegraph @

po/es/man7/pkeys.7.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 msgid ""
5 msgstr ""
6 "Project-Id-Version: manpages-l10n 4.11.0\n"
7 "POT-Creation-Date: 2026-06-05 06:35+0200\n"
8 "PO-Revision-Date: 2021-09-03 21:25+0200\n"
9 "Last-Translator: Automatically generated\n"
10 "Language-Team: Spanish <[email protected]>\n"
11 "Language: es\n"
12 "MIME-Version: 1.0\n"
13 "Content-Type: text/plain; charset=UTF-8\n"
14 "Content-Transfer-Encoding: 8bit\n"
15 "Plural-Forms: nplurals=2; plural=(n != 1);\n"
16
17 #. type: TH
18 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
19 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
20 #, no-wrap
21 msgid "pkeys"
22 msgstr ""
23
24 #. type: TH
25 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
26 #: opensuse-tumbleweed
27 #, no-wrap
28 msgid "2026-02-08"
29 msgstr "8 Febrero 2026"
30
31 #. type: TH
32 #: archlinux debian-unstable
33 #, fuzzy, no-wrap
34 #| msgid "Linux man-pages 6.17"
35 msgid "Linux man-pages 6.18"
36 msgstr "Páginas de Manual de Linux 6.17"
37
38 #. type: SH
39 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
40 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
41 #, no-wrap
42 msgid "NAME"
43 msgstr "NOMBRE"
44
45 #. type: Plain text
46 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
47 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
48 msgid "pkeys - overview of Memory Protection Keys"
49 msgstr ""
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 "DESCRIPTION"
56 msgstr "DESCRIPCIÓN"
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 ""
62 "Memory Protection Keys (pkeys) are an extension to existing page-based "
63 "memory permissions. Normal page permissions using page tables require "
64 "expensive system calls and TLB invalidations when changing permissions. "
65 "Memory Protection Keys provide a mechanism for changing protections without "
66 "requiring modification of the page tables on every permission change."
67 msgstr ""
68
69 #. type: Plain text
70 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
71 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
72 msgid ""
73 "To use pkeys, software must first \"tag\" a page in the page tables with a "
74 "pkey. After this tag is in place, an application only has to change the "
75 "contents of a register in order to remove write access, or all access to a "
76 "tagged page."
77 msgstr ""
78
79 #. type: Plain text
80 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
81 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
82 msgid ""
83 "Protection keys work in conjunction with the existing B<PROT_READ>, "
84 "B<PROT_WRITE>, and B<PROT_EXEC> permissions passed to system calls such as "
85 "B<mprotect>(2) and B<mmap>(2), but always act to further restrict these "
86 "traditional permission mechanisms."
87 msgstr ""
88
89 #. type: Plain text
90 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
91 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
92 msgid ""
93 "If a process performs an access that violates pkey restrictions, it receives "
94 "a B<SIGSEGV> signal. See B<sigaction>(2) for details of the information "
95 "available with that signal."
96 msgstr ""
97
98 #. type: Plain text
99 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
100 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
101 msgid ""
102 "To use the pkeys feature, the processor must support it, and the kernel must "
103 "contain support for the feature on a given processor. As of early 2016 only "
104 "future Intel x86 processors are supported, and this hardware supports 16 "
105 "protection keys in each process. However, pkey 0 is used as the default "
106 "key, so a maximum of 15 are available for actual application use. The "
107 "default key is assigned to any memory region for which a pkey has not been "
108 "explicitly assigned via B<pkey_mprotect>(2)."
109 msgstr ""
110
111 #. type: Plain text
112 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
113 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
114 msgid ""
115 "Protection keys have the potential to add a layer of security and "
116 "reliability to applications. But they have not been primarily designed as a "
117 "security feature. For instance, WRPKRU is a completely unprivileged "
118 "instruction, so pkeys are useless in any case that an attacker controls the "
119 "PKRU register or can execute arbitrary instructions."
120 msgstr ""
121
122 #. type: Plain text
123 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
124 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
125 msgid ""
126 "Applications should be very careful to ensure that they do not \"leak\" "
127 "protection keys. For instance, before calling B<pkey_free>(2), the "
128 "application should be sure that no memory has that pkey assigned. If the "
129 "application left the freed pkey assigned, a future user of that pkey might "
130 "inadvertently change the permissions of an unrelated data structure, which "
131 "could impact security or stability. The kernel currently allows in-use "
132 "pkeys to have B<pkey_free>(2) called on them because it would have "
133 "processor or memory performance implications to perform the additional "
134 "checks needed to disallow it. Implementation of the necessary checks is "
135 "left up to applications. Applications may implement these checks by "
136 "searching the I</proc/>pidI</smaps> file for memory regions with the pkey "
137 "assigned. Further details can be found in B<proc>(5)."
138 msgstr ""
139
140 #. type: Plain text
141 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
142 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
143 msgid ""
144 "Any application wanting to use protection keys needs to be able to function "
145 "without them. They might be unavailable because the hardware that the "
146 "application runs on does not support them, the kernel code does not contain "
147 "support, the kernel support has been disabled, or because the keys have all "
148 "been allocated, perhaps by a library the application is using. It is "
149 "recommended that applications wanting to use protection keys should simply "
150 "call B<pkey_alloc>(2) and test whether the call succeeds, instead of "
151 "attempting to detect support for the feature in any other way."
152 msgstr ""
153
154 #. type: Plain text
155 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
156 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
157 msgid ""
158 "Although unnecessary, hardware support for protection keys may be enumerated "
159 "with the I<cpuid> instruction. Details of how to do this can be found in "
160 "the Intel Software Developers Manual. The kernel performs this enumeration "
161 "and exposes the information in I</proc/cpuinfo> under the \"flags\" field. "
162 "The string \"pku\" in this field indicates hardware support for protection "
163 "keys and the string \"ospke\" indicates that the kernel contains and has "
164 "enabled protection keys support."
165 msgstr ""
166
167 #. type: Plain text
168 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
169 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
170 msgid ""
171 "Applications using threads and protection keys should be especially "
172 "careful. Threads inherit the protection key rights of the parent at the "
173 "time of the B<clone>(2), system call. Applications should either ensure "
174 "that their own permissions are appropriate for child threads at the time "
175 "when B<clone>(2) is called, or ensure that each child thread can perform "
176 "its own initialization of protection key rights."
177 msgstr ""
178
179 #. type: SS
180 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
181 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
182 #, no-wrap
183 msgid "Signal Handler Behavior"
184 msgstr ""
185
186 #. type: Plain text
187 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
188 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
189 msgid ""
190 "Each time a signal handler is invoked (including nested signals), the thread "
191 "is temporarily given a new, default set of protection key rights that "
192 "override the rights from the interrupted context. This means that "
193 "applications must re-establish their desired protection key rights upon "
194 "entering a signal handler if the desired rights differ from the defaults. "
195 "The rights of any interrupted context are restored when the signal handler "
196 "returns."
197 msgstr ""
198
199 #. type: Plain text
200 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
201 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
202 msgid ""
203 "This signal behavior is unusual and is due to the fact that the x86 PKRU "
204 "register (which stores protection key access rights) is managed with the "
205 "same hardware mechanism (XSAVE) that manages floating-point registers. The "
206 "signal behavior is the same as that of floating-point registers."
207 msgstr ""
208
209 #. type: SS
210 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
211 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
212 #, no-wrap
213 msgid "Protection Keys system calls"
214 msgstr ""
215
216 #. type: Plain text
217 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
218 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
219 msgid ""
220 "The Linux kernel implements the following pkey-related system calls: "
221 "B<pkey_mprotect>(2), B<pkey_alloc>(2), and B<pkey_free>(2)."
222 msgstr ""
223
224 #. type: Plain text
225 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
226 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
227 msgid ""
228 "The Linux pkey system calls are available only if the kernel was configured "
229 "and built with the B<CONFIG_X86_INTEL_MEMORY_PROTECTION_KEYS> option."
230 msgstr ""
231
232 #. type: SH
233 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
234 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
235 #, no-wrap
236 msgid "EXAMPLES"
237 msgstr "EJEMPLOS"
238
239 #. type: Plain text
240 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
241 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
242 msgid ""
243 "The program below allocates a page of memory with read and write "
244 "permissions. It then writes some data to the memory and successfully reads "
245 "it back. After that, it attempts to allocate a protection key and disallows "
246 "access to the page by using the WRPKRU instruction. It then tries to access "
247 "the page, which we now expect to cause a fatal signal to the application."
248 msgstr ""
249
250 #. type: Plain text
251 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
252 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
253 #, no-wrap
254 msgid ""
255 "$B< ./a.out>\n"
256 "buffer contains: 73\n"
257 "about to read buffer again...\n"
258 "Segmentation fault (core dumped)\n"
259 msgstr ""
260
261 #. type: SS
262 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
263 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
264 #, no-wrap
265 msgid "Program source"
266 msgstr "Código fuente"
267
268 #. type: Plain text
269 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
270 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
271 #, no-wrap
272 msgid ""
273 "#define _GNU_SOURCE\n"
274 "#include E<lt>err.hE<gt>\n"
275 "#include E<lt>unistd.hE<gt>\n"
276 "#include E<lt>stdio.hE<gt>\n"
277 "#include E<lt>stdlib.hE<gt>\n"
278 "#include E<lt>sys/mman.hE<gt>\n"
279 "\\&\n"
280 "int\n"
281 "main(void)\n"
282 "{\n"
283 " int status;\n"
284 " int pkey;\n"
285 " int *buffer;\n"
286 "\\&\n"
287 " /*\n"
288 " * Allocate one page of memory.\n"
289 " */\n"
290 " buffer = mmap(NULL, getpagesize(), PROT_READ | PROT_WRITE,\n"
291 " MAP_ANONYMOUS | MAP_PRIVATE, -1, 0);\n"
292 " if (buffer == MAP_FAILED)\n"
293 " err(EXIT_FAILURE, \"mmap\");\n"
294 "\\&\n"
295 " /*\n"
296 " * Put some random data into the page (still OK to touch).\n"
297 " */\n"
298 " *buffer = __LINE__;\n"
299 " printf(\"buffer contains: %d\\[rs]n\", *buffer);\n"
300 "\\&\n"
301 " /*\n"
302 " * Allocate a protection key:\n"
303 " */\n"
304 " pkey = pkey_alloc(0, 0);\n"
305 " if (pkey == -1)\n"
306 " err(EXIT_FAILURE, \"pkey_alloc\");\n"
307 "\\&\n"
308 " /*\n"
309 " * Disable access to any memory with \"pkey\" set,\n"
310 " * even though there is none right now.\n"
311 " */\n"
312 " status = pkey_set(pkey, PKEY_DISABLE_ACCESS);\n"
313 " if (status)\n"
314 " err(EXIT_FAILURE, \"pkey_set\");\n"
315 "\\&\n"
316 " /*\n"
317 " * Set the protection key on \"buffer\".\n"
318 " * Note that it is still read/write as far as mprotect() is\n"
319 " * concerned and the previous pkey_set() overrides it.\n"
320 " */\n"
321 " status = pkey_mprotect(buffer, getpagesize(),\n"
322 " PROT_READ | PROT_WRITE, pkey);\n"
323 " if (status == -1)\n"
324 " err(EXIT_FAILURE, \"pkey_mprotect\");\n"
325 "\\&\n"
326 " printf(\"about to read buffer again...\\[rs]n\");\n"
327 "\\&\n"
328 " /*\n"
329 " * This will crash, because we have disallowed access.\n"
330 " */\n"
331 " printf(\"buffer contains: %d\\[rs]n\", *buffer);\n"
332 "\\&\n"
333 " status = pkey_free(pkey);\n"
334 " if (status == -1)\n"
335 " err(EXIT_FAILURE, \"pkey_free\");\n"
336 "\\&\n"
337 " exit(EXIT_SUCCESS);\n"
338 "}\n"
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 "SEE ALSO"
346 msgstr "VÉASE TAMBIÉN"
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 msgid "B<pkey_alloc>(2), B<pkey_free>(2), B<pkey_mprotect>(2), B<sigaction>(2)"
352 msgstr ""
353
354 #. type: TH
355 #: debian-trixie fedora-44 fedora-rawhide
356 #, no-wrap
357 msgid "2024-06-15"
358 msgstr "15 Junio 2024"
359
360 #. type: TH
361 #: debian-trixie
362 #, no-wrap
363 msgid "Linux man-pages 6.9.1"
364 msgstr "Páginas de Manual de Linux 6.9.1"
365
366 #. type: TH
367 #: fedora-44 fedora-rawhide
368 #, no-wrap
369 msgid "Linux man-pages 6.13"
370 msgstr "Páginas de Manual de Linux 6.13"
371
372 #. type: TH
373 #: mageia-cauldron
374 #, no-wrap
375 msgid "Linux man-pages 6.17"
376 msgstr "Páginas de Manual de Linux 6.17"
377
378 #. type: TH
379 #: opensuse-leap-16-1 opensuse-tumbleweed
380 #, no-wrap
381 msgid "Linux man-pages (unreleased)"
382 msgstr "Páginas de Manual de Linux (no publicadas)"