Debian Codegraph @

po/ko/man2/mprotect.2.po

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