pacemaker 2.1.5-a3f44794f94
Scalable High-Availability cluster resource manager
acl.h
Go to the documentation of this file.
1/*
2 * Copyright 2004-2022 the Pacemaker project contributors
3 *
4 * The version control history for this file may have further details.
5 *
6 * This source code is licensed under the GNU Lesser General Public License
7 * version 2.1 or later (LGPLv2.1+) WITHOUT ANY WARRANTY.
8 */
9
10#ifndef PCMK__CRM_COMMON_ACL__H
11# define PCMK__CRM_COMMON_ACL__H
12
13# include <libxml/tree.h> // xmlNode
14# include <stdbool.h>
15
16#ifdef __cplusplus
17extern "C" {
18#endif
19
26bool xml_acl_enabled(const xmlNode *xml);
27void xml_acl_disable(xmlNode *xml);
28bool xml_acl_denied(const xmlNode *xml);
29bool xml_acl_filtered_copy(const char *user, xmlNode* acl_source, xmlNode *xml,
30 xmlNode **result);
31
32bool pcmk_acl_required(const char *user);
33
34#ifdef __cplusplus
35}
36#endif
37
38#endif // PCMK__CRM_COMMON_ACL__H
bool xml_acl_denied(const xmlNode *xml)
Check whether or not an XML node is ACL-denied.
Definition: acl.c:613
bool pcmk_acl_required(const char *user)
Check whether ACLs are required for a given user.
Definition: acl.c:751
void xml_acl_disable(xmlNode *xml)
Definition: acl.c:624
bool xml_acl_filtered_copy(const char *user, xmlNode *acl_source, xmlNode *xml, xmlNode **result)
Copy ACL-allowed portions of specified XML.
Definition: acl.c:443
bool xml_acl_enabled(const xmlNode *xml)
Check whether or not an XML node is ACL-enabled.
Definition: acl.c:644
pcmk__action_result_t result
Definition: pcmk_fence.c:35