MagickCore
6.8.5
|
#include "magick/studio.h"
#include "magick/client.h"
#include "magick/configure.h"
#include "magick/exception.h"
#include "magick/exception-private.h"
#include "magick/memory_.h"
#include "magick/monitor.h"
#include "magick/monitor-private.h"
#include "magick/option.h"
#include "magick/policy.h"
#include "magick/semaphore.h"
#include "magick/string_.h"
#include "magick/token.h"
#include "magick/utility.h"
#include "magick/xml-tree.h"
Data Structures | |
struct | _PolicyInfo |
struct | _PolicyMapInfo |
Macros | |
#define | PolicyFilename "policy.xml" |
Typedefs | |
typedef struct _PolicyMapInfo | PolicyMapInfo |
Variables | |
static const PolicyMapInfo | PolicyMap [] |
static LinkedListInfo * | policy_list = (LinkedListInfo *) NULL |
static SemaphoreInfo * | policy_semaphore = (SemaphoreInfo *) NULL |
static volatile MagickBooleanType | instantiate_policy = MagickFalse |
#define PolicyFilename "policy.xml" |
Referenced by InitializePolicyList().
typedef struct _PolicyMapInfo PolicyMapInfo |
|
static |
References DestroyString(), _PolicyInfo::exempt, MagickFalse, _PolicyInfo::name, _PolicyInfo::path, _PolicyInfo::pattern, RelinquishMagickMemory(), and _PolicyInfo::value.
Referenced by PolicyComponentTerminus().
|
static |
References CopyMagickString(), GetNextValueInLinkedList(), GetValueFromLinkedList(), InitializePolicyList(), InsertValueInLinkedList(), instantiate_policy, IsLinkedListEmpty(), LocaleCompare(), LockSemaphoreInfo(), MagickFalse, MaxTextExtent, _PolicyInfo::name, policy_list, policy_semaphore, RemoveElementByValueFromLinkedList(), ResetLinkedListIterator(), and UnlockSemaphoreInfo().
Referenced by GetPolicyInfoList(), GetPolicyList(), GetPolicyValue(), and IsRightsAuthorized().
MagickExport const PolicyInfo** GetPolicyInfoList | ( | const char * | pattern, |
size_t * | number_policies, | ||
ExceptionInfo * | exception | ||
) |
References AcquireQuantumMemory(), GetMagickModule, GetNextValueInLinkedList(), GetNumberOfElementsInLinkedList(), GetPolicyInfo(), GlobExpression(), LockSemaphoreInfo(), LogMagickEvent(), MagickFalse, _PolicyInfo::name, policy_list, policy_semaphore, ResetLinkedListIterator(), _PolicyInfo::stealth, TraceEvent, and UnlockSemaphoreInfo().
Referenced by ListPolicyInfo().
MagickExport char** GetPolicyList | ( | const char * | pattern, |
size_t * | number_policies, | ||
ExceptionInfo * | exception | ||
) |
References AcquireQuantumMemory(), ConstantString(), GetMagickModule, GetNextValueInLinkedList(), GetNumberOfElementsInLinkedList(), GetPolicyInfo(), GlobExpression(), LockSemaphoreInfo(), LogMagickEvent(), MagickFalse, _PolicyInfo::name, policy_list, policy_semaphore, ResetLinkedListIterator(), _PolicyInfo::stealth, TraceEvent, and UnlockSemaphoreInfo().
MagickExport char* GetPolicyValue | ( | const char * | name | ) |
References AcquireExceptionInfo(), ConstantString(), DestroyExceptionInfo(), GetMagickModule, GetPolicyInfo(), LogMagickEvent(), TraceEvent, and _PolicyInfo::value.
Referenced by ConnectPixelCacheServer(), DistributePixelCacheClient(), GetPathTemplate(), SetMagickPrecision(), and SetMagickResourceLimit().
|
static |
References AcquireSemaphoreInfo(), instantiate_policy, LoadPolicyLists(), LockSemaphoreInfo(), MagickFalse, MagickTrue, policy_list, policy_semaphore, PolicyFilename, and UnlockSemaphoreInfo().
Referenced by GetPolicyInfo().
MagickExport MagickBooleanType IsRightsAuthorized | ( | const PolicyDomain | domain, |
const PolicyRights | rights, | ||
const char * | pattern | ||
) |
References AcquireExceptionInfo(), CommandOptionToMnemonic(), DestroyExceptionInfo(), _PolicyInfo::domain, ExecutePolicyRights, GetMagickModule, GetNextValueInLinkedList(), GetPolicyInfo(), GlobExpression(), LockSemaphoreInfo(), LogMagickEvent(), MagickFalse, MagickPolicyDomainOptions, MagickPolicyRightsOptions, MagickTrue, _PolicyInfo::pattern, policy_list, policy_semaphore, PolicyEvent, ReadPolicyRights, ResetLinkedListIterator(), _PolicyInfo::rights, UnlockSemaphoreInfo(), and WritePolicyRights.
Referenced by InvokeDelegate(), InvokeDynamicImageFilter(), OpenBlob(), ReadImage(), SystemCommand(), and WriteImage().
MagickExport MagickBooleanType ListPolicyInfo | ( | FILE * | file, |
ExceptionInfo * | exception | ||
) |
References CommandOptionToMnemonic(), _PolicyInfo::domain, ExecutePolicyRights, FormatLocaleFile(), GetPolicyInfoList(), LocaleCompare(), MagickFalse, MagickPolicyDomainOptions, MagickTrue, NoPolicyRights, _PolicyInfo::path, ReadPolicyRights, RelinquishMagickMemory(), ResourcePolicyDomain, SystemPolicyDomain, and WritePolicyRights.
|
static |
References AcquireMagickMemory(), AcquireString(), AppendValueToLinkedList(), ConcatenateMagickString(), ConfigureError, ConfigureEvent, ConstantString(), CopyMagickString(), DirectorySeparator, _PolicyInfo::domain, _PolicyInfo::exempt, FileToString(), GetMagickModule, GetMagickToken(), GetPathComponent(), HeadPath, IsMagickTrue(), LocaleCompare(), LocaleNCompare(), LogMagickEvent(), MagickFalse, MagickPolicyDomainOptions, MagickPolicyRightsOptions, MagickSignature, MagickTrue, MaxTextExtent, _PolicyInfo::name, NewLinkedList(), ParseCommandOption(), _PolicyInfo::path, _PolicyInfo::pattern, policy_list, RelinquishMagickMemory(), ResetMagickMemory(), ResourceLimitError, ResourceLimitFatalError, _PolicyInfo::rights, _PolicyInfo::signature, _PolicyInfo::stealth, ThrowFatalException, ThrowFileException, ThrowMagickException(), and _PolicyInfo::value.
Referenced by LoadPolicyLists().
static MagickBooleanType LoadPolicyLists | ( | const char * | filename, |
ExceptionInfo * | exception | ||
) |
References AcquireMagickMemory(), AppendValueToLinkedList(), DestroyConfigureOptions(), _PolicyInfo::domain, _PolicyMapInfo::domain, _PolicyInfo::exempt, GetConfigureOptions(), GetMagickModule, GetNextValueInLinkedList(), GetStringInfoDatum(), GetStringInfoPath(), LoadPolicyList(), MagickFalse, MagickSignature, MagickTrue, _PolicyInfo::name, _PolicyMapInfo::name, NewLinkedList(), _PolicyInfo::path, _PolicyInfo::pattern, _PolicyMapInfo::pattern, policy_list, PolicyMap, ResetMagickMemory(), ResourceLimitError, _PolicyInfo::rights, _PolicyMapInfo::rights, _PolicyInfo::signature, ThrowFileException, ThrowMagickException(), _PolicyInfo::value, and _PolicyMapInfo::value.
Referenced by InitializePolicyList().
MagickExport MagickBooleanType PolicyComponentGenesis | ( | void | ) |
References AcquireSemaphoreInfo(), MagickTrue, and policy_semaphore.
Referenced by MagickCoreGenesis().
MagickExport void PolicyComponentTerminus | ( | void | ) |
|
static |
Referenced by GetPolicyInfo(), InitializePolicyList(), and PolicyComponentTerminus().
|
static |
|
static |
|
static |
Referenced by LoadPolicyLists().