pacemaker  2.1.9-49aab99839
Scalable High-Availability cluster resource manager
Macros | Enumerations | Functions
pcmki_acl.h File Reference
#include <crm/common/xml.h>
Include dependency graph for pcmki_acl.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define PCMK__COMPAT_ACL_2_MIN_INCL   "pacemaker-2.0"
 

Enumerations

enum  pcmk__acl_render_how {
  pcmk__acl_render_none = 0, pcmk__acl_render_namespace, pcmk__acl_render_text, pcmk__acl_render_color,
  pcmk__acl_render_default
}
 

Functions

int pcmk__acl_annotate_permissions (const char *cred, const xmlDoc *cib_doc, xmlDoc **acl_evaled_doc)
 Annotate CIB with XML namespaces indicating ACL evaluation results. More...
 
int pcmk__acl_evaled_render (xmlDoc *annotated_doc, enum pcmk__acl_render_how, xmlChar **doc_txt_ptr)
 

Macro Definition Documentation

◆ PCMK__COMPAT_ACL_2_MIN_INCL

#define PCMK__COMPAT_ACL_2_MIN_INCL   "pacemaker-2.0"

Definition at line 24 of file pcmki_acl.h.

Enumeration Type Documentation

◆ pcmk__acl_render_how

Enumerator
pcmk__acl_render_none 
pcmk__acl_render_namespace 
pcmk__acl_render_text 
pcmk__acl_render_color 
pcmk__acl_render_default 

Definition at line 15 of file pcmki_acl.h.

Function Documentation

◆ pcmk__acl_annotate_permissions()

int pcmk__acl_annotate_permissions ( const char *  cred,
const xmlDoc *  cib_doc,
xmlDoc **  acl_evaled_doc 
)

Annotate CIB with XML namespaces indicating ACL evaluation results.

Parameters
[in]credCredential whose ACL perspective to switch to
[in]cib_docCIB XML to annotate
[out]acl_evaled_docWhere to store annotated CIB XML
Returns
A standard Pacemaker return code (pcmk_rc_ok on success, pcmk_rc_already if ACLs were not applicable, pcmk_rc_schema_validation if the validation schema version is unsupported, or EINVAL or ENOMEM when appropriate.
Note
This supports CIBs validated with the pacemaker-2.0 schema or newer.

Definition at line 203 of file pcmk_acl.c.

◆ pcmk__acl_evaled_render()

int pcmk__acl_evaled_render ( xmlDoc *  annotated_doc,
enum  pcmk__acl_render_how,
xmlChar **  doc_txt_ptr 
)

Definition at line 258 of file pcmk_acl.c.