Signed-off-by: Yuan Sun <sunyu...@huawei.com>
---
 testcases/kernel/containers/userns/userns03.c | 4 ++--
 testcases/kernel/containers/userns/userns06.c | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/testcases/kernel/containers/userns/userns03.c 
b/testcases/kernel/containers/userns/userns03.c
index 6e3cedd..26a710d 100644
--- a/testcases/kernel/containers/userns/userns03.c
+++ b/testcases/kernel/containers/userns/userns03.c
@@ -205,8 +205,8 @@ int main(int argc, char *argv[])
                updatemap(cpid1, UID_MAP, CHILD1UID, parentuid, cleanup);
                updatemap(cpid2, UID_MAP, CHILD2UID, parentuid, cleanup);
 
-               updatemap(cpid1, GID_MAP, CHILD1GID, parentuid, cleanup);
-               updatemap(cpid2, GID_MAP, CHILD2GID, parentuid, cleanup);
+               updatemap(cpid1, GID_MAP, CHILD1GID, parentgid, cleanup);
+               updatemap(cpid2, GID_MAP, CHILD2GID, parentgid, cleanup);
 
                TST_SAFE_CHECKPOINT_WAKE_AND_WAIT(cleanup, 1);
 
diff --git a/testcases/kernel/containers/userns/userns06.c 
b/testcases/kernel/containers/userns/userns06.c
index 4e2daf3..23f6da4 100644
--- a/testcases/kernel/containers/userns/userns06.c
+++ b/testcases/kernel/containers/userns/userns06.c
@@ -149,8 +149,8 @@ int main(int argc, char *argv[])
                updatemap(cpid1, UID_MAP, CHILD1UID, parentuid, cleanup);
                updatemap(cpid2, UID_MAP, CHILD2UID, parentuid, cleanup);
 
-               updatemap(cpid1, GID_MAP, CHILD1GID, parentuid, cleanup);
-               updatemap(cpid2, GID_MAP, CHILD2GID, parentuid, cleanup);
+               updatemap(cpid1, GID_MAP, CHILD1GID, parentgid, cleanup);
+               updatemap(cpid2, GID_MAP, CHILD2GID, parentgid, cleanup);
 
                TST_SAFE_CHECKPOINT_WAKE(cleanup, 0);
                TST_SAFE_CHECKPOINT_WAKE(cleanup, 1);
-- 
1.9.1


------------------------------------------------------------------------------
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to