diff options
author | Florian Weimer <fweimer@redhat.com> | 2017-09-01 08:58:07 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2017-09-01 08:58:07 +0200 |
commit | 65329bd233db9d1b8b94e90734a564705b619260 (patch) | |
tree | 5254350ee9b0c50d981222af600979f2c052c0a4 /support/namespace.h | |
parent | a2881ef01450295782b065f2f850f340d5c12c14 (diff) | |
download | glibc-65329bd233db9d1b8b94e90734a564705b619260.tar.gz glibc-65329bd233db9d1b8b94e90734a564705b619260.tar.xz glibc-65329bd233db9d1b8b94e90734a564705b619260.zip |
support_chroot_create: Add support for /etc/hosts, /etc/host.conf
Diffstat (limited to 'support/namespace.h')
-rw-r--r-- | support/namespace.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/support/namespace.h b/support/namespace.h index 859c2fda3f..9eddb1a0e9 100644 --- a/support/namespace.h +++ b/support/namespace.h @@ -66,7 +66,9 @@ struct support_chroot_configuration { /* File contents. The files are not created if the field is NULL. */ - const char *resolv_conf; + const char *resolv_conf; /* /etc/resolv.conf. */ + const char *hosts; /* /etc/hosts. */ + const char *host_conf; /* /etc/host.conf. */ }; /* The result of the creation of a chroot. */ @@ -78,8 +80,11 @@ struct support_chroot /* Path to the chroot directory. */ char *path_chroot; - /* Path to the /etc/resolv.conf file. */ - char *path_resolv_conf; + /* Paths to files in the chroot. These are absolute and outside of + the chroot. */ + char *path_resolv_conf; /* /etc/resolv.conf. */ + char *path_hosts; /* /etc/hosts. */ + char *path_host_conf; /* /etc/host.conf. */ }; /* Create a chroot environment. The returned data should be freed |