pacemaker  2.1.4-dc6eb4362
Scalable High-Availability cluster resource manager
pcmki_acl.h
Go to the documentation of this file.
1 /*
2  * Copyright 2004-2021 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 #ifndef PCMK__PCMKI_PCMKI_ACL__H
10 #define PCMK__PCMKI_PCMKI_ACL__H
11 
12 #include <crm/common/xml.h>
13 
17  /* XXX no proper support for groups yet */
18 };
19 
24 };
25 
26 /*
27  * Version compatibility tracking incl. open-ended intervals for occasional
28  * bumps (to avoid hard to follow open-coding throughout). Grouped by context.
29  */
30 
31 /* Schema version vs. evaluate-as-namespace-annotations-per-credentials */
32 
33 #define PCMK__COMPAT_ACL_2_MIN_INCL "pacemaker-2.0"
34 
55 int pcmk__acl_annotate_permissions(const char *cred, xmlDoc *cib_doc,
56  xmlDoc **acl_evaled_doc);
57 
71 int pcmk__acl_evaled_render(xmlDoc *annotated_doc, enum pcmk__acl_render_how,
72  xmlChar **doc_txt_ptr);
73 
74 #endif
pcmk__acl_render_how
Definition: pcmki_acl.h:20
int pcmk__acl_annotate_permissions(const char *cred, xmlDoc *cib_doc, xmlDoc **acl_evaled_doc)
Mark CIB with namespace-encoded result of ACLs eval&#39;d per credential.
Definition: pcmk_acl.c:186
int pcmk__acl_evaled_render(xmlDoc *annotated_doc, enum pcmk__acl_render_how, xmlChar **doc_txt_ptr)
Definition: pcmk_acl.c:241
Wrappers for and extensions to libxml2.
pcmk__acl_cred_type
Definition: pcmki_acl.h:14