jail: include /etc/nsswitch.conf in jail for glibc.
authorDaniel Golle <daniel@makrotopia.org>
Sun, 19 Apr 2020 22:06:51 +0000 (23:06 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Sun, 19 Apr 2020 22:13:23 +0000 (23:13 +0100)
commitd200b70e5d5b0b3b61e2573f1c2fa22b3fa9d63a
treeb2da10fcf75a92445edad417b6b34f7ac70beb06
parenta4cc165a9fdcc9d76a0ba58a2e9ccde605e5f40d
jail: include /etc/nsswitch.conf in jail for glibc.

/etc/nsswitch.conf is needed to resolve usernames and groups from
/etc/passwd and /etc/groups, name resoultion and a bunch of other
things when using glibc.
Mount /etc/nsswitch.conf in jail when building against glibc.

Reported-by: Tobias Waldvogel <tobias.waldvogel@gmail.com>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
jail/jail.c