jail: fix copy & paste error in parseOCIlinux()
authorDaniel Golle <daniel@makrotopia.org>
Mon, 1 Jul 2024 17:16:47 +0000 (18:16 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Sun, 7 Jul 2024 16:50:15 +0000 (17:50 +0100)
blobmsg entry OCI_LINUX_GIDMAPPINGS is wrongly applied as
uidmappings because of a copy & paste error. Fix that.

Coverity CID 1605920: Incorrect expression  (COPY_PASTE_ERROR)
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
jail/jail.c

index 09780ac7e2b732cd6456c835f93c29816ad3dc89..a5951495786a1f4f17ac4661a130d360430dc778 100644 (file)
@@ -2215,7 +2215,7 @@ static int parseOCIlinux(struct blob_attr *msg)
        }
 
        if (tb[OCI_LINUX_UIDMAPPINGS]) {
-               res = parseOCIuidgidmappings(tb[OCI_LINUX_GIDMAPPINGS], 0);
+               res = parseOCIuidgidmappings(tb[OCI_LINUX_UIDMAPPINGS], 0);
                if (res)
                        return res;
        }