kaniko/pkg
Priya Wadhwa 63cecbff74 Whitelist /etc/mtab
While looking into #345, we were seeing the error:

Error: error building image: chmod /etc/mtab: operation not permitted

during extraction of `amazonlinux:1`. I looked into why kaniko couldn't
extract this file properly, and found that it already existed as a
symlink pointing to /proc/mounts, which returned an error when we tried
to run chmod on it.

Confusingly, in the image the /etc/mtab is a regular file, not a
symlink.

I can think of two ways to solve this problem:
  1. Whitelist /etc/mtab so that whatever already exists in the system
  is used
  2. Check if a regular file already exists, and hasn't been extracted yet,
  before extracting

I went with option 1 because for option 2 we'd have to keep a list of
all files that had been extracted in memory.
2018-09-10 17:06:09 -07:00
..
buildcontext Enable shared config for s3 2018-08-23 20:53:43 +10:00
commands Fix linting error 2018-09-04 13:50:57 -07:00
config Merge branch 'master' of github.com:GoogleContainerTools/kaniko into stages 2018-08-30 16:17:44 -07:00
constants Set default home value (#281) 2018-08-10 12:58:07 -07:00
dockerfile Added a KanikoStage type for each stage of a Dockerfile 2018-08-27 14:15:04 -07:00
executor Merge pull request #320 from priyawadhwa/stages 2018-09-07 16:19:40 -07:00
image dep update go-containerregistry 2018-06-03 00:59:34 +00:00
snapshot Separate snapshotting of parent dirs from files 2018-08-24 16:34:59 -07:00
util Whitelist /etc/mtab 2018-09-10 17:06:09 -07:00
version Set a user-agent for registry pushes. (#87) 2018-04-13 14:25:58 -07:00