Add support for Kohei KaiGai's /sys/kernel/capability/ files.

This change adds support for checking for new capabilities in the
/sys/kernel/capability/{codes,names}/* files when the library wasn't
compiled with the latest capabilities.

Also update documentation for cap_from_text.3 to be more explicit
about how to free a libcap allocated string. (Bug reported by Serge.)

Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2 files changed