This is a fix for PR #231172 and for updating D17056 against to OpenSSH-7.8p1.
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=231172
https://reviews.freebsd.org/D17056
Sandboxed child process authenticate client request that violates some capabilities.
We fix following problems.
- login_getpwclass(3) is not allowed in capability mode.
-> We add a wrapper function to proxy the function.
- accessing timezone file is not allowed in capability mode.
-> cache timezone data to call caph_cache_tzdata().
- reverse resolve hostname from IP address is not allowed in capability mode.
-> reverse resolve hostname before entering capability mode.