| 1 |
# Romanian translation of manpages |
| 2 |
# This file is distributed under the same license as the manpages-l10n package. |
| 3 |
# Copyright © of this file: |
| 4 |
# Remus-Gabriel Chelu <[email protected]>, 2025. |
| 5 |
msgid "" |
| 6 |
msgstr "" |
| 7 |
"Project-Id-Version: manpages-l10n 4.26.0\n" |
| 8 |
"POT-Creation-Date: 2025-08-10 07:53+0200\n" |
| 9 |
"PO-Revision-Date: 2025-04-20 23:44+0200\n" |
| 10 |
"Last-Translator: Remus-Gabriel Chelu <[email protected]>\n" |
| 11 |
"Language-Team: Romanian <[email protected]>\n" |
| 12 |
"Language: ro\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=3; plural=n==1 ? 0 : (n==0 || (n%100 > 0 && n%100 < " |
| 17 |
"20)) ? 1 : 2;\n" |
| 18 |
"X-Generator: Poedit 3.5\n" |
| 19 |
|
| 20 |
#. type: TH |
| 21 |
#: mageia-cauldron |
| 22 |
#, no-wrap |
| 23 |
msgid "ioctl_ns" |
| 24 |
msgstr "ioctl_ns" |
| 25 |
|
| 26 |
#. type: TH |
| 27 |
#: mageia-cauldron |
| 28 |
#, no-wrap |
| 29 |
msgid "2023-10-31" |
| 30 |
msgstr "31 octombrie 2023" |
| 31 |
|
| 32 |
#. type: TH |
| 33 |
#: mageia-cauldron |
| 34 |
#, no-wrap |
| 35 |
msgid "Linux man-pages 6.06" |
| 36 |
msgstr "Pagini de manual de Linux 6.06" |
| 37 |
|
| 38 |
#. type: SH |
| 39 |
#: mageia-cauldron |
| 40 |
#, no-wrap |
| 41 |
msgid "NAME" |
| 42 |
msgstr "NUME" |
| 43 |
|
| 44 |
#. type: Plain text |
| 45 |
#: mageia-cauldron |
| 46 |
msgid "ioctl_ns - ioctl() operations for Linux namespaces" |
| 47 |
msgstr "ioctl_ns - operații ioctl() pentru spațiile de nume Linux" |
| 48 |
|
| 49 |
#. type: SH |
| 50 |
#: mageia-cauldron |
| 51 |
#, no-wrap |
| 52 |
msgid "DESCRIPTION" |
| 53 |
msgstr "DESCRIERE" |
| 54 |
|
| 55 |
#. ============================================================ |
| 56 |
#. type: SS |
| 57 |
#: mageia-cauldron |
| 58 |
#, no-wrap |
| 59 |
msgid "Discovering namespace relationships" |
| 60 |
msgstr "Descoperirea relațiilor dintre spațiile de nume" |
| 61 |
|
| 62 |
#. type: Plain text |
| 63 |
#: mageia-cauldron |
| 64 |
msgid "" |
| 65 |
"The following B<ioctl>(2) operations are provided to allow discovery of " |
| 66 |
"namespace relationships (see B<user_namespaces>(7) and " |
| 67 |
"B<pid_namespaces>(7)). The form of the calls is:" |
| 68 |
msgstr "" |
| 69 |
"Următoarele operații B<ioctl>(2) sunt furnizate pentru a permite " |
| 70 |
"descoperirea relațiilor dintre spațiile de nume (a se vedea " |
| 71 |
"B<user_namespaces>(7) și B<pid_namespaces>(7)). Forma apelurilor este:" |
| 72 |
|
| 73 |
#. type: Plain text |
| 74 |
#: mageia-cauldron |
| 75 |
#, no-wrap |
| 76 |
msgid "new_fd = ioctl(fd, request);\n" |
| 77 |
msgstr "new_fd = ioctl(fd, request);\n" |
| 78 |
|
| 79 |
#. type: Plain text |
| 80 |
#: mageia-cauldron |
| 81 |
msgid "" |
| 82 |
"In each case, I<fd> refers to a I</proc/>pidI</ns/*> file. Both operations " |
| 83 |
"return a new file descriptor on success." |
| 84 |
msgstr "" |
| 85 |
"În fiecare caz, I<fd> se referă la un fișier I</proc/>pidI</ns/*>. Ambele " |
| 86 |
"operații returnează un nou descriptor de fișier în caz de succes." |
| 87 |
|
| 88 |
#. type: TP |
| 89 |
#: mageia-cauldron |
| 90 |
#, no-wrap |
| 91 |
msgid "B<NS_GET_USERNS> (since Linux 4.9)" |
| 92 |
msgstr "B<NS_GET_USERNS> (începând cu Linux 4.9)" |
| 93 |
|
| 94 |
#. commit bcac25a58bfc6bd79191ac5d7afb49bea96da8c9 |
| 95 |
#. commit 6786741dbf99e44fb0c0ed85a37582b8a26f1c3b |
| 96 |
#. type: Plain text |
| 97 |
#: mageia-cauldron |
| 98 |
msgid "" |
| 99 |
"Returns a file descriptor that refers to the owning user namespace for the " |
| 100 |
"namespace referred to by I<fd>." |
| 101 |
msgstr "" |
| 102 |
"Returnează un descriptor de fișier care se referă la spațiul de nume al " |
| 103 |
"utilizatorului proprietar pentru spațiul de nume menționat de I<fd>." |
| 104 |
|
| 105 |
#. type: TP |
| 106 |
#: mageia-cauldron |
| 107 |
#, no-wrap |
| 108 |
msgid "B<NS_GET_PARENT> (since Linux 4.9)" |
| 109 |
msgstr "B<NS_GET_PARENT> (începând cu Linux 4.9)" |
| 110 |
|
| 111 |
#. commit a7306ed8d94af729ecef8b6e37506a1c6fc14788 |
| 112 |
#. type: Plain text |
| 113 |
#: mageia-cauldron |
| 114 |
msgid "" |
| 115 |
"Returns a file descriptor that refers to the parent namespace of the " |
| 116 |
"namespace referred to by I<fd>. This operation is valid only for " |
| 117 |
"hierarchical namespaces (i.e., PID and user namespaces). For user " |
| 118 |
"namespaces, B<NS_GET_PARENT> is synonymous with B<NS_GET_USERNS>." |
| 119 |
msgstr "" |
| 120 |
"Returnează un descriptor de fișier care se referă la spațiul de nume părinte " |
| 121 |
"al spațiului de nume menționat de I<fd>. Această operație este valabilă " |
| 122 |
"numai pentru spațiile de nume ierarhice (de exemplu, spațiile de nume PID și " |
| 123 |
"utilizator). Pentru spațiile de nume utilizator, B<NS_GET_PARENT> este " |
| 124 |
"sinonim cu B<NS_GET_USERNS>." |
| 125 |
|
| 126 |
#. type: Plain text |
| 127 |
#: mageia-cauldron |
| 128 |
msgid "" |
| 129 |
"The new file descriptor returned by these operations is opened with the " |
| 130 |
"B<O_RDONLY> and B<O_CLOEXEC> (close-on-exec; see B<fcntl>(2)) flags." |
| 131 |
msgstr "" |
| 132 |
"Noul descriptor de fișier returnat de aceste operații este deschis cu " |
| 133 |
"fanioanele B<O_RDONLY> și B<O_CLOEXEC> (close-on-exec; a se vedea " |
| 134 |
"B<fcntl>(2))." |
| 135 |
|
| 136 |
#. type: Plain text |
| 137 |
#: mageia-cauldron |
| 138 |
msgid "" |
| 139 |
"By applying B<fstat>(2) to the returned file descriptor, one obtains a " |
| 140 |
"I<stat> structure whose I<st_dev> (resident device) and I<st_ino> (inode " |
| 141 |
"number) fields together identify the owning/parent namespace. This inode " |
| 142 |
"number can be matched with the inode number of another I</proc/>pidI</ns/" |
| 143 |
">{I<pid>,I<user>} file to determine whether that is the owning/parent " |
| 144 |
"namespace." |
| 145 |
msgstr "" |
| 146 |
"Aplicând B<fstat>(2) descriptorului de fișier returnat, se obține o " |
| 147 |
"structură I<stat> ale cărei câmpuri I<st_dev> (dispozitiv rezident) și " |
| 148 |
"I<st_ino> (număr de nod-i) identifică împreună spațiul de nume proprietar/" |
| 149 |
"părinte. Acest număr de nod-i poate fi comparat cu numărul de nod-i al unui " |
| 150 |
"alt fișier I</proc/>pidI</ns/>{I<pid>,I<user>} pentru a determina dacă " |
| 151 |
"acesta este spațiul de nume proprietar/părinte." |
| 152 |
|
| 153 |
#. type: Plain text |
| 154 |
#: mageia-cauldron |
| 155 |
msgid "" |
| 156 |
"Either of these B<ioctl>(2) operations can fail with the following errors:" |
| 157 |
msgstr "" |
| 158 |
"Oricare dintre aceste operații B<ioctl>(2) poate eșua cu următoarele erori:" |
| 159 |
|
| 160 |
#. type: TP |
| 161 |
#: mageia-cauldron |
| 162 |
#, no-wrap |
| 163 |
msgid "B<EPERM>" |
| 164 |
msgstr "B<EPERM>" |
| 165 |
|
| 166 |
#. type: Plain text |
| 167 |
#: mageia-cauldron |
| 168 |
msgid "" |
| 169 |
"The requested namespace is outside of the caller's namespace scope. This " |
| 170 |
"error can occur if, for example, the owning user namespace is an ancestor of " |
| 171 |
"the caller's current user namespace. It can also occur on attempts to " |
| 172 |
"obtain the parent of the initial user or PID namespace." |
| 173 |
msgstr "" |
| 174 |
"Spațiul de nume solicitat este în afara domeniului de aplicare al spațiului " |
| 175 |
"de nume al apelantului. Această eroare poate apărea dacă, de exemplu, " |
| 176 |
"spațiul de nume al utilizatorului proprietar este un strămoș al spațiului de " |
| 177 |
"nume al utilizatorului curent al apelantului. De asemenea, aceasta poate " |
| 178 |
"apărea în cazul încercărilor de a obține părintele spațiului de nume al " |
| 179 |
"utilizatorului inițial sau al PID." |
| 180 |
|
| 181 |
#. type: TP |
| 182 |
#: mageia-cauldron |
| 183 |
#, no-wrap |
| 184 |
msgid "B<ENOTTY>" |
| 185 |
msgstr "B<ENOTTY>" |
| 186 |
|
| 187 |
#. type: Plain text |
| 188 |
#: mageia-cauldron |
| 189 |
msgid "The operation is not supported by this kernel version." |
| 190 |
msgstr "Operația nu este acceptată de această versiune a nucleului." |
| 191 |
|
| 192 |
#. type: Plain text |
| 193 |
#: mageia-cauldron |
| 194 |
msgid "" |
| 195 |
"Additionally, the B<NS_GET_PARENT> operation can fail with the following " |
| 196 |
"error:" |
| 197 |
msgstr "În plus, operația B<NS_GET_PARENT> poate eșua cu următoarea eroare:" |
| 198 |
|
| 199 |
#. type: TP |
| 200 |
#: mageia-cauldron |
| 201 |
#, no-wrap |
| 202 |
msgid "B<EINVAL>" |
| 203 |
msgstr "B<EINVAL>" |
| 204 |
|
| 205 |
#. type: Plain text |
| 206 |
#: mageia-cauldron |
| 207 |
msgid "I<fd> refers to a nonhierarchical namespace." |
| 208 |
msgstr "I<fd> se referă la un spațiu de nume neierarhic." |
| 209 |
|
| 210 |
#. ============================================================ |
| 211 |
#. type: Plain text |
| 212 |
#: mageia-cauldron |
| 213 |
msgid "See the EXAMPLES section for an example of the use of these operations." |
| 214 |
msgstr "" |
| 215 |
"Consultați secțiunea EXEMPLE pentru un exemplu de utilizare a acestor " |
| 216 |
"operații." |
| 217 |
|
| 218 |
#. type: SS |
| 219 |
#: mageia-cauldron |
| 220 |
#, no-wrap |
| 221 |
msgid "Discovering the namespace type" |
| 222 |
msgstr "Descoperirea tipului de spațiu de nume" |
| 223 |
|
| 224 |
#. commit e5ff5ce6e20ee22511398bb31fb912466cf82a36 |
| 225 |
#. type: Plain text |
| 226 |
#: mageia-cauldron |
| 227 |
msgid "" |
| 228 |
"The B<NS_GET_NSTYPE> operation (available since Linux 4.11) can be used to " |
| 229 |
"discover the type of namespace referred to by the file descriptor I<fd>:" |
| 230 |
msgstr "" |
| 231 |
"Operația B<NS_GET_NSTYPE> (disponibilă începând cu Linux 4.11) poate fi " |
| 232 |
"utilizată pentru a descoperi tipul de spațiu de nume la care se referă " |
| 233 |
"descriptorul de fișier I<fd>:" |
| 234 |
|
| 235 |
#. type: Plain text |
| 236 |
#: mageia-cauldron |
| 237 |
#, no-wrap |
| 238 |
msgid "nstype = ioctl(fd, NS_GET_NSTYPE);\n" |
| 239 |
msgstr "nstype = ioctl(fd, NS_GET_NSTYPE);\n" |
| 240 |
|
| 241 |
#. type: Plain text |
| 242 |
#: mageia-cauldron |
| 243 |
msgid "I<fd> refers to a I</proc/>pidI</ns/*> file." |
| 244 |
msgstr "I<fd> refers to a I</proc/>pidI</ns/*> file." |
| 245 |
|
| 246 |
#. ============================================================ |
| 247 |
#. type: Plain text |
| 248 |
#: mageia-cauldron |
| 249 |
msgid "" |
| 250 |
"The return value is one of the B<CLONE_NEW*> values that can be specified to " |
| 251 |
"B<clone>(2) or B<unshare>(2) in order to create a namespace." |
| 252 |
msgstr "" |
| 253 |
"Valoarea de returnare este una dintre valorile B<CLONE_NEW*> care pot fi " |
| 254 |
"specificate la B<clone>(2) sau B<unshare>(2) pentru a crea un spațiu de nume." |
| 255 |
|
| 256 |
#. type: SS |
| 257 |
#: mageia-cauldron |
| 258 |
#, no-wrap |
| 259 |
msgid "Discovering the owner of a user namespace" |
| 260 |
msgstr "Descoperirea proprietarului unui spațiu de nume de utilizator" |
| 261 |
|
| 262 |
#. commit 015bb305b8ebe8d601a238ab70ebdc394c7a19ba |
| 263 |
#. type: Plain text |
| 264 |
#: mageia-cauldron |
| 265 |
msgid "" |
| 266 |
"The B<NS_GET_OWNER_UID> operation (available since Linux 4.11) can be used " |
| 267 |
"to discover the owner user ID of a user namespace (i.e., the effective user " |
| 268 |
"ID of the process that created the user namespace). The form of the call is:" |
| 269 |
msgstr "" |
| 270 |
"Operația B<NS_GET_OWNER_UID> (disponibilă începând cu Linux 4.11) poate fi " |
| 271 |
"utilizată pentru a descoperi ID-ul utilizatorului proprietar al unui spațiu " |
| 272 |
"de nume al utilizatorului (adică ID-ul utilizatorului efectiv al procesului " |
| 273 |
"care a creat spațiul de nume al utilizatorului). Forma apelului este:" |
| 274 |
|
| 275 |
#. type: Plain text |
| 276 |
#: mageia-cauldron |
| 277 |
#, no-wrap |
| 278 |
msgid "" |
| 279 |
"uid_t uid;\n" |
| 280 |
"ioctl(fd, NS_GET_OWNER_UID, &uid);\n" |
| 281 |
msgstr "" |
| 282 |
"uid_t uid;\n" |
| 283 |
"ioctl(fd, NS_GET_OWNER_UID, &uid);\n" |
| 284 |
|
| 285 |
#. type: Plain text |
| 286 |
#: mageia-cauldron |
| 287 |
msgid "I<fd> refers to a I</proc/>pidI</ns/user> file." |
| 288 |
msgstr "I<fd> se referă la un fișier I</proc/>pidI</ns/user>." |
| 289 |
|
| 290 |
#. type: Plain text |
| 291 |
#: mageia-cauldron |
| 292 |
msgid "" |
| 293 |
"The owner user ID is returned in the I<uid_t> pointed to by the third " |
| 294 |
"argument." |
| 295 |
msgstr "" |
| 296 |
"ID-ul utilizatorului proprietar este returnat în I<uid_t> indicat de al " |
| 297 |
"treilea argument." |
| 298 |
|
| 299 |
#. type: Plain text |
| 300 |
#: mageia-cauldron |
| 301 |
msgid "This operation can fail with the following error:" |
| 302 |
msgstr "Această operație poate eșua cu următoarea eroare:" |
| 303 |
|
| 304 |
#. type: Plain text |
| 305 |
#: mageia-cauldron |
| 306 |
msgid "I<fd> does not refer to a user namespace." |
| 307 |
msgstr "I<fd> nu se referă la un spațiu de nume al utilizatorului." |
| 308 |
|
| 309 |
#. type: SH |
| 310 |
#: mageia-cauldron |
| 311 |
#, no-wrap |
| 312 |
msgid "ERRORS" |
| 313 |
msgstr "ERORI-IEȘIRE" |
| 314 |
|
| 315 |
#. type: Plain text |
| 316 |
#: mageia-cauldron |
| 317 |
msgid "" |
| 318 |
"Any of the above B<ioctl>() operations can return the following errors:" |
| 319 |
msgstr "" |
| 320 |
"Oricare dintre operațiile B<ioctl>() de mai sus poate returna următoarele " |
| 321 |
"erori:" |
| 322 |
|
| 323 |
#. type: Plain text |
| 324 |
#: mageia-cauldron |
| 325 |
msgid "I<fd> does not refer to a I</proc/>pidI</ns/>* file." |
| 326 |
msgstr "I<fd> nu se referă la un fișier I</proc/>pidI</ns/>*." |
| 327 |
|
| 328 |
#. type: SH |
| 329 |
#: mageia-cauldron |
| 330 |
#, no-wrap |
| 331 |
msgid "STANDARDS" |
| 332 |
msgstr "STANDARDE" |
| 333 |
|
| 334 |
#. type: Plain text |
| 335 |
#: mageia-cauldron |
| 336 |
msgid "Linux." |
| 337 |
msgstr "Linux." |
| 338 |
|
| 339 |
#. type: SH |
| 340 |
#: mageia-cauldron |
| 341 |
#, no-wrap |
| 342 |
msgid "EXAMPLES" |
| 343 |
msgstr "EXEMPLE" |
| 344 |
|
| 345 |
#. type: Plain text |
| 346 |
#: mageia-cauldron |
| 347 |
msgid "" |
| 348 |
"The example shown below uses the B<ioctl>(2) operations described above to " |
| 349 |
"perform simple discovery of namespace relationships. The following shell " |
| 350 |
"sessions show various examples of the use of this program." |
| 351 |
msgstr "" |
| 352 |
"Exemplul prezentat mai jos utilizează operațiile B<ioctl>(2) descrise mai " |
| 353 |
"sus pentru a efectua o descoperire simplă a relațiilor dintre spațiile de " |
| 354 |
"nume. Următoarele sesiuni shell prezintă diverse exemple de utilizare a " |
| 355 |
"acestui program." |
| 356 |
|
| 357 |
#. type: Plain text |
| 358 |
#: mageia-cauldron |
| 359 |
msgid "" |
| 360 |
"Trying to get the parent of the initial user namespace fails, since it has " |
| 361 |
"no parent:" |
| 362 |
msgstr "" |
| 363 |
"Încercarea de a obține părintele spațiului de nume al utilizatorului inițial " |
| 364 |
"eșuează, deoarece acesta nu are părinte:" |
| 365 |
|
| 366 |
#. type: Plain text |
| 367 |
#: mageia-cauldron |
| 368 |
#, no-wrap |
| 369 |
msgid "" |
| 370 |
"$ B<./ns_show /proc/self/ns/user p>\n" |
| 371 |
"The parent namespace is outside your namespace scope\n" |
| 372 |
msgstr "" |
| 373 |
"$ B<./ns_show /proc/self/ns/user p>\n" |
| 374 |
"Spațiul de nume părinte este în afara domeniului de aplicare al spațiului de nume\n" |
| 375 |
|
| 376 |
#. type: Plain text |
| 377 |
#: mageia-cauldron |
| 378 |
msgid "" |
| 379 |
"Create a process running B<sleep>(1) that resides in new user and UTS " |
| 380 |
"namespaces, and show that the new UTS namespace is associated with the new " |
| 381 |
"user namespace:" |
| 382 |
msgstr "" |
| 383 |
"Creați un proces care rulează B<sleep>(1) care rezidă în noile spații de " |
| 384 |
"nume utilizator și UTS și arătați că noul spațiu de nume UTS este asociat cu " |
| 385 |
"noul spațiu de nume utilizator:" |
| 386 |
|
| 387 |
#. type: Plain text |
| 388 |
#: mageia-cauldron |
| 389 |
#, no-wrap |
| 390 |
msgid "" |
| 391 |
"$ B<unshare -Uu sleep 1000 &>\n" |
| 392 |
"[1] 23235\n" |
| 393 |
"$ B<./ns_show /proc/23235/ns/uts u>\n" |
| 394 |
"Device/Inode of owning user namespace is: [0,3] / 4026532448\n" |
| 395 |
"$ B<readlink /proc/23235/ns/user>\n" |
| 396 |
"user:[4026532448]\n" |
| 397 |
msgstr "" |
| 398 |
"$ B<unshare -Uu sleep 1000 &>\n" |
| 399 |
"[1] 23235\n" |
| 400 |
"$ B<./ns_show /proc/23235/ns/uts u>\n" |
| 401 |
"Dispozitivul/nodul-i al spațiului de nume al utilizatorului proprietar este: [0,3] / 4026532448\n" |
| 402 |
"$ B<readlink /proc/23235/ns/user>\n" |
| 403 |
"utilizator:[4026532448]\n" |
| 404 |
|
| 405 |
#. type: Plain text |
| 406 |
#: mageia-cauldron |
| 407 |
msgid "" |
| 408 |
"Then show that the parent of the new user namespace in the preceding example " |
| 409 |
"is the initial user namespace:" |
| 410 |
msgstr "" |
| 411 |
"Apoi arătați că părintele noului spațiu de nume al utilizatorului din " |
| 412 |
"exemplul precedent este spațiul de nume al utilizatorului inițial:" |
| 413 |
|
| 414 |
#. type: Plain text |
| 415 |
#: mageia-cauldron |
| 416 |
#, no-wrap |
| 417 |
msgid "" |
| 418 |
"$ B<readlink /proc/self/ns/user>\n" |
| 419 |
"user:[4026531837]\n" |
| 420 |
"$ B<./ns_show /proc/23235/ns/user p>\n" |
| 421 |
"Device/Inode of parent namespace is: [0,3] / 4026531837\n" |
| 422 |
msgstr "" |
| 423 |
"$ B<readlink /proc/self/ns/user>\n" |
| 424 |
"utilizator:[4026531837]\n" |
| 425 |
"$ B<./ns_show /proc/23235/ns/user p>\n" |
| 426 |
"Dispozitivul/nodul-i din spațiul de nume părinte este: [0,3] / 4026531837\n" |
| 427 |
|
| 428 |
#. type: Plain text |
| 429 |
#: mageia-cauldron |
| 430 |
msgid "" |
| 431 |
"Start a shell in a new user namespace, and show that from within this shell, " |
| 432 |
"the parent user namespace can't be discovered. Similarly, the UTS namespace " |
| 433 |
"(which is associated with the initial user namespace) can't be discovered." |
| 434 |
msgstr "" |
| 435 |
"Porniți un shell într-un nou spațiu de nume al utilizatorului și arătați că, " |
| 436 |
"din interiorul acestui shell, spațiul de nume al utilizatorului părinte nu " |
| 437 |
"poate fi descoperit. În mod similar, spațiul de nume UTS (care este asociat " |
| 438 |
"cu spațiul de nume al utilizatorului inițial) nu poate fi descoperit." |
| 439 |
|
| 440 |
#. type: Plain text |
| 441 |
#: mageia-cauldron |
| 442 |
#, no-wrap |
| 443 |
msgid "" |
| 444 |
"$ B<PS1=\"sh2$ \" unshare -U bash>\n" |
| 445 |
"sh2$ B<./ns_show /proc/self/ns/user p>\n" |
| 446 |
"The parent namespace is outside your namespace scope\n" |
| 447 |
"sh2$ B<./ns_show /proc/self/ns/uts u>\n" |
| 448 |
"The owning user namespace is outside your namespace scope\n" |
| 449 |
msgstr "" |
| 450 |
"$ B<PS1=\"sh2$ \" unshare -U bash>\n" |
| 451 |
"sh2$ B<./ns_show /proc/self/ns/user p>\n" |
| 452 |
"Spațiul de nume părinte este în afara domeniului de aplicare al spațiului de nume\n" |
| 453 |
"sh2$ B<./ns_show /proc/self/ns/uts u>\n" |
| 454 |
"Spațiul de nume al utilizatorului proprietar este în afara domeniului dvs. de aplicare a spațiului de nume\n" |
| 455 |
|
| 456 |
#. type: SS |
| 457 |
#: mageia-cauldron |
| 458 |
#, no-wrap |
| 459 |
msgid "Program source" |
| 460 |
msgstr "Sursa programului" |
| 461 |
|
| 462 |
#. type: Plain text |
| 463 |
#: mageia-cauldron |
| 464 |
#, no-wrap |
| 465 |
msgid "" |
| 466 |
"/* ns_show.c\n" |
| 467 |
"\\&\n" |
| 468 |
" Licensed under the GNU General Public License v2 or later.\n" |
| 469 |
"*/\n" |
| 470 |
"#include E<lt>errno.hE<gt>\n" |
| 471 |
"#include E<lt>fcntl.hE<gt>\n" |
| 472 |
"#include E<lt>linux/nsfs.hE<gt>\n" |
| 473 |
"#include E<lt>stdint.hE<gt>\n" |
| 474 |
"#include E<lt>stdio.hE<gt>\n" |
| 475 |
"#include E<lt>stdlib.hE<gt>\n" |
| 476 |
"#include E<lt>string.hE<gt>\n" |
| 477 |
"#include E<lt>sys/ioctl.hE<gt>\n" |
| 478 |
"#include E<lt>sys/stat.hE<gt>\n" |
| 479 |
"#include E<lt>sys/sysmacros.hE<gt>\n" |
| 480 |
"#include E<lt>unistd.hE<gt>\n" |
| 481 |
"\\&\n" |
| 482 |
"int\n" |
| 483 |
"main(int argc, char *argv[])\n" |
| 484 |
"{\n" |
| 485 |
" int fd, userns_fd, parent_fd;\n" |
| 486 |
" struct stat sb;\n" |
| 487 |
"\\&\n" |
| 488 |
" if (argc E<lt> 2) {\n" |
| 489 |
" fprintf(stderr, \"Usage: %s /proc/[pid]/ns/[file] [p|u]\\en\",\n" |
| 490 |
" argv[0]);\n" |
| 491 |
" fprintf(stderr, \"\\enDisplay the result of one or both \"\n" |
| 492 |
" \"of NS_GET_USERNS (u) or NS_GET_PARENT (p)\\en\"\n" |
| 493 |
" \"for the specified /proc/[pid]/ns/[file]. If neither \"\n" |
| 494 |
" \"\\[aq]p\\[aq] nor \\[aq]u\\[aq] is specified,\\en\"\n" |
| 495 |
" \"NS_GET_USERNS is the default.\\en\");\n" |
| 496 |
" exit(EXIT_FAILURE);\n" |
| 497 |
" }\n" |
| 498 |
"\\&\n" |
| 499 |
" /* Obtain a file descriptor for the \\[aq]ns\\[aq] file specified\n" |
| 500 |
" in argv[1]. */\n" |
| 501 |
"\\&\n" |
| 502 |
" fd = open(argv[1], O_RDONLY);\n" |
| 503 |
" if (fd == -1) {\n" |
| 504 |
" perror(\"open\");\n" |
| 505 |
" exit(EXIT_FAILURE);\n" |
| 506 |
" }\n" |
| 507 |
"\\&\n" |
| 508 |
" /* Obtain a file descriptor for the owning user namespace and\n" |
| 509 |
" then obtain and display the inode number of that namespace. */\n" |
| 510 |
"\\&\n" |
| 511 |
" if (argc E<lt> 3 || strchr(argv[2], \\[aq]u\\[aq])) {\n" |
| 512 |
" userns_fd = ioctl(fd, NS_GET_USERNS);\n" |
| 513 |
"\\&\n" |
| 514 |
" if (userns_fd == -1) {\n" |
| 515 |
" if (errno == EPERM)\n" |
| 516 |
" printf(\"The owning user namespace is outside \"\n" |
| 517 |
" \"your namespace scope\\en\");\n" |
| 518 |
" else\n" |
| 519 |
" perror(\"ioctl-NS_GET_USERNS\");\n" |
| 520 |
" exit(EXIT_FAILURE);\n" |
| 521 |
" }\n" |
| 522 |
"\\&\n" |
| 523 |
" if (fstat(userns_fd, &sb) == -1) {\n" |
| 524 |
" perror(\"fstat-userns\");\n" |
| 525 |
" exit(EXIT_FAILURE);\n" |
| 526 |
" }\n" |
| 527 |
" printf(\"Device/Inode of owning user namespace is: \"\n" |
| 528 |
" \"[%x,%x] / %ju\\en\",\n" |
| 529 |
" major(sb.st_dev),\n" |
| 530 |
" minor(sb.st_dev),\n" |
| 531 |
" (uintmax_t) sb.st_ino);\n" |
| 532 |
"\\&\n" |
| 533 |
" close(userns_fd);\n" |
| 534 |
" }\n" |
| 535 |
"\\&\n" |
| 536 |
" /* Obtain a file descriptor for the parent namespace and\n" |
| 537 |
" then obtain and display the inode number of that namespace. */\n" |
| 538 |
"\\&\n" |
| 539 |
" if (argc E<gt> 2 && strchr(argv[2], \\[aq]p\\[aq])) {\n" |
| 540 |
" parent_fd = ioctl(fd, NS_GET_PARENT);\n" |
| 541 |
"\\&\n" |
| 542 |
" if (parent_fd == -1) {\n" |
| 543 |
" if (errno == EINVAL)\n" |
| 544 |
" printf(\"Can\\[aq] get parent namespace of a \"\n" |
| 545 |
" \"nonhierarchical namespace\\en\");\n" |
| 546 |
" else if (errno == EPERM)\n" |
| 547 |
" printf(\"The parent namespace is outside \"\n" |
| 548 |
" \"your namespace scope\\en\");\n" |
| 549 |
" else\n" |
| 550 |
" perror(\"ioctl-NS_GET_PARENT\");\n" |
| 551 |
" exit(EXIT_FAILURE);\n" |
| 552 |
" }\n" |
| 553 |
"\\&\n" |
| 554 |
" if (fstat(parent_fd, &sb) == -1) {\n" |
| 555 |
" perror(\"fstat-parentns\");\n" |
| 556 |
" exit(EXIT_FAILURE);\n" |
| 557 |
" }\n" |
| 558 |
" printf(\"Device/Inode of parent namespace is: [%x,%x] / %ju\\en\",\n" |
| 559 |
" major(sb.st_dev),\n" |
| 560 |
" minor(sb.st_dev),\n" |
| 561 |
" (uintmax_t) sb.st_ino);\n" |
| 562 |
"\\&\n" |
| 563 |
" close(parent_fd);\n" |
| 564 |
" }\n" |
| 565 |
"\\&\n" |
| 566 |
" exit(EXIT_SUCCESS);\n" |
| 567 |
"}\n" |
| 568 |
msgstr "" |
| 569 |
"/* ns_show.c\n" |
| 570 |
"\\&\n" |
| 571 |
" Licențiat în conformitate cu Licența Publică Generală GNU v2 sau ulterioară.\n" |
| 572 |
"*/\n" |
| 573 |
"#include E<lt>errno.hE<gt>\n" |
| 574 |
"#include E<lt>fcntl.hE<gt>\n" |
| 575 |
"#include E<lt>linux/nsfs.hE<gt>\n" |
| 576 |
"#include E<lt>stdint.hE<gt>\n" |
| 577 |
"#include E<lt>stdio.hE<gt>\n" |
| 578 |
"#include E<lt>stdlib.hE<gt>\n" |
| 579 |
"#include E<lt>string.hE<gt>\n" |
| 580 |
"#include E<lt>sys/ioctl.hE<gt>\n" |
| 581 |
"#include E<lt>sys/stat.hE<gt>\n" |
| 582 |
"#include E<lt>sys/sysmacros.hE<gt>\n" |
| 583 |
"#include E<lt>unistd.hE<gt>\n" |
| 584 |
"\\&\n" |
| 585 |
"int\n" |
| 586 |
"main(int argc, char *argv[])\n" |
| 587 |
"{\n" |
| 588 |
" int fd, userns_fd, parent_fd;\n" |
| 589 |
" struct stat sb;\n" |
| 590 |
"\\&\n" |
| 591 |
" if (argc E<lt> 2) {\n" |
| 592 |
" fprintf(stderr, \"Utilizare: %s /proc/[pid]/ns/[file] [p|u]\\en\",\n" |
| 593 |
" argv[0]);\n" |
| 594 |
" fprintf(stderr, \"\\enAfișează rezultatul uneia sau ambelor metode \"\n" |
| 595 |
" \"NS_GET_USERNS (u) sau NS_GET_PARENT (p) pentru\\en\"\n" |
| 596 |
" \"fișierul /proc/[pid]/ns/[file] specificat. Dacă nu \"\n" |
| 597 |
" este specificat nici \\[aq]p\\[aq], nici \\[aq]u\\[aq],\\en\"\n" |
| 598 |
" NS_GET_USERNS este valoarea implicită.\\en\");\n" |
| 599 |
" exit(EXIT_FAILURE);\n" |
| 600 |
" }\n" |
| 601 |
"\\&\n" |
| 602 |
" /* Obține un descriptor de fișier pentru spațiul de nume părinte și apoi\n" |
| 603 |
" obține și afișează numărul de nod-i al spațiului de nume respectiv. */\n" |
| 604 |
"\\&\n" |
| 605 |
" fd = open(argv[1], O_RDONLY);\n" |
| 606 |
" if (fd == -1) {\n" |
| 607 |
" perror(\"open\");\n" |
| 608 |
" exit(EXIT_FAILURE);\n" |
| 609 |
" }\n" |
| 610 |
"\\&\n" |
| 611 |
" /* Obține un descriptor de fișier pentru spațiul de nume al\n" |
| 612 |
" utilizatorului proprietar și apoi obține și afișează numărul\n" |
| 613 |
" de nod-i al spațiului de nume respectiv. */\n" |
| 614 |
"\\&\n" |
| 615 |
" if (argc E<lt> 3 || strchr(argv[2], \\[aq]u\\[aq])) {\n" |
| 616 |
" userns_fd = ioctl(fd, NS_GET_USERNS);\n" |
| 617 |
"\\&\n" |
| 618 |
" if (userns_fd == -1) {\n" |
| 619 |
" if (errno == EPERM)\n" |
| 620 |
" printf(\"Spațiul de nume al utilizatorului proprietar este în \"\n" |
| 621 |
" \"afara domeniului dvs. de aplicare a spațiului de nume\\en\");\n" |
| 622 |
" else\n" |
| 623 |
" perror(\"ioctl-NS_GET_USERNS\");\n" |
| 624 |
" exit(EXIT_FAILURE);\n" |
| 625 |
" }\n" |
| 626 |
"\\&\n" |
| 627 |
" if (fstat(userns_fd, &sb) == -1) {\n" |
| 628 |
" perror(\"fstat-userns\");\n" |
| 629 |
" exit(EXIT_FAILURE);\n" |
| 630 |
" }\n" |
| 631 |
" printf(\"Dispozitivul/nodul-i al spațiului de nume al utilizatorului proprietar este:\"\n" |
| 632 |
" \"[%x,%x] / %ju\\en\",\n" |
| 633 |
" major(sb.st_dev),\n" |
| 634 |
" minor(sb.st_dev),\n" |
| 635 |
" (uintmax_t) sb.st_ino);\n" |
| 636 |
"\\&\n" |
| 637 |
" close(userns_fd);\n" |
| 638 |
" }\n" |
| 639 |
"\\&\n" |
| 640 |
" /* /* Obține un descriptor de fișier pentru spațiul de nume părinte și apoi\n" |
| 641 |
" obține și afișează numărul de nod-i al spațiului de nume respectiv. */\n" |
| 642 |
"\\&\n" |
| 643 |
" if (argc E<gt> 2 && strchr(argv[2], \\[aq]p\\[aq])) {\n" |
| 644 |
" parent_fd = ioctl(fd, NS_GET_PARENT);\n" |
| 645 |
"\\&\n" |
| 646 |
" if (parent_fd == -1) {\n" |
| 647 |
" if (errno == EINVAL)\n" |
| 648 |
" printf(\"Nu se poate obține spațiul de nume părinte al unui\n" |
| 649 |
" \"spațiu de nume neierarhizat\\en\");\n" |
| 650 |
" else if (errno == EPERM)\n" |
| 651 |
" printf(\"Spațiul de nume părinte este în afara domeniului\n" |
| 652 |
" \"de aplicare al spațiului de nume\\en\");\n" |
| 653 |
" else\n" |
| 654 |
" perror(\"ioctl-NS_GET_PARENT\");\n" |
| 655 |
" exit(EXIT_FAILURE);\n" |
| 656 |
" }\n" |
| 657 |
"\\&\n" |
| 658 |
" if (fstat(parent_fd, &sb) == -1) {\n" |
| 659 |
" perror(\"fstat-parentns\");\n" |
| 660 |
" exit(EXIT_FAILURE);\n" |
| 661 |
" }\n" |
| 662 |
" printf(\"Dispozitivul/nodul-i al spațiului de nume părinte este: [%x,%x] / %ju\\en\",\n" |
| 663 |
" major(sb.st_dev),\n" |
| 664 |
" minor(sb.st_dev),\n" |
| 665 |
" (uintmax_t) sb.st_ino);\n" |
| 666 |
"\\&\n" |
| 667 |
" close(parent_fd);\n" |
| 668 |
" }\n" |
| 669 |
"\\&\n" |
| 670 |
" exit(EXIT_SUCCESS);\n" |
| 671 |
"}\n" |
| 672 |
|
| 673 |
#. SRC END |
| 674 |
#. type: SH |
| 675 |
#: mageia-cauldron |
| 676 |
#, no-wrap |
| 677 |
msgid "SEE ALSO" |
| 678 |
msgstr "CONSULTAȚI ȘI" |
| 679 |
|
| 680 |
#. type: Plain text |
| 681 |
#: mageia-cauldron |
| 682 |
msgid "B<fstat>(2), B<ioctl>(2), B<proc>(5), B<namespaces>(7)" |
| 683 |
msgstr "B<fstat>(2), B<ioctl>(2), B<proc>(5), B<namespaces>(7)" |