diff options
author | Bryn M. Reeves <bmr@redhat.com> | 2018-09-13 16:14:12 +0100 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2018-09-13 16:20:01 +0100 |
commit | 8e60e299cdfb0027d6b6ea845234ef54ae785186 (patch) | |
tree | 317a9fa1fb03c391b34d5f2eeadc18b244b7083e /tests/policy_tests.py | |
parent | 868966cd9dbb96ce3635d884e67e738b18658140 (diff) | |
download | sos-8e60e299cdfb0027d6b6ea845234ef54ae785186.tar.gz |
[archive, plugin] avoid recursing on symbolic link loops
It's possible that symlink loops exist in the host file system,
either 'simple' ('a'->'a'), or indirect ('a'->'b'->'a'). We need
to avoid recursing on these loops, to avoid exceeding the maximum
link or recursion depths, but we should still represent these
inodes as accurately as possible in the resulting archive.
Detect loops in both the Plugin link handling code and in the new
Archive link follow-up code by creating the first requested level
of loop, and then skipping the recursive follow-up. This means
that the looping links are still created in the archive so long
as they are referenced in a copy spec but that we do not attempt
to indefinitely recurse while collecting them.
Resolves: #1430
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
Diffstat (limited to 'tests/policy_tests.py')
0 files changed, 0 insertions, 0 deletions