For a java application running on a linux system, how can I determine the underlying version of glibc?
Background: I'd like to, at runtime, determine if it possible to use conscrypt, which appears to require glibc 2.14 nowadays (https://github.com/google/conscrypt/pull/589), but I would still need to gracefully support running on CentOS 6 or other older distributions by falling back to the standard Java SSL code. Unfortunately (at least as far as I've been able to determine) there's no way to catch and recover from the error that occurs if Conscrypt is initialised on an older distribution, but if I can determine the glibc version I could choose whether to initialise it based on that.