nspawn: tweaks to /etc/resolv.conf management
authorLennart Poettering <lennart@poettering.net>
Tue, 20 Dec 2016 23:44:00 +0000 (00:44 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 21 Dec 2016 18:09:32 +0000 (19:09 +0100)
commit87447ae4598d8de5aad557ec746e27e8271a60a7
tree508503e69ff4c6ee5b9fc2d188548c3479181c82
parent8ccf7e9e96ac89f02424c065e39043b5165f8bca
nspawn: tweaks to /etc/resolv.conf management

Handle properly if /etc is a symlink (i.e. make sure we don't follow the
symlink outside the image). Also follow /etc/resolv.conf if it is a
symlink, and use the resolved path when creating a mount point and
mounting (as both of these operations follow symlinks and rally
shouldn't).

Handle more types of read-only errors as debug-level issues.
src/nspawn/nspawn.c