diff options
| author | Michal Nasiadka <mnasiadka@gmail.com> | 2026-06-23 17:15:40 +0200 |
|---|---|---|
| committer | Michal Nasiadka <mnasiadka@gmail.com> | 2026-09-16 12:19:40 +0000 |
| commit | 8c2d7d305c928eea779c2f72f3e854d15638af22 (patch) | |
| tree | 0227b57f3f9d9a85f9989d284605c6feddee77f7 /kolla | |
| parent | 58b01f5a162bae158632765a81dea92e8545e06a (diff) | |
| download | kolla-8c2d7d305c928eea779c2f72f3e854d15638af22.tar.gz kolla-8c2d7d305c928eea779c2f72f3e854d15638af22.zip | |
Ensure git cloned dirs are writable for the executing user
Closes-Bug: #2167377
Change-Id: Ic5e32b79d058223634d990fb2e33041692f682ce
Signed-off-by: Michal Nasiadka <mnasiadka@gmail.com>
Diffstat (limited to 'kolla')
| -rw-r--r-- | kolla/image/tasks.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/kolla/image/tasks.py b/kolla/image/tasks.py index ba2ade743..87dff5640 100644 --- a/kolla/image/tasks.py +++ b/kolla/image/tasks.py @@ -56,6 +56,12 @@ def normalize_tarinfo(tarinfo): # unchanged. An integer mtime also stops tarfile's PAX writer # emitting per-entry float-mtime extended headers. tarinfo.mtime = 0 + + # Ensure directories are writable. Git repos contain directories + # such as .git/objects/pack/ with mode 0555, which prevents + # non-root users from re-extracting into an existing items_path + # on build retry. + tarinfo.mode |= 0o200 return tarinfo |
