-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use extract_tar to extract Docker images and layers (#453)
* Use extract_tar to extract images and layers #407 * extract_tar uses the built in tar command, which does not do filename sanitization Signed-off-by: Jono Yang <[email protected]> * Update expected test results #407 Signed-off-by: Jono Yang <[email protected]> * Recreate docker-images.tar.gz with valid tars #407 * Update expected test results Signed-off-by: Jono Yang <[email protected]>
- Loading branch information
Showing
7 changed files
with
93 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -123,7 +123,41 @@ | |
"manifest_path": "", | ||
"contains_source_code": null, | ||
"extra_data": { | ||
"multi_arch": "same" | ||
"multi_arch": "same", | ||
"missing_file_references": [ | ||
{ | ||
"md5": "23c8a935fa4fc7290d55cc5df3ef56b1", | ||
"path": "lib/x86_64-linux-gnu/libncurses.so.5.9", | ||
"sha1": null, | ||
"sha256": null, | ||
"sha512": null, | ||
"extra_data": {} | ||
}, | ||
{ | ||
"md5": "98b70f283324e89db5787a018a54adf4", | ||
"path": "usr/lib/x86_64-linux-gnu/libform.so.5.9", | ||
"sha1": null, | ||
"sha256": null, | ||
"sha512": null, | ||
"extra_data": {} | ||
}, | ||
{ | ||
"md5": "e3a0f5154928da2da234920343ac14b2", | ||
"path": "usr/lib/x86_64-linux-gnu/libmenu.so.5.9", | ||
"sha1": null, | ||
"sha256": null, | ||
"sha512": null, | ||
"extra_data": {} | ||
}, | ||
{ | ||
"md5": "a927e7d76753bb85f5a784b653d337d2", | ||
"path": "usr/lib/x86_64-linux-gnu/libpanel.so.5.9", | ||
"sha1": null, | ||
"sha256": null, | ||
"sha512": null, | ||
"extra_data": {} | ||
} | ||
] | ||
}, | ||
"missing_resources": [], | ||
"modified_resources": [], | ||
|
@@ -161,7 +195,25 @@ | |
"manifest_path": "", | ||
"contains_source_code": null, | ||
"extra_data": { | ||
"multi_arch": "same" | ||
"multi_arch": "same", | ||
"missing_file_references": [ | ||
{ | ||
"md5": "5d26434efecc08048ab72357af804ef7", | ||
"path": "usr/lib/x86_64-linux-gnu/libndp.so.0.0.2", | ||
"sha1": null, | ||
"sha256": null, | ||
"sha512": null, | ||
"extra_data": {} | ||
}, | ||
{ | ||
"md5": "60d977e0c9a9fb07c1f8ae3090ea6f48", | ||
"path": "usr/share/doc/libndp0/changelog.Debian.gz", | ||
"sha1": null, | ||
"sha256": null, | ||
"sha512": null, | ||
"extra_data": {} | ||
} | ||
] | ||
}, | ||
"missing_resources": [], | ||
"modified_resources": [], | ||
|
@@ -195,7 +247,6 @@ | |
"extension": "", | ||
"programming_language": "", | ||
"mime_type": "text/plain", | ||
"file_type": "ASCII text", | ||
"is_binary": false, | ||
"is_text": true, | ||
"is_archive": false, | ||
|
@@ -223,7 +274,6 @@ | |
"extension": "", | ||
"programming_language": "", | ||
"mime_type": "text/plain", | ||
"file_type": "UTF-8 Unicode text", | ||
"is_binary": false, | ||
"is_text": true, | ||
"is_archive": false, | ||
|
@@ -251,16 +301,17 @@ | |
"extension": "", | ||
"programming_language": "Haxe", | ||
"mime_type": "text/plain", | ||
"file_type": "ASCII text", | ||
"is_binary": false, | ||
"is_text": true, | ||
"is_archive": false, | ||
"is_key_file": false, | ||
"is_media": false | ||
}, | ||
{ | ||
"for_packages": [], | ||
"path": "debian.tar.gz-extract/8a63761caf6d45e65b8e6cdc2e0c03c55625fd142ec3356b80a9ea4a34b11b66/var/lib/dpkg/info/libncurses5_amd64.md5sums", | ||
"for_packages": [ | ||
"pkg:deb/[email protected]?architecture=amd64&uuid=fixed-uid-done-for-testing-5642512d1758" | ||
], | ||
"path": "debian.tar.gz-extract/8a63761caf6d45e65b8e6cdc2e0c03c55625fd142ec3356b80a9ea4a34b11b66/var/lib/dpkg/info/libncurses5:amd64.md5sums", | ||
"sha1": "e5ff875218d4f909576575b0471feb0e5230a861", | ||
"md5": "9d18792b91935a5849328cb368005ec9", | ||
"extra_data": {}, | ||
|
@@ -271,22 +322,23 @@ | |
"license_expressions": [], | ||
"emails": [], | ||
"urls": [], | ||
"status": "no-licenses", | ||
"status": "system-package", | ||
"type": "file", | ||
"name": "libncurses5_amd64", | ||
"name": "libncurses5:amd64", | ||
"extension": ".md5sums", | ||
"programming_language": "", | ||
"mime_type": "text/plain", | ||
"file_type": "ASCII text", | ||
"is_binary": false, | ||
"is_text": true, | ||
"is_archive": false, | ||
"is_key_file": false, | ||
"is_media": false | ||
}, | ||
{ | ||
"for_packages": [], | ||
"path": "debian.tar.gz-extract/8a63761caf6d45e65b8e6cdc2e0c03c55625fd142ec3356b80a9ea4a34b11b66/var/lib/dpkg/info/libndp0_amd64.md5sums", | ||
"for_packages": [ | ||
"pkg:deb/[email protected]?architecture=amd64&uuid=fixed-uid-done-for-testing-5642512d1758" | ||
], | ||
"path": "debian.tar.gz-extract/8a63761caf6d45e65b8e6cdc2e0c03c55625fd142ec3356b80a9ea4a34b11b66/var/lib/dpkg/info/libndp0:amd64.md5sums", | ||
"sha1": "c212d44c6649df5ff13ec447f4fa30faf81fc490", | ||
"md5": "7cb818062922c437df1902c18862455a", | ||
"extra_data": {}, | ||
|
@@ -297,13 +349,12 @@ | |
"license_expressions": [], | ||
"emails": [], | ||
"urls": [], | ||
"status": "no-licenses", | ||
"status": "system-package", | ||
"type": "file", | ||
"name": "libndp0_amd64", | ||
"name": "libndp0:amd64", | ||
"extension": ".md5sums", | ||
"programming_language": "", | ||
"mime_type": "text/plain", | ||
"file_type": "ASCII text", | ||
"is_binary": false, | ||
"is_text": true, | ||
"is_archive": false, | ||
|
@@ -356,7 +407,6 @@ | |
"extension": "", | ||
"programming_language": "Haxe", | ||
"mime_type": "text/plain", | ||
"file_type": "ASCII text", | ||
"is_binary": false, | ||
"is_text": true, | ||
"is_archive": false, | ||
|
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,7 +41,7 @@ | |
"variant": null, | ||
"labels": [], | ||
"layer_id": "7cbcbac42c44c6c38559e5df3a494f44987333c8023a40fec48df2fce1fc146b", | ||
"size": 30, | ||
"size": 10240, | ||
"is_empty_layer": false, | ||
"author": null, | ||
"created": "2016-12-27T18:17:13.762716133Z", | ||
|
@@ -59,7 +59,7 @@ | |
"variant": null, | ||
"labels": [], | ||
"layer_id": "d242f1731c55e0f057e183146de867e820dd2ef575125ec36b008340a3acc65e", | ||
"size": 30, | ||
"size": 10240, | ||
"is_empty_layer": false, | ||
"author": "Ross Fairbanks \"[email protected]\"", | ||
"created": "2017-01-03T13:15:58.410035553Z", | ||
|
@@ -77,7 +77,7 @@ | |
"variant": null, | ||
"labels": [], | ||
"layer_id": "d43ffef6b2712ef8ecdd86866e543b21ef8843742bf7c73a308a973534fa6c3f", | ||
"size": 30, | ||
"size": 10240, | ||
"is_empty_layer": false, | ||
"author": "Ross Fairbanks \"[email protected]\"", | ||
"created": "2017-01-17T11:17:46.675078318Z", | ||
|
@@ -95,7 +95,7 @@ | |
"variant": null, | ||
"labels": [], | ||
"layer_id": "76ad2c2330f19d6f16fdf86e7b10cc2c1a8160746ffa1c4e3e46c75661f4bdcd", | ||
"size": 30, | ||
"size": 10240, | ||
"is_empty_layer": false, | ||
"author": "Ross Fairbanks \"[email protected]\"", | ||
"created": "2017-01-17T11:17:48.829523581Z", | ||
|
@@ -216,7 +216,7 @@ | |
"variant": null, | ||
"labels": [], | ||
"layer_id": "3e207b409db364b595ba862cdc12be96dcdad8e36c59a03b7b3b61c946a5741a", | ||
"size": 30, | ||
"size": 10240, | ||
"is_empty_layer": false, | ||
"author": null, | ||
"created": "2020-04-24T01:05:03.608058404Z", | ||
|
@@ -234,7 +234,7 @@ | |
"variant": null, | ||
"labels": [], | ||
"layer_id": "09c52b6fbc483eb8e2d244a916da54fb3990cdaa575cab35edfbb27e132929cb", | ||
"size": 30, | ||
"size": 10240, | ||
"is_empty_layer": false, | ||
"author": null, | ||
"created": "2020-10-08T16:23:14.227103847Z", | ||
|
@@ -252,7 +252,7 @@ | |
"variant": null, | ||
"labels": [], | ||
"layer_id": "55141db9edb2a13ee593cff8c80e883e672e388c8686fd94a4f2518f21de1d32", | ||
"size": 30, | ||
"size": 10240, | ||
"is_empty_layer": false, | ||
"author": null, | ||
"created": "2020-10-08T16:23:16.985023204Z", | ||
|
@@ -270,7 +270,7 @@ | |
"variant": null, | ||
"labels": [], | ||
"layer_id": "01f37c950ed43fd0ecc47d0a72949201594f650bd63861cc6e6ac8097ca600bf", | ||
"size": 30, | ||
"size": 10240, | ||
"is_empty_layer": false, | ||
"author": null, | ||
"created": "2020-10-08T16:23:17.192305843Z", | ||
|
@@ -288,7 +288,7 @@ | |
"variant": null, | ||
"labels": [], | ||
"layer_id": "08dc907515cbda226cd872c2c79d087eb226fd27182b6b1315306aade51f963d", | ||
"size": 30, | ||
"size": 10240, | ||
"is_empty_layer": false, | ||
"author": null, | ||
"created": "2020-10-11T21:20:59.851868447Z", | ||
|
@@ -306,7 +306,7 @@ | |
"variant": null, | ||
"labels": [], | ||
"layer_id": "5b4096031e4780d4c3010335ede79886786ec89d22c2bd85642a30beac682ec9", | ||
"size": 30, | ||
"size": 10240, | ||
"is_empty_layer": false, | ||
"author": null, | ||
"created": "2020-10-11T21:21:00.668316194Z", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,7 +41,7 @@ | |
"variant": null, | ||
"labels": [], | ||
"layer_id": "7cbcbac42c44c6c38559e5df3a494f44987333c8023a40fec48df2fce1fc146b", | ||
"size": 30, | ||
"size": 10240, | ||
"is_empty_layer": false, | ||
"author": null, | ||
"created": "2016-12-27T18:17:13.762716133Z", | ||
|
@@ -59,7 +59,7 @@ | |
"variant": null, | ||
"labels": [], | ||
"layer_id": "d242f1731c55e0f057e183146de867e820dd2ef575125ec36b008340a3acc65e", | ||
"size": 30, | ||
"size": 10240, | ||
"is_empty_layer": false, | ||
"author": "Ross Fairbanks \"[email protected]\"", | ||
"created": "2017-01-03T13:15:58.410035553Z", | ||
|
@@ -77,7 +77,7 @@ | |
"variant": null, | ||
"labels": [], | ||
"layer_id": "d43ffef6b2712ef8ecdd86866e543b21ef8843742bf7c73a308a973534fa6c3f", | ||
"size": 30, | ||
"size": 10240, | ||
"is_empty_layer": false, | ||
"author": "Ross Fairbanks \"[email protected]\"", | ||
"created": "2017-01-17T11:17:46.675078318Z", | ||
|
@@ -95,7 +95,7 @@ | |
"variant": null, | ||
"labels": [], | ||
"layer_id": "76ad2c2330f19d6f16fdf86e7b10cc2c1a8160746ffa1c4e3e46c75661f4bdcd", | ||
"size": 30, | ||
"size": 10240, | ||
"is_empty_layer": false, | ||
"author": "Ross Fairbanks \"[email protected]\"", | ||
"created": "2017-01-17T11:17:48.829523581Z", | ||
|
@@ -216,7 +216,7 @@ | |
"variant": null, | ||
"labels": [], | ||
"layer_id": "3e207b409db364b595ba862cdc12be96dcdad8e36c59a03b7b3b61c946a5741a", | ||
"size": 30, | ||
"size": 10240, | ||
"is_empty_layer": false, | ||
"author": null, | ||
"created": "2020-04-24T01:05:03.608058404Z", | ||
|
@@ -234,7 +234,7 @@ | |
"variant": null, | ||
"labels": [], | ||
"layer_id": "09c52b6fbc483eb8e2d244a916da54fb3990cdaa575cab35edfbb27e132929cb", | ||
"size": 30, | ||
"size": 10240, | ||
"is_empty_layer": false, | ||
"author": null, | ||
"created": "2020-10-08T16:23:14.227103847Z", | ||
|
@@ -252,7 +252,7 @@ | |
"variant": null, | ||
"labels": [], | ||
"layer_id": "55141db9edb2a13ee593cff8c80e883e672e388c8686fd94a4f2518f21de1d32", | ||
"size": 30, | ||
"size": 10240, | ||
"is_empty_layer": false, | ||
"author": null, | ||
"created": "2020-10-08T16:23:16.985023204Z", | ||
|
@@ -270,7 +270,7 @@ | |
"variant": null, | ||
"labels": [], | ||
"layer_id": "01f37c950ed43fd0ecc47d0a72949201594f650bd63861cc6e6ac8097ca600bf", | ||
"size": 30, | ||
"size": 10240, | ||
"is_empty_layer": false, | ||
"author": null, | ||
"created": "2020-10-08T16:23:17.192305843Z", | ||
|
@@ -288,7 +288,7 @@ | |
"variant": null, | ||
"labels": [], | ||
"layer_id": "08dc907515cbda226cd872c2c79d087eb226fd27182b6b1315306aade51f963d", | ||
"size": 30, | ||
"size": 10240, | ||
"is_empty_layer": false, | ||
"author": null, | ||
"created": "2020-10-11T21:20:59.851868447Z", | ||
|
@@ -306,7 +306,7 @@ | |
"variant": null, | ||
"labels": [], | ||
"layer_id": "5b4096031e4780d4c3010335ede79886786ec89d22c2bd85642a30beac682ec9", | ||
"size": 30, | ||
"size": 10240, | ||
"is_empty_layer": false, | ||
"author": null, | ||
"created": "2020-10-11T21:21:00.668316194Z", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters