MagickCore  7.0.10
policy.c File Reference
Include dependency graph for policy.c:

Go to the source code of this file.

Data Structures

struct  _PolicyInfo
struct  _PolicyMapInfo


#define PolicyFilename   "policy.xml"


typedef struct _PolicyMapInfo PolicyMapInfo


static MagickBooleanType IsPolicyCacheInstantiated (ExceptionInfo *)
static MagickBooleanType LoadPolicyCache (LinkedListInfo *, const char *, const char *, const size_t, ExceptionInfo *)
static LinkedListInfoAcquirePolicyCache (const char *filename, ExceptionInfo *exception)
static PolicyInfoGetPolicyInfo (const char *name, ExceptionInfo *exception)
MagickExport const PolicyInfo ** GetPolicyInfoList (const char *pattern, size_t *number_policies, ExceptionInfo *exception)
MagickExport char ** GetPolicyList (const char *pattern, size_t *number_policies, ExceptionInfo *exception)
MagickExport char * GetPolicyValue (const char *name)
MagickExport MagickBooleanType IsRightsAuthorized (const PolicyDomain domain, const PolicyRights rights, const char *pattern)
MagickExport MagickBooleanType ListPolicyInfo (FILE *file, ExceptionInfo *exception)
MagickPrivate MagickBooleanType PolicyComponentGenesis (void)
static void * DestroyPolicyElement (void *policy_info)
MagickPrivate void PolicyComponentTerminus (void)
MagickExport MagickBooleanType SetMagickSecurityPolicy (const char *policy, ExceptionInfo *exception)
static MagickBooleanType SetPolicyValue (const PolicyDomain domain, const char *name, const char *value)
MagickExport MagickBooleanType SetMagickSecurityPolicyValue (const PolicyDomain domain, const char *name, const char *value, ExceptionInfo *exception)


static const PolicyMapInfo PolicyMap []
static LinkedListInfopolicy_cache = (LinkedListInfo *) NULL
static SemaphoreInfopolicy_semaphore = (SemaphoreInfo *) NULL

Macro Definition Documentation

#define PolicyFilename   "policy.xml"

Definition at line 73 of file policy.c.

Referenced by IsPolicyCacheInstantiated().

Typedef Documentation

typedef struct _PolicyMapInfo PolicyMapInfo

Function Documentation

static void* DestroyPolicyElement ( void *  policy_info)
MagickPrivate MagickBooleanType PolicyComponentGenesis ( void  )

Definition at line 988 of file policy.c.

References AcquireSemaphoreInfo(), MagickTrue, and policy_semaphore.

Referenced by MagickCoreGenesis().

Variable Documentation

const PolicyMapInfo PolicyMap[]
Initial value:
(const char *) NULL, (const char *) NULL }

Definition at line 124 of file policy.c.

Referenced by AcquirePolicyCache().