Skip to content

Commit

Permalink
fix id mappings validation
Browse files Browse the repository at this point in the history
uid and gid mappings must be set together

Signed-off-by: Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>
  • Loading branch information
Ma Shimiao committed Dec 2, 2017
1 parent e7ee761 commit 671ce23
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
func main() {
g := util.GetDefaultGenerator()
g.AddOrReplaceLinuxNamespace("user", "")
g.AddLinuxUIDMapping(uint32(1000), uint32(0), uint32(3200))
g.AddLinuxGIDMapping(uint32(1000), uint32(0), uint32(3200))
err := util.RuntimeInsideValidate(g, nil)
if err != nil {
Expand Down
15 changes: 0 additions & 15 deletions validation/linux_uid_mappings.go

This file was deleted.

0 comments on commit 671ce23

Please sign in to comment.