HomeClusterLabs Projects

Low: libcrmcommon: implement is_ipc_provider_expected() as series of fallbacks

Description

Low: libcrmcommon: implement is_ipc_provider_expected() as series of fallbacks

Previously, is_ipc_provider_expected() checked only one of the socket
authentication types (HAVE_UCRED, HAVE_SOCKPEERCRED, etc.). While in practice
that's fine, checking each in a series of fallbacks is more resilient and
easier to follow.

Details

Provenance
kgaillotAuthored on Jun 28 2023, 3:44 PM
Parents
rP74700d6e873e: Low: libcrmcommon: fix is_ipc_provider_expected() with HAVE_GETPEERUCRED
Branches
Unknown
Tags
Unknown