git-repo/tests
Mike Frysinger e6a202f790 project: add basic path checks for <copyfile> & <linkfile>
Reject paths in <copyfile> & <linkfile> that try to use symlinks or
non-file or non-dirs.

We don't fully validate <linkfile> when src is a glob as it's a bit
complicated -- any component in the src could be the glob.  We make
sure the destination is a directory, and that any paths in that dir
are created as symlinks.  So while this can be used to read any path,
it can't be abused to write to any paths.

Bug: https://crbug.com/gerrit/11218
Change-Id: I68b6d789b5ca4e43f569e75e8b293b3e13d3224b
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/233074
Tested-by: Mike Frysinger <vapier@google.com>
Reviewed-by: Mike Frysinger <vapier@google.com>
Reviewed-by: Michael Mortensen <mmortensen@google.com>
2020-02-04 20:34:23 +00:00
..
fixtures run_tests: add a helper for invoking unittests 2019-07-11 04:34:08 +00:00
test_editor.py upload/editor: fix bytes/string confusion 2019-11-16 23:55:30 +00:00
test_git_command.py git_command: set GIT_HTTP_USER_AGENT on all requests 2019-10-01 05:47:17 +00:00
test_git_config.py tests: add docstrings & print_function (for Python 3) 2019-08-01 03:03:48 +00:00
test_manifest_xml.py manifest: add basic path checks for <copyfile> & <linkfile> 2020-02-04 20:34:01 +00:00
test_project.py project: add basic path checks for <copyfile> & <linkfile> 2020-02-04 20:34:23 +00:00
test_wrapper.py tests: add docstrings & print_function (for Python 3) 2019-08-01 03:03:48 +00:00