jail: don't fail if maskedPath cannot be found
authorDaniel Golle <daniel@makrotopia.org>
Wed, 28 Oct 2020 13:01:52 +0000 (13:01 +0000)
committerDaniel Golle <daniel@makrotopia.org>
Wed, 28 Oct 2020 13:47:27 +0000 (13:47 +0000)
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
jail/jail.c

index 012d95474f24e49fd0fc66fe19678a9655d6a121..4b368ea74253df1ba940a7b60da767efc12ef155 100644 (file)
@@ -2100,7 +2100,7 @@ static int parseOCIlinux(struct blob_attr *msg)
 
        if (tb[OCI_LINUX_MASKEDPATHS]) {
                blobmsg_for_each_attr(cur, tb[OCI_LINUX_MASKEDPATHS], rem) {
-                       res = add_mount((void *)(-1), blobmsg_get_string(cur), NULL, 0, 0, NULL, 1);
+                       res = add_mount((void *)(-1), blobmsg_get_string(cur), NULL, 0, 0, NULL, 0);
                        if (res)
                                return res;
                }