HomeClusterLabs Projects

Refactor: libcib: Avoid cib_acl_enabled() duplication

Description

Refactor: libcib: Avoid cib_acl_enabled() duplication

In all of these cases, what we really care about is whether ACLs are
enabled for the user in the original CIB (*current_cib). The differences
come from the aliases (cib_ro and scratch) that we use for *current_cib,
and whether scratch is a copy of *current_cib (in which case the return
value of cib_acl_enabled() would be the same).

Also add a couple of TODO comments. This is a very convoluted and
confusing function and likely has some corner case bugs.

Signed-off-by: Reid Wahl <nrwahl@protonmail.com>

Details

Provenance
nrwahl2Authored on Mar 13 2025, 2:20 PM
Parents
rP135a90f01bf0: Refactor: libcrmcommon, tools: Drop redundant xml_track_changes() calls
Branches
Unknown
Tags
Unknown