pacemaker
2.1.4-dc6eb4362
Scalable High-Availability cluster resource manager
|
#include <crm_internal.h>
#include <stdio.h>
#include <sys/types.h>
#include <pwd.h>
#include <string.h>
#include <stdlib.h>
#include <stdarg.h>
#include <libxml/parser.h>
#include <libxml/tree.h>
#include <libxml/xpath.h>
#include <libxslt/transform.h>
#include <libxslt/variables.h>
#include <libxslt/xsltutils.h>
#include <crm/crm.h>
#include <crm/msg_xml.h>
#include <crm/common/xml.h>
#include <crm/common/xml_internal.h>
#include <crm/common/internal.h>
#include <pacemaker-internal.h>
Go to the source code of this file.
Macros | |
#define | ACL_NS_PREFIX "http://clusterlabs.org/ns/pacemaker/access/" |
#define | ACL_NS_Q_PREFIX "pcmk-access-" |
#define | ACL_NS_Q_WRITABLE (const xmlChar *) ACL_NS_Q_PREFIX "writable" |
#define | ACL_NS_Q_READABLE (const xmlChar *) ACL_NS_Q_PREFIX "readable" |
#define | ACL_NS_Q_DENIED (const xmlChar *) ACL_NS_Q_PREFIX "denied" |
Functions | |
int | pcmk__acl_annotate_permissions (const char *cred, xmlDoc *cib_doc, xmlDoc **acl_evaled_doc) |
Mark CIB with namespace-encoded result of ACLs eval'd per credential. More... | |
int | pcmk__acl_evaled_render (xmlDoc *annotated_doc, enum pcmk__acl_render_how how, xmlChar **doc_txt_ptr) |
#define ACL_NS_PREFIX "http://clusterlabs.org/ns/pacemaker/access/" |
Definition at line 34 of file pcmk_acl.c.
#define ACL_NS_Q_DENIED (const xmlChar *) ACL_NS_Q_PREFIX "denied" |
Definition at line 38 of file pcmk_acl.c.
#define ACL_NS_Q_PREFIX "pcmk-access-" |
Definition at line 35 of file pcmk_acl.c.
#define ACL_NS_Q_READABLE (const xmlChar *) ACL_NS_Q_PREFIX "readable" |
Definition at line 37 of file pcmk_acl.c.
#define ACL_NS_Q_WRITABLE (const xmlChar *) ACL_NS_Q_PREFIX "writable" |
Definition at line 36 of file pcmk_acl.c.
int pcmk__acl_annotate_permissions | ( | const char * | cred, |
xmlDoc * | cib_doc, | ||
xmlDoc ** | acl_evaled_doc | ||
) |
Mark CIB with namespace-encoded result of ACLs eval'd per credential.
[in] | cred_type | credential type that cred represents |
[in] | cred | credential whose ACL perspective to switch to |
[in] | cib_doc | XML document representing CIB |
[out] | acl_evaled_doc | XML document representing CIB, with said namespace-based annotations throughout |
Definition at line 186 of file pcmk_acl.c.
int pcmk__acl_evaled_render | ( | xmlDoc * | annotated_doc, |
enum pcmk__acl_render_how | how, | ||
xmlChar ** | doc_txt_ptr | ||
) |
Definition at line 241 of file pcmk_acl.c.