Skip to content

Commit 671ce23

Browse files
author
Ma Shimiao
committed
fix id mappings validation
uid and gid mappings must be set together Signed-off-by: Ma Shimiao <[email protected]>
1 parent e7ee761 commit 671ce23

File tree

2 files changed

+1
-15
lines changed

2 files changed

+1
-15
lines changed

validation/linux_gid_mappings.go renamed to validation/linux_id_mappings.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import (
77
func main() {
88
g := util.GetDefaultGenerator()
99
g.AddOrReplaceLinuxNamespace("user", "")
10+
g.AddLinuxUIDMapping(uint32(1000), uint32(0), uint32(3200))
1011
g.AddLinuxGIDMapping(uint32(1000), uint32(0), uint32(3200))
1112
err := util.RuntimeInsideValidate(g, nil)
1213
if err != nil {

validation/linux_uid_mappings.go

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)