mirror_corosync/tools
Christine Caulfield ce03c68394 Report crypto errors back to cfg reload
Because crypto changing happens in the 'commit' phase
of the reload and we can't get sure that knet will
allow the new parameters, the result gets ignored.
This can happen in FIPS mode if a non-FIPS cipher
is requested.

This patch reports the errors back in a cmap key
so that the command-line can spot those errors
and report them back to the user.

It also restores the internal values for crypto
so that subsequent attempts to change things have
predictable results. Otherwise further attempts can
do nothing but not report any errors back.

I've also added some error reporting back for the
knet ping counters using this mechanism.

The alternative to all of this would be to check for FIPS
in totemconfig.c and then exclude certain options, but this
would be duplicating code that could easily get out of sync.

This system could also be a useful mechanism for reporting
back other 'impossible' errors.

Signed-off-by: Christine Caulfield <ccaulfie@redhat.com>
Reviewed-by: Jan Friesse <jfriesse@redhat.com>
2024-02-05 15:20:08 +01:00
..
.gitignore Remove corosync-fplay 2012-06-05 12:05:15 +02:00
corosync-blackbox.sh blackbox: Quote subshell result properly 2018-03-02 17:29:16 +01:00
corosync-cfgtool.c Report crypto errors back to cfg reload 2024-02-05 15:20:08 +01:00
corosync-cmapctl.c cmapctl: return error on no result of print prefix 2020-08-21 11:22:09 +02:00
corosync-cpgtool.c totemsrp: Revert totemsrp_get_ifaces() changes 2017-11-30 16:59:05 +01:00
corosync-keygen.c keygen: Reflect change in knet 2019-04-11 15:14:06 +02:00
corosync-notifyd.c notifyd: Check cmap_track_add result 2019-11-28 09:44:45 +01:00
corosync-notifyd.sysconfig.example Improve corosync-notifyd example 2013-04-16 17:32:05 +02:00
corosync-quorumtool.c quorumtool: strict check for -o option 2020-08-20 14:28:19 +02:00
corosync-xmlproc.sh build: make path to bash configurable at build time 2012-08-28 15:14:49 +02:00
Makefile.am build: Add explicit dependency for used libraries 2021-11-10 08:24:20 +01:00
util.c tools: use util_strtonum for options checking 2020-08-12 16:56:34 +02:00
util.h tools: use util_strtonum for options checking 2020-08-12 16:56:34 +02:00