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
 

Macros

#define PolicyFilename   "policy.xml"
 

Typedefs

typedef struct _PolicyMapInfo PolicyMapInfo
 

Functions

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)
 

Variables

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 68 of file policy.c.

Referenced by IsPolicyCacheInstantiated().

Typedef Documentation

◆ PolicyMapInfo

typedef struct _PolicyMapInfo PolicyMapInfo

Function Documentation

◆ AcquirePolicyCache()

◆ DestroyPolicyElement()

static void* DestroyPolicyElement ( void *  policy_info)
static

◆ GetPolicyInfo()

◆ GetPolicyInfoList()

◆ GetPolicyList()

◆ GetPolicyValue()

◆ IsPolicyCacheInstantiated()

◆ IsRightsAuthorized()

◆ ListPolicyInfo()

◆ LoadPolicyCache()

◆ PolicyComponentGenesis()

MagickPrivate MagickBooleanType PolicyComponentGenesis ( void  )

Definition at line 981 of file policy.c.

References AcquireSemaphoreInfo(), MagickTrue, and policy_semaphore.

Referenced by MagickCoreGenesis().

◆ PolicyComponentTerminus()

◆ SetMagickSecurityPolicy()

Variable Documentation

◆ policy_cache

◆ policy_semaphore

◆ PolicyMap

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

Definition at line 119 of file policy.c.

Referenced by AcquirePolicyCache().