diff options
author | Paul Holzinger <pholzing@redhat.com> | 2022-04-29 14:41:33 +0200 |
---|---|---|
committer | Matthew Heon <matthew.heon@pm.me> | 2022-05-03 13:45:29 -0400 |
commit | 1cdf18a86b092caf5d23ddf605b23c9c143f270f (patch) | |
tree | 484ad5d68db30297b3196f414f74438c5556641f /test/redhat_sigstore.yaml | |
parent | bbb10bb52d0acd089bf26339dbb62e4b1e1b4d59 (diff) | |
download | podman-1cdf18a86b092caf5d23ddf605b23c9c143f270f.tar.gz podman-1cdf18a86b092caf5d23ddf605b23c9c143f270f.tar.bz2 podman-1cdf18a86b092caf5d23ddf605b23c9c143f270f.zip |
fix incorrect permissions for /etc/resolv.conf in userns
The files /etc/hosts, /etc/hostname and /etc/resolv.conf should always
be owned by the root user in the container. This worked correct for
/etc/hostname and /etc/hosts but not for /etc/resolv.conf.
A container run with --userns keep-id would have the reolv.conf file
owned by the current container user which is wrong.
Consolidate some common code in a new helper function to make the code more
cleaner.
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Diffstat (limited to 'test/redhat_sigstore.yaml')
0 files changed, 0 insertions, 0 deletions