MagickCore  7.0.7
Convert, Edit, Or Compose Bitmap Images
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

◆ PolicyFilename

#define PolicyFilename   "policy.xml"

Definition at line 73 of file policy.c.

Referenced by IsPolicyCacheInstantiated().

Typedef Documentation

◆ PolicyMapInfo

typedef struct _PolicyMapInfo PolicyMapInfo

Function Documentation

◆ AcquirePolicyCache()

◆ DestroyPolicyElement()

static void* DestroyPolicyElement ( void *  policy_info)

◆ GetPolicyInfo()

◆ GetPolicyInfoList()

◆ GetPolicyList()

◆ GetPolicyValue()

◆ IsPolicyCacheInstantiated()

◆ IsRightsAuthorized()

◆ ListPolicyInfo()

◆ LoadPolicyCache()

◆ PolicyComponentGenesis()

MagickPrivate MagickBooleanType PolicyComponentGenesis ( void  )

Definition at line 986 of file policy.c.

References AcquireSemaphoreInfo(), MagickTrue, and policy_semaphore.

Referenced by MagickCoreGenesis().

◆ PolicyComponentTerminus()

◆ SetMagickSecurityPolicy()

◆ SetMagickSecurityPolicyValue()

◆ SetPolicyValue()

Variable Documentation

◆ policy_cache

◆ policy_semaphore

◆ PolicyMap

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

Definition at line 124 of file policy.c.

Referenced by AcquirePolicyCache().