MagickCore 7.1.0
Convert, Edit, Or Compose Bitmap Images
|
#include "MagickCore/studio.h"
#include "MagickCore/cache-private.h"
#include "MagickCore/client.h"
#include "MagickCore/configure.h"
#include "MagickCore/configure-private.h"
#include "MagickCore/exception.h"
#include "MagickCore/exception-private.h"
#include "MagickCore/magick-private.h"
#include "MagickCore/memory_.h"
#include "MagickCore/memory-private.h"
#include "MagickCore/monitor.h"
#include "MagickCore/monitor-private.h"
#include "MagickCore/option.h"
#include "MagickCore/policy.h"
#include "MagickCore/policy-private.h"
#include "MagickCore/resource_.h"
#include "MagickCore/resource-private.h"
#include "MagickCore/semaphore.h"
#include "MagickCore/stream-private.h"
#include "MagickCore/string_.h"
#include "MagickCore/string-private.h"
#include "MagickCore/token.h"
#include "MagickCore/utility.h"
#include "MagickCore/utility-private.h"
#include "MagickCore/xml-tree.h"
#include "MagickCore/xml-tree-private.h"
Go to the source code of this file.
Data Structures | |
struct | _PolicyInfo |
struct | _PolicyMapInfo |
Macros | |
#define | PolicyFilename "policy.xml" |
Typedefs | |
typedef struct _PolicyMapInfo | PolicyMapInfo |
Variables | |
static const PolicyMapInfo | PolicyMap [] |
static LinkedListInfo * | policy_cache = (LinkedListInfo *) NULL |
static SemaphoreInfo * | policy_semaphore = (SemaphoreInfo *) NULL |
typedef struct _PolicyMapInfo PolicyMapInfo |
|
static |
Definition at line 170 of file policy.c.
References AcquireMagickMemory(), AppendValueToLinkedList(), DestroyConfigureOptions(), _PolicyInfo::domain, _PolicyMapInfo::domain, _PolicyInfo::exempt, GetConfigureOptions(), GetMagickModule, GetNextValueInLinkedList(), GetStringInfoDatum(), GetStringInfoPath(), LoadPolicyCache(), MagickCoreSignature, MagickFalse, MagickTrue, _PolicyInfo::name, _PolicyMapInfo::name, NewLinkedList(), _PolicyInfo::path, _PolicyInfo::pattern, _PolicyMapInfo::pattern, PolicyMap, ResourceLimitError, _PolicyInfo::rights, _PolicyMapInfo::rights, _PolicyInfo::signature, ThrowMagickException(), _PolicyInfo::value, and _PolicyMapInfo::value.
Referenced by IsPolicyCacheInstantiated().
|
static |
Definition at line 442 of file policy.c.
References AcquireMagickMemory(), ResourceLimitFatalError, and ThrowFatalException.
Referenced by GetPolicyList(), GetPolicyValue(), LoadPolicyCache(), and SetPolicyValue().
|
static |
Definition at line 1042 of file policy.c.
References DestroyString(), _PolicyInfo::exempt, MagickFalse, _PolicyInfo::name, _PolicyInfo::path, _PolicyInfo::pattern, RelinquishMagickMemory(), and _PolicyInfo::value.
Referenced by PolicyComponentTerminus().
|
static |
Definition at line 272 of file policy.c.
References CopyMagickString(), _PolicyInfo::domain, GetNextValueInLinkedList(), InsertValueInLinkedList(), IsPolicyCacheInstantiated(), LocaleCompare(), LockSemaphoreInfo(), MagickFalse, MagickPathExtent, MagickPolicyDomainOptions, MagickTrue, _PolicyInfo::name, ParseCommandOption(), policy_cache, policy_semaphore, RemoveElementByValueFromLinkedList(), ResetLinkedListIterator(), UndefinedPolicyDomain, and UnlockSemaphoreInfo().
Referenced by GetPolicyInfoList(), GetPolicyList(), GetPolicyValue(), and IsRightsAuthorized().
MagickExport const PolicyInfo ** GetPolicyInfoList | ( | const char * | pattern, |
size_t * | number_policies, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 368 of file policy.c.
References AcquireQuantumMemory(), GetMagickModule, GetNextValueInLinkedList(), GetNumberOfElementsInLinkedList(), GetPolicyInfo(), GlobExpression(), IsEventLogging(), LockSemaphoreInfo(), LogMagickEvent(), MagickFalse, _PolicyInfo::name, policy_cache, policy_semaphore, ResetLinkedListIterator(), _PolicyInfo::stealth, TraceEvent, and UnlockSemaphoreInfo().
Referenced by ListPolicyInfo().
MagickExport char ** GetPolicyList | ( | const char * | pattern, |
size_t * | number_policies, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 465 of file policy.c.
References AcquirePolicyString(), AcquireQuantumMemory(), GetMagickModule, GetNextValueInLinkedList(), GetNumberOfElementsInLinkedList(), GetPolicyInfo(), GlobExpression(), IsEventLogging(), LockSemaphoreInfo(), LogMagickEvent(), MagickFalse, _PolicyInfo::name, policy_cache, policy_semaphore, ResetLinkedListIterator(), _PolicyInfo::stealth, TraceEvent, and UnlockSemaphoreInfo().
MagickExport char * GetPolicyValue | ( | const char * | name | ) |
Definition at line 533 of file policy.c.
References AcquireExceptionInfo(), AcquirePolicyString(), DestroyExceptionInfo(), GetMagickModule, GetPolicyInfo(), IsEventLogging(), LogMagickEvent(), MagickFalse, TraceEvent, and _PolicyInfo::value.
Referenced by AcquirePixelCache(), AcquireStreamPixels(), AcquireUniqueSymbolicLink(), AcquireVirtualMemory(), ConnectPixelCacheServer(), GetMaxMemoryRequest(), GetPathTemplate(), OpenPixelCache(), RenderType(), SetMagickPrecision(), SetMagickResourceLimit(), SetMagickSecurityPolicyValue(), and ShredFile().
|
static |
Definition at line 581 of file policy.c.
References AcquirePolicyCache(), ActivateSemaphoreInfo(), LockSemaphoreInfo(), MagickFalse, MagickTrue, policy_cache, policy_semaphore, PolicyFilename, and UnlockSemaphoreInfo().
Referenced by GetPolicyInfo(), and SetMagickSecurityPolicy().
MagickExport MagickBooleanType IsRightsAuthorized | ( | const PolicyDomain | domain, |
const PolicyRights | rights, | ||
const char * | pattern | ||
) |
Definition at line 623 of file policy.c.
References AcquireExceptionInfo(), CommandOptionToMnemonic(), DestroyExceptionInfo(), _PolicyInfo::domain, ExecutePolicyRights, GetLogEventMask(), GetMagickModule, GetNextValueInLinkedList(), GetPolicyInfo(), GlobExpression(), LockSemaphoreInfo(), LogMagickEvent(), MagickFalse, MagickPolicyDomainOptions, MagickPolicyRightsOptions, MagickTrue, _PolicyInfo::pattern, policy_cache, policy_semaphore, PolicyEvent, ReadPolicyRights, ResetLinkedListIterator(), _PolicyInfo::rights, UnlockSemaphoreInfo(), and WritePolicyRights.
Referenced by AcquireFxInfoPrivate(), ExternalDelegateCommand(), FileToBlob(), FileToImage(), InterpretImageProperties(), InvokeDelegate(), InvokeDynamicImageFilter(), IsCoderAuthorized(), OpenBlob(), RegisterStaticModule(), and RegisterStaticModules().
MagickExport MagickBooleanType ListPolicyInfo | ( | FILE * | file, |
ExceptionInfo * | exception | ||
) |
Definition at line 697 of file policy.c.
References CachePolicyDomain, CommandOptionToMnemonic(), _PolicyInfo::domain, ExecutePolicyRights, FormatLocaleFile(), GetPolicyInfoList(), LocaleCompare(), MagickFalse, MagickPolicyDomainOptions, MagickTrue, NoPolicyRights, _PolicyInfo::path, ReadPolicyRights, RelinquishMagickMemory(), ResourcePolicyDomain, SystemPolicyDomain, and WritePolicyRights.
static MagickBooleanType LoadPolicyCache | ( | LinkedListInfo * | cache, |
const char * | xml, | ||
const char * | filename, | ||
const size_t | depth, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 796 of file policy.c.
References AcquireCriticalMemory(), AcquirePolicyString(), AppendValueToLinkedList(), ConcatenateMagickString(), ConfigureError, ConfigureEvent, CopyMagickString(), DestroyString(), DirectorySeparator, _PolicyInfo::domain, _PolicyInfo::exempt, FileToXML(), GetMagickModule, GetNextToken(), GetPathComponent(), HeadPath, IsStringTrue(), LoadPolicyCache(), LocaleCompare(), LocaleNCompare(), LogMagickEvent(), MagickCoreSignature, MagickFalse, MagickMaxRecursionDepth, MagickPathExtent, MagickPolicyDomainOptions, MagickPolicyRightsOptions, MagickTrue, _PolicyInfo::name, ParseCommandOption(), _PolicyInfo::path, _PolicyInfo::pattern, RelinquishMagickMemory(), ResourceLimitError, _PolicyInfo::rights, _PolicyInfo::signature, _PolicyInfo::stealth, ThrowMagickException(), and _PolicyInfo::value.
Referenced by AcquirePolicyCache(), LoadPolicyCache(), and SetMagickSecurityPolicy().
MagickPrivate MagickBooleanType PolicyComponentGenesis | ( | void | ) |
Definition at line 1016 of file policy.c.
References AcquireSemaphoreInfo(), MagickTrue, and policy_semaphore.
Referenced by MagickCoreGenesis().
MagickPrivate void PolicyComponentTerminus | ( | void | ) |
Definition at line 1063 of file policy.c.
References ActivateSemaphoreInfo(), DestroyLinkedList(), DestroyPolicyElement(), LockSemaphoreInfo(), policy_cache, policy_semaphore, RelinquishSemaphoreInfo(), and UnlockSemaphoreInfo().
Referenced by MagickCoreTerminus().
MagickExport MagickBooleanType SetMagickSecurityPolicy | ( | const char * | policy, |
ExceptionInfo * | exception | ||
) |
Definition at line 1100 of file policy.c.
References _PolicyInfo::domain, GetNextValueInLinkedList(), IsPolicyCacheInstantiated(), LoadPolicyCache(), LockSemaphoreInfo(), MagickFalse, policy_cache, policy_semaphore, ResetLinkedListIterator(), ResourceComponentGenesis(), UndefinedPolicyDomain, and UnlockSemaphoreInfo().
MagickExport MagickBooleanType SetMagickSecurityPolicyValue | ( | const PolicyDomain | domain, |
const char * | name, | ||
const char * | value, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 1204 of file policy.c.
References CachePolicyDomain, CoderPolicyDomain, DelegatePolicyDomain, DestroyString(), FilterPolicyDomain, GetPolicyValue(), LocaleCompare(), magick_unreferenced, MagickFalse, MagickResourceInfinity, MagickResourceOptions, ModulePolicyDomain, ParseCommandOption(), PathPolicyDomain, ResetCacheAnonymousMemory(), ResetMagickPrecision(), ResetMaxMemoryRequest(), ResetStreamAnonymousMemory(), ResetVirtualAnonymousMemory(), ResourcePolicyDomain, SetMagickResourceLimit(), SetPolicyValue(), StringToInteger(), StringToMagickSizeType(), StringToSizeType(), and SystemPolicyDomain.
|
static |
Definition at line 1163 of file policy.c.
References AcquireCriticalMemory(), AcquirePolicyString(), AppendValueToLinkedList(), DestroyString(), _PolicyInfo::domain, _PolicyInfo::exempt, GetNextValueInLinkedList(), LocaleCompare(), LockSemaphoreInfo(), MagickCoreSignature, MagickFalse, MagickTrue, _PolicyInfo::name, policy_cache, policy_semaphore, RelinquishMagickMemory(), ResetLinkedListIterator(), _PolicyInfo::signature, UnlockSemaphoreInfo(), and _PolicyInfo::value.
Referenced by SetMagickSecurityPolicyValue().
|
static |
Definition at line 131 of file policy.c.
Referenced by GetPolicyInfo(), GetPolicyInfoList(), GetPolicyList(), IsPolicyCacheInstantiated(), IsRightsAuthorized(), PolicyComponentTerminus(), SetMagickSecurityPolicy(), and SetPolicyValue().
|
static |
Definition at line 134 of file policy.c.
Referenced by GetPolicyInfo(), GetPolicyInfoList(), GetPolicyList(), IsPolicyCacheInstantiated(), IsRightsAuthorized(), PolicyComponentGenesis(), PolicyComponentTerminus(), SetMagickSecurityPolicy(), and SetPolicyValue().
|
static |
Definition at line 124 of file policy.c.
Referenced by AcquirePolicyCache().