kaniko/integration/dockerfiles-with-context
Tony De La Nuez 77ac6942a6
Fix missing setuid flags on COPY --from=build operation (#2089)
* Fix missing file permissions on multi-stage build

Fixes #2075

When a file with the setuid bit is copied from one stage
to another, the permissions were not copied over properly after
setting ownership on directory and the file itself.

* Update pkg/util/fs_util.go

Co-authored-by: Jason Hall <jason@chainguard.dev>

* Adding boilerplate to dockerfile

* Add bash check to bail with exit code 1 if setuid not present

Co-authored-by: Jason Hall <jason@chainguard.dev>
2022-05-22 09:20:18 -04:00
..
issue-57 fix: `COPY --chown` regression tests (#2097) 2022-05-18 10:49:42 -04:00
issue-721 add integration tests with their own context 2020-02-29 15:41:10 -08:00
issue-774 add integration tests with their own context 2020-02-29 15:41:10 -08:00
issue-1020 add integration tests with their own context 2020-02-29 15:41:10 -08:00
issue-1315 Fix calculating path for copying ownership (#1859) 2021-12-24 07:09:53 -05:00
issue-2075 Fix missing setuid flags on COPY --from=build operation (#2089) 2022-05-22 09:20:18 -04:00