-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #775 from onekey-sec/safe_tar_symlinks_fix
Fix SafeTarFile symlinks extraction Co-authored-by: Andrew Fasano <[email protected]>
- Loading branch information
Showing
11 changed files
with
64 additions
and
9 deletions.
There are no files selected for viewing
Git LFS file not shown
2 changes: 1 addition & 1 deletion
2
tests/integration/archive/tar/__output__/absolute.tar_extract/absolute/absolute-symlink
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 |
---|---|---|
@@ -1 +1 @@ | ||
absolute/absolute-file | ||
absolute-file |
2 changes: 1 addition & 1 deletion
2
tests/integration/archive/tar/__output__/absolute.tar_extract/absolute/link_to_etc_shadow
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 |
---|---|---|
@@ -1 +1 @@ | ||
etc/shadow | ||
../etc/shadow |
3 changes: 3 additions & 0 deletions
3
tests/integration/archive/tar/__output__/symlinks.tar_extract/test/bin/busybox
Git LFS file not shown
1 change: 1 addition & 0 deletions
1
tests/integration/archive/tar/__output__/symlinks.tar_extract/test/sbin/cp
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
../bin/busybox |
1 change: 1 addition & 0 deletions
1
tests/integration/archive/tar/__output__/symlinks.tar_extract/test/sbin/find
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
../bin/busybox |
1 change: 1 addition & 0 deletions
1
tests/integration/archive/tar/__output__/symlinks.tar_extract/test/sbin/ln
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
../bin/busybox |
1 change: 1 addition & 0 deletions
1
tests/integration/archive/tar/__output__/symlinks.tar_extract/test/sbin/ls
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
../bin/busybox |
1 change: 1 addition & 0 deletions
1
tests/integration/archive/tar/__output__/symlinks.tar_extract/test/sbin/mv
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
../../bin/busybox |
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