swarming: Remove sticky bits from caches when calling make_tree_deleteable().

If a file/dir is owned by root and has the sticky bit set, only root can
remove it. If such a file is present in a bot's cache, the bot is unable
to delete that cache if the bot runs as non-root.

This change will remove all sticky bits from caches when the bot tries
deleting things, which should allow it to do so.

R=maruel

Bug: 919599
Change-Id: Iba741fc7a2935d092dbed7b1de6d8bb1b578a04b
Reviewed-on: https://chromium-review.googlesource.com/c/1399144
Commit-Queue: Marc-Antoine Ruel <maruel@chromium.org>
Reviewed-by: Marc-Antoine Ruel <maruel@chromium.org>
Cr-Mirrored-From: https://chromium.googlesource.com/infra/luci/luci-py
Cr-Mirrored-Commit: bfe82ee618c49228ce6c6c3035973da47d783d0a
1 file changed
tree: 3749f5721ec679353df5fb9cba6c4f23ed8707cf
  1. example/
  2. libs/
  3. proto/
  4. tests/
  5. third_party/
  6. tools/
  7. utils/
  8. .gitignore
  9. auth.py
  10. cipd.py
  11. isolate.py
  12. isolate_format.py
  13. isolate_storage.py
  14. isolated_format.py
  15. isolateserver.py
  16. LICENSE
  17. local_caching.py
  18. LUCI_CONTEXT.md
  19. OWNERS
  20. PRESUBMIT.py
  21. README.md
  22. README.py
  23. run_isolated.py
  24. swarming.py
  25. trace_inputs.py
  26. WATCHLISTS
README.md

LUCI Python Client

This is the Python Client code for LUCI. It's part of the main python repo, and is also mirrored into a standalone client-py repo.

To contribute changes you need to clone the main python repo and then use git cl upload. The client-py repo mirror (which appears in Chromium's third_party directory) cannot be contributed to directly.

License

This project is licensed under Apache v2.0 license. See LICENSE for details.