Commit fe5c613
committed
zdtm: support ext-uid-map flag for full UID/GID range in user namespaces
Tests that use supplementary group IDs beyond the default mapping range
(e.g. GIDs in the billion scale) fail with EINVAL in user namespace mode
because the GIDs are not mapped. Add support for the 'ext-uid-map' test
flag: when set, ZDTM_UID_MAP and ZDTM_GID_MAP are populated with a
full 32-bit identity mapping (0 0 4294967295), allowing the child user
namespace to access the full UID/GID space.
Signed-off-by: DongSunchao <dongsunchao@gmail.com>1 parent bfb8599 commit fe5c613
3 files changed
Lines changed: 18 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
511 | 511 | | |
512 | 512 | | |
513 | 513 | | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
514 | 518 | | |
515 | 519 | | |
516 | 520 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
492 | 492 | | |
493 | 493 | | |
494 | 494 | | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
495 | 498 | | |
496 | 499 | | |
497 | 500 | | |
498 | 501 | | |
499 | 502 | | |
500 | 503 | | |
501 | | - | |
502 | | - | |
503 | | - | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
504 | 509 | | |
505 | 510 | | |
506 | 511 | | |
| |||
510 | 515 | | |
511 | 516 | | |
512 | 517 | | |
513 | | - | |
514 | | - | |
515 | | - | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
516 | 523 | | |
517 | 524 | | |
518 | 525 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
0 commit comments