pacemaker  2.0.4-2deceaa
Scalable High-Availability cluster resource manager
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Typedefs | Functions
acl.c File Reference
#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/tree.h>
#include <crm/crm.h>
#include <crm/msg_xml.h>
#include <crm/common/xml.h>
#include "crmcommon_private.h"
Include dependency graph for acl.c:

Go to the source code of this file.


#define MAX_XPATH_LEN   4096
#define display_id(xml)   (ID(xml)? ID(xml) : "<unset>")


typedef struct xml_acl_s xml_acl_t


void pcmk__free_acls (GList *acls)
void pcmk__apply_acl (xmlNode *xml)
void pcmk__unpack_acl (xmlNode *source, xmlNode *target, const char *user)
bool xml_acl_filtered_copy (const char *user, xmlNode *acl_source, xmlNode *xml, xmlNode **result)
void pcmk__apply_creation_acl (xmlNode *xml, bool check_top)
bool xml_acl_denied (xmlNode *xml)
void xml_acl_disable (xmlNode *xml)
bool xml_acl_enabled (xmlNode *xml)
bool pcmk__check_acl (xmlNode *xml, const char *name, enum xml_private_flags mode)
bool pcmk_acl_required (const char *user)
 Check whether ACLs are required for a given user. More...

Macro Definition Documentation

#define display_id (   xml)    (ID(xml)? ID(xml) : "<unset>")

Definition at line 549 of file acl.c.

#define MAX_XPATH_LEN   4096

Definition at line 26 of file acl.c.

Typedef Documentation

typedef struct xml_acl_s xml_acl_t

Function Documentation

void pcmk__apply_acl ( xmlNode *  xml)

Definition at line 242 of file acl.c.

void pcmk__apply_creation_acl ( xmlNode *  xml,
bool  check_top 

Definition at line 565 of file acl.c.

bool pcmk__check_acl ( xmlNode *  xml,
const char *  name,
enum xml_private_flags  mode 

Definition at line 635 of file acl.c.

void pcmk__free_acls ( GList *  acls)

Definition at line 45 of file acl.c.

void pcmk__unpack_acl ( xmlNode *  source,
xmlNode *  target,
const char *  user 

Definition at line 313 of file acl.c.

bool pcmk_acl_required ( const char *  user)

Check whether ACLs are required for a given user.

[in]Username to check
true if the user requires ACLs, false otherwise

Definition at line 708 of file acl.c.

bool xml_acl_denied ( xmlNode *  xml)

Definition at line 600 of file acl.c.

void xml_acl_disable ( xmlNode *  xml)

Definition at line 611 of file acl.c.

bool xml_acl_enabled ( xmlNode *  xml)

Definition at line 624 of file acl.c.

bool xml_acl_filtered_copy ( const char *  user,
xmlNode *  acl_source,
xmlNode *  xml,
xmlNode **  result 

Definition at line 437 of file acl.c.