Skip to content

Commit 44db56e

Browse files
authored
Merge pull request #2374 from zhijie-yang/patch-1
fix: apply tar extraction filter
2 parents 6257daa + 191cc53 commit 44db56e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

utils/oscap_docker_python/oscap_docker_util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def _extract_container(self):
126126
self.mountpoint = tempfile.mkdtemp()
127127
self.extracted_container = True
128128
with tarfile.open(fileobj=tar) as tf:
129-
tf.extractall(path=self.mountpoint)
129+
tf.extractall(path=self.mountpoint, filter="tar")
130130
Path(os.path.join(self.mountpoint, '.dockerenv')).touch()
131131

132132

0 commit comments

Comments
 (0)