40#include "magick/studio.h"
41#include "magick/cache-private.h"
42#include "magick/client.h"
43#include "magick/configure.h"
44#include "magick/exception.h"
45#include "magick/exception-private.h"
46#include "magick/hashmap-private.h"
47#include "magick/locale_.h"
48#include "magick/magick-private.h"
49#include "magick/memory_.h"
50#include "magick/memory-private.h"
51#include "magick/monitor.h"
52#include "magick/monitor-private.h"
53#include "magick/option.h"
54#include "magick/policy.h"
55#include "magick/policy-private.h"
56#include "magick/resource_.h"
57#include "magick/semaphore.h"
58#include "magick/stream-private.h"
59#include "magick/string_.h"
60#include "magick/string-private.h"
61#include "magick/timer-private.h"
62#include "magick/token.h"
63#include "magick/utility.h"
64#include "magick/utility-private.h"
65#include "magick/xml-tree.h"
66#include "magick/xml-tree-private.h"
67#if defined(MAGICKCORE_XML_DELEGATE)
68# include <libxml/parser.h>
69# include <libxml/tree.h>
75#define PolicyFilename "policy.xml"
125static const PolicyMapInfo
128 { UndefinedPolicyDomain, UndefinedPolicyRights, (
const char *) NULL,
129 (
const char *) NULL, (
const char *) NULL }
133 *policy_cache = (LinkedListInfo *) NULL;
141static MagickBooleanType
142 IsPolicyCacheInstantiated(ExceptionInfo *),
143 LoadPolicyCache(LinkedListInfo *,
const char *,
const char *,
const size_t,
145 SetMagickSecurityPolicyValue(
const PolicyDomain,
const char *,
const char *,
174static LinkedListInfo *AcquirePolicyCache(
const char *filename,
175 ExceptionInfo *exception)
189 cache=NewLinkedList(0);
190 if (cache == (LinkedListInfo *) NULL)
191 ThrowFatalException(ResourceLimitFatalError,
"MemoryAllocationFailed");
193#if MAGICKCORE_ZERO_CONFIGURATION_SUPPORT
194 magick_unreferenced(filename);
195 status=LoadPolicyCache(cache,ZeroConfigurationPolicy,
"[zero-configuration]",0,
197 if (status == MagickFalse)
198 CatchException(exception);
207 options=GetConfigureOptions(filename,exception);
208 option=(
const StringInfo *) GetNextValueInLinkedList(options);
209 while (option != (
const StringInfo *) NULL)
211 status&=LoadPolicyCache(cache,(
const char *) GetStringInfoDatum(option),
212 GetStringInfoPath(option),0,exception);
213 if (status == MagickFalse)
214 CatchException(exception);
215 option=(
const StringInfo *) GetNextValueInLinkedList(options);
217 options=DestroyConfigureOptions(options);
223 for (i=0; i < (ssize_t) (
sizeof(PolicyMap)/
sizeof(*PolicyMap)); i++)
232 policy_info=(PolicyInfo *) AcquireMagickMemory(
sizeof(*policy_info));
233 if (policy_info == (PolicyInfo *) NULL)
235 (void) ThrowMagickException(exception,GetMagickModule(),
236 ResourceLimitError,
"MemoryAllocationFailed",
"`%s'",
237 p->name == (
char *) NULL ?
"" : p->name);
238 CatchException(exception);
242 (void) memset(policy_info,0,
sizeof(*policy_info));
243 policy_info->path=(
char *)
"[built-in]";
244 policy_info->domain=p->domain;
245 policy_info->rights=p->rights;
246 policy_info->name=(
char *) p->name;
247 policy_info->pattern=(
char *) p->pattern;
248 policy_info->value=(
char *) p->value;
249 policy_info->exempt=MagickTrue;
250 policy_info->signature=MagickCoreSignature;
251 status&=AppendValueToLinkedList(cache,policy_info);
252 if (status == MagickFalse)
254 (void) ThrowMagickException(exception,GetMagickModule(),
255 ResourceLimitError,
"MemoryAllocationFailed",
"`%s'",
256 p->name == (
char *) NULL ?
"" : p->name);
257 CatchException(exception);
260 if (status == MagickFalse)
261 CatchException(exception);
290static PolicyInfo *GetPolicyInfo(
const char *name,ExceptionInfo *exception)
293 policyname[MagickPathExtent],
305 assert(exception != (ExceptionInfo *) NULL);
306 if (IsPolicyCacheInstantiated(exception) == MagickFalse)
307 return((PolicyInfo *) NULL);
312 if (name != (
const char *) NULL)
313 (void) CopyMagickString(policyname,name,MagickPathExtent);
314 for (q=policyname; *q !=
'\0'; q++)
316 if (isspace((
int) ((
unsigned char) *q)) == 0)
318 (void) CopyMagickString(q,q+1,MagickPathExtent);
324 domain=UndefinedPolicyDomain;
325 for (q=policyname; *q !=
'\0'; q++)
330 domain=(PolicyDomain) ParseCommandOption(MagickPolicyDomainOptions,
331 MagickTrue,policyname);
332 (void) CopyMagickString(policyname,q+1,MagickPathExtent);
338 policy=(PolicyInfo *) NULL;
339 LockSemaphoreInfo(policy_semaphore);
340 ResetLinkedListIterator(policy_cache);
341 p=GetHeadElementInLinkedList(policy_cache);
342 if ((name == (
const char *) NULL) || (LocaleCompare(name,
"*") == 0))
344 UnlockSemaphoreInfo(policy_semaphore);
345 if (p != (ElementInfo *) NULL)
346 policy=(PolicyInfo *) p->value;
349 while (p != (ElementInfo *) NULL)
351 policy=(PolicyInfo *) p->value;
352 if ((domain == UndefinedPolicyDomain) || (policy->domain == domain))
353 if (LocaleCompare(policyname,policy->name) == 0)
357 if (p == (ElementInfo *) NULL)
358 policy=(PolicyInfo *) NULL;
360 (
void) SetHeadElementInLinkedList(policy_cache,p);
361 UnlockSemaphoreInfo(policy_semaphore);
392MagickExport
const PolicyInfo **GetPolicyInfoList(
const char *pattern,
393 size_t *number_policies,ExceptionInfo *exception)
407 assert(pattern != (
char *) NULL);
408 assert(number_policies != (
size_t *) NULL);
409 if (IsEventLogging() != MagickFalse)
410 (void) LogMagickEvent(TraceEvent,GetMagickModule(),
"%s",pattern);
412 p=GetPolicyInfo(
"*",exception);
413 if (p == (
const PolicyInfo *) NULL)
414 return((
const PolicyInfo **) NULL);
415 policies=(
const PolicyInfo **) AcquireQuantumMemory((
size_t)
416 GetNumberOfElementsInLinkedList(policy_cache)+1UL,
sizeof(*policies));
417 if (policies == (
const PolicyInfo **) NULL)
418 return((
const PolicyInfo **) NULL);
422 LockSemaphoreInfo(policy_semaphore);
423 ResetLinkedListIterator(policy_cache);
424 p=(
const PolicyInfo *) GetNextValueInLinkedList(policy_cache);
425 for (i=0; p != (
const PolicyInfo *) NULL; )
427 if ((p->stealth == MagickFalse) &&
428 (GlobExpression(p->name,pattern,MagickFalse) != MagickFalse))
430 p=(
const PolicyInfo *) GetNextValueInLinkedList(policy_cache);
432 UnlockSemaphoreInfo(policy_semaphore);
433 policies[i]=(PolicyInfo *) NULL;
434 *number_policies=(size_t) i;
466static char *AcquirePolicyString(
const char *source,
const size_t pad)
475 if (source != (
char *) NULL)
476 length+=strlen(source);
477 destination=(
char *) NULL;
479 destination=(
char *) AcquireMagickMemory((length+pad)*
sizeof(*destination));
480 if (destination == (
char *) NULL)
481 ThrowFatalException(ResourceLimitFatalError,
"UnableToAcquireString");
482 if (source != (
char *) NULL)
483 (void) memcpy(destination,source,length*
sizeof(*destination));
484 destination[length]=
'\0';
488MagickExport
char **GetPolicyList(
const char *pattern,
size_t *number_policies,
489 ExceptionInfo *exception)
503 assert(pattern != (
char *) NULL);
504 assert(number_policies != (
size_t *) NULL);
505 if (IsEventLogging() != MagickFalse)
506 (void) LogMagickEvent(TraceEvent,GetMagickModule(),
"%s",pattern);
508 p=GetPolicyInfo(
"*",exception);
509 if (p == (
const PolicyInfo *) NULL)
510 return((
char **) NULL);
511 policies=(
char **) AcquireQuantumMemory((
size_t)
512 GetNumberOfElementsInLinkedList(policy_cache)+1UL,
sizeof(*policies));
513 if (policies == (
char **) NULL)
514 return((
char **) NULL);
518 LockSemaphoreInfo(policy_semaphore);
519 ResetLinkedListIterator(policy_cache);
520 p=(
const PolicyInfo *) GetNextValueInLinkedList(policy_cache);
521 for (i=0; p != (
const PolicyInfo *) NULL; )
523 if ((p->stealth == MagickFalse) &&
524 (GlobExpression(p->name,pattern,MagickFalse) != MagickFalse))
525 policies[i++]=AcquirePolicyString(p->name,1);
526 p=(
const PolicyInfo *) GetNextValueInLinkedList(policy_cache);
528 UnlockSemaphoreInfo(policy_semaphore);
529 policies[i]=(
char *) NULL;
530 *number_policies=(size_t) i;
556MagickExport
char *GetPolicyValue(
const char *name)
567 assert(name != (
const char *) NULL);
568 if (IsEventLogging() != MagickFalse)
569 (void) LogMagickEvent(TraceEvent,GetMagickModule(),
"%s",name);
570 exception=AcquireExceptionInfo();
571 policy_info=GetPolicyInfo(name,exception);
572 exception=DestroyExceptionInfo(exception);
573 if (policy_info == (PolicyInfo *) NULL)
574 return((
char *) NULL);
575 value=policy_info->value;
576 if ((value == (
const char *) NULL) || (*value ==
'\0'))
577 return((
char *) NULL);
578 return(AcquirePolicyString(value,1));
604static MagickBooleanType IsPolicyCacheInstantiated(ExceptionInfo *exception)
606 if (policy_cache == (LinkedListInfo *) NULL)
608 GetMaxMemoryRequest();
610 ActivateSemaphoreInfo(&policy_semaphore);
611 LockSemaphoreInfo(policy_semaphore);
612 if (policy_cache == (LinkedListInfo *) NULL)
613 policy_cache=AcquirePolicyCache(PolicyFilename,exception);
614 UnlockSemaphoreInfo(policy_semaphore);
616 return(policy_cache != (LinkedListInfo *) NULL ? MagickTrue : MagickFalse);
647MagickExport MagickBooleanType IsRightsAuthorized(
const PolicyDomain domain,
648 const PolicyRights rights,
const char *pattern)
662 if ((GetLogEventMask() & PolicyEvent) != 0)
663 (void) LogMagickEvent(PolicyEvent,GetMagickModule(),
664 "Domain: %s; rights=%s; pattern=\"%s\" ...",
665 CommandOptionToMnemonic(MagickPolicyDomainOptions,domain),
666 CommandOptionToMnemonic(MagickPolicyRightsOptions,rights),pattern);
667 exception=AcquireExceptionInfo();
668 policy_info=GetPolicyInfo(
"*",exception);
669 exception=DestroyExceptionInfo(exception);
670 if (policy_info == (PolicyInfo *) NULL)
672 authorized=MagickTrue;
673 LockSemaphoreInfo(policy_semaphore);
674 ResetLinkedListIterator(policy_cache);
675 p=(PolicyInfo *) GetNextValueInLinkedList(policy_cache);
676 while (p != (PolicyInfo *) NULL)
679 *real_pattern = (
char *) pattern;
681 if (p->domain == domain)
683 if (p->domain == PathPolicyDomain)
685 real_pattern=realpath_utf8(pattern);
686 if (real_pattern == (
char *) NULL)
687 real_pattern=AcquireString(pattern);
689 if (GlobExpression(real_pattern,p->pattern,MagickFalse) != MagickFalse)
691 if ((rights & ReadPolicyRights) != 0)
692 authorized=(p->rights & ReadPolicyRights) != 0 ? MagickTrue :
694 if ((rights & WritePolicyRights) != 0)
695 authorized=(p->rights & WritePolicyRights) != 0 ? MagickTrue :
697 if ((rights & ExecutePolicyRights) != 0)
698 authorized=(p->rights & ExecutePolicyRights) != 0 ? MagickTrue :
701 if (p->domain == PathPolicyDomain)
702 real_pattern=DestroyString(real_pattern);
704 p=(PolicyInfo *) GetNextValueInLinkedList(policy_cache);
706 UnlockSemaphoreInfo(policy_semaphore);
734MagickExport MagickBooleanType ListPolicyInfo(FILE *file,
735 ExceptionInfo *exception)
753 if (file == (
const FILE *) NULL)
755 policy_info=GetPolicyInfoList(
"*",&number_policies,exception);
756 if (policy_info == (
const PolicyInfo **) NULL)
758 path=(
const char *) NULL;
759 for (i=0; i < (ssize_t) number_policies; i++)
761 if (policy_info[i]->stealth != MagickFalse)
763 if (((path == (
const char *) NULL) ||
764 (LocaleCompare(path,policy_info[i]->path) != 0)) &&
765 (policy_info[i]->path != (
char *) NULL))
766 (void) FormatLocaleFile(file,
"\nPath: %s\n",policy_info[i]->path);
767 path=policy_info[i]->path;
768 domain=CommandOptionToMnemonic(MagickPolicyDomainOptions,
769 policy_info[i]->domain);
770 (void) FormatLocaleFile(file,
" Policy: %s\n",domain);
771 if ((policy_info[i]->domain == CachePolicyDomain) ||
772 (policy_info[i]->domain == ResourcePolicyDomain) ||
773 (policy_info[i]->domain == SystemPolicyDomain))
775 if (policy_info[i]->name != (
char *) NULL)
776 (void) FormatLocaleFile(file,
" name: %s\n",policy_info[i]->name);
777 if (policy_info[i]->value != (
char *) NULL)
778 (void) FormatLocaleFile(file,
" value: %s\n",policy_info[i]->value);
782 (void) FormatLocaleFile(file,
" rights: ");
783 if (policy_info[i]->rights == NoPolicyRights)
784 (void) FormatLocaleFile(file,
"None ");
785 if ((policy_info[i]->rights & ReadPolicyRights) != 0)
786 (void) FormatLocaleFile(file,
"Read ");
787 if ((policy_info[i]->rights & WritePolicyRights) != 0)
788 (void) FormatLocaleFile(file,
"Write ");
789 if ((policy_info[i]->rights & ExecutePolicyRights) != 0)
790 (void) FormatLocaleFile(file,
"Execute ");
791 (void) FormatLocaleFile(file,
"\n");
792 if (policy_info[i]->pattern != (
char *) NULL)
793 (void) FormatLocaleFile(file,
" pattern: %s\n",
794 policy_info[i]->pattern);
797 policy_info=(
const PolicyInfo **) RelinquishMagickMemory((
void *)
833static MagickBooleanType LoadPolicyCache(LinkedListInfo *cache,
const char *xml,
834 const char *filename,
const size_t depth,ExceptionInfo *exception)
837 keyword[MagickPathExtent],
855 (void) LogMagickEvent(ConfigureEvent,GetMagickModule(),
856 "Loading policy file \"%s\" ...",filename);
857 if (xml == (
char *) NULL)
860 policy_info=(PolicyInfo *) NULL;
861 token=AcquirePolicyString(xml,MagickPathExtent);
862 extent=strlen(token)+MagickPathExtent;
863 for (q=(
const char *) xml; *q !=
'\0'; )
868 (void) GetNextToken(q,&q,extent,token);
871 (void) CopyMagickString(keyword,token,MagickPathExtent);
872 if (LocaleNCompare(keyword,
"<!DOCTYPE",9) == 0)
877 while ((LocaleNCompare(q,
"]>",2) != 0) && (*q !=
'\0'))
878 (void) GetNextToken(q,&q,extent,token);
881 if (LocaleNCompare(keyword,
"<!--",4) == 0)
886 while ((LocaleNCompare(q,
"->",2) != 0) && (*q !=
'\0'))
887 (void) GetNextToken(q,&q,extent,token);
890 if (LocaleCompare(keyword,
"<include") == 0)
895 while (((*token !=
'/') && (*(token+1) !=
'>')) && (*q !=
'\0'))
897 (void) CopyMagickString(keyword,token,MagickPathExtent);
898 (void) GetNextToken(q,&q,extent,token);
901 (void) GetNextToken(q,&q,extent,token);
902 if (LocaleCompare(keyword,
"file") == 0)
904 if (depth > MagickMaxRecursionDepth)
905 (void) ThrowMagickException(exception,GetMagickModule(),
906 ConfigureError,
"IncludeElementNestedTooDeeply",
"`%s'",token);
910 path[MagickPathExtent],
913 GetPathComponent(filename,HeadPath,path);
915 (void) ConcatenateMagickString(path,DirectorySeparator,
917 if (*token == *DirectorySeparator)
918 (void) CopyMagickString(path,token,MagickPathExtent);
920 (
void) ConcatenateMagickString(path,token,MagickPathExtent);
921 xml=FileToXML(path,~0UL);
922 if (xml != (
char *) NULL)
924 status&=LoadPolicyCache(cache,xml,path,depth+1,
926 xml=(
char *) RelinquishMagickMemory(xml);
933 if (LocaleCompare(keyword,
"<policy") == 0)
938 policy_info=(PolicyInfo *) AcquireMagickMemory(
sizeof(*policy_info));
939 if (policy_info == (PolicyInfo *) NULL)
940 ThrowFatalException(ResourceLimitFatalError,
"MemoryAllocationFailed");
941 (void) memset(policy_info,0,
sizeof(*policy_info));
942 policy_info->path=AcquirePolicyString(filename,1);
943 policy_info->exempt=MagickFalse;
944 policy_info->signature=MagickCoreSignature;
947 if (policy_info == (PolicyInfo *) NULL)
949 if ((LocaleCompare(keyword,
"/>") == 0) ||
950 (LocaleCompare(keyword,
"</policy>") == 0))
952 status=AppendValueToLinkedList(cache,policy_info);
953 if (status == MagickFalse)
954 (void) ThrowMagickException(exception,GetMagickModule(),
955 ResourceLimitError,
"MemoryAllocationFailed",
"`%s'",
957 policy_info=(PolicyInfo *) NULL;
960 (void) GetNextToken(q,(
const char **) NULL,extent,token);
963 (void) GetNextToken(q,&q,extent,token);
964 (void) GetNextToken(q,&q,extent,token);
970 if (LocaleCompare((
char *) keyword,
"domain") == 0)
972 policy_info->domain=(PolicyDomain) ParseCommandOption(
973 MagickPolicyDomainOptions,MagickTrue,token);
981 if (LocaleCompare((
char *) keyword,
"name") == 0)
983 policy_info->name=AcquirePolicyString(token,1);
991 if (LocaleCompare((
char *) keyword,
"pattern") == 0)
993 policy_info->pattern=AcquirePolicyString(token,1);
1001 if (LocaleCompare((
char *) keyword,
"rights") == 0)
1003 policy_info->rights=(PolicyRights) ParseCommandOption(
1004 MagickPolicyRightsOptions,MagickTrue,token);
1012 if (LocaleCompare((
char *) keyword,
"stealth") == 0)
1014 policy_info->stealth=IsMagickTrue(token);
1022 if (LocaleCompare((
char *) keyword,
"value") == 0)
1024 policy_info->value=AcquirePolicyString(token,1);
1033 token=(
char *) RelinquishMagickMemory(token);
1034 if (status == MagickFalse)
1035 CatchException(exception);
1036 return(status != 0 ? MagickTrue : MagickFalse);
1057MagickExport MagickBooleanType PolicyComponentGenesis(
void)
1060 policy_semaphore=AllocateSemaphoreInfo();
1083static void *DestroyPolicyElement(
void *policy_info)
1088 p=(PolicyInfo *) policy_info;
1089 if (p->exempt == MagickFalse)
1091 if (p->value != (
char *) NULL)
1092 p->value=DestroyString(p->value);
1093 if (p->pattern != (
char *) NULL)
1094 p->pattern=DestroyString(p->pattern);
1095 if (p->name != (
char *) NULL)
1096 p->name=DestroyString(p->name);
1097 if (p->path != (
char *) NULL)
1098 p->path=DestroyString(p->path);
1100 p=(PolicyInfo *) RelinquishMagickMemory(p);
1101 return((
void *) NULL);
1104MagickExport
void PolicyComponentTerminus(
void)
1107 ActivateSemaphoreInfo(&policy_semaphore);
1108 LockSemaphoreInfo(policy_semaphore);
1109 if (policy_cache != (LinkedListInfo *) NULL)
1110 policy_cache=DestroyLinkedList(policy_cache,DestroyPolicyElement);
1111 UnlockSemaphoreInfo(policy_semaphore);
1112 DestroySemaphoreInfo(&policy_semaphore);
1142static MagickBooleanType ValidateSecurityPolicy(
const char *policy,
1143 const char *url,ExceptionInfo *exception)
1145#if defined(MAGICKCORE_XML_DELEGATE)
1152 document=xmlReadMemory(policy,(
int) strlen(policy),url,NULL,
1153 XML_PARSE_NOERROR | XML_PARSE_NOWARNING);
1154 if (document == (xmlDocPtr) NULL)
1156 (void) ThrowMagickException(exception,GetMagickModule(),ConfigureError,
1157 "PolicyValidationException",
"'%s'",url);
1158 return(MagickFalse);
1160 xmlFreeDoc(document);
1169MagickExport MagickBooleanType SetMagickSecurityPolicy(
const char *policy,
1170 ExceptionInfo *exception)
1184 assert(exception != (ExceptionInfo *) NULL);
1185 if (policy == (
const char *) NULL)
1186 return(MagickFalse);
1187 if (ValidateSecurityPolicy(policy,PolicyFilename,exception) == MagickFalse)
1188 return(MagickFalse);
1189 status=LoadPolicyCache(policy_cache,policy,
"[user-policy]",0,exception);
1190 if (status == MagickFalse)
1195 user_policies=NewLinkedList(0);
1196 status=LoadPolicyCache(user_policies,policy,
"[user-policy]",0,exception);
1197 if (status == MagickFalse)
1199 user_policies=DestroyLinkedList(user_policies,DestroyPolicyElement);
1200 return(MagickFalse);
1202 ResetLinkedListIterator(user_policies);
1203 p=(PolicyInfo *) GetNextValueInLinkedList(user_policies);
1204 while (p != (PolicyInfo *) NULL)
1206 if ((p->name != (
char *) NULL) && (p->value != (
char *) NULL))
1207 (void) SetMagickSecurityPolicyValue(p->domain,p->name,p->value,exception);
1208 p=(PolicyInfo *) GetNextValueInLinkedList(user_policies);
1210 user_policies=DestroyLinkedList(user_policies,DestroyPolicyElement);
1247static MagickBooleanType SetMagickSecurityPolicyValue(
const PolicyDomain domain,
1248 const char *name,
const char *value,ExceptionInfo *exception)
1250 magick_unreferenced(exception);
1251 assert(exception != (ExceptionInfo *) NULL);
1252 if ((name == (
const char *) NULL) || (value == (
const char *) NULL))
1253 return(MagickFalse);
1256 case CachePolicyDomain:
1258 if (LocaleCompare(name,
"memory-map") == 0)
1260 if (LocaleCompare(value,
"anonymous") != 0)
1261 return(MagickFalse);
1262 ResetCacheAnonymousMemory();
1263 ResetStreamAnonymousMemory();
1268 case ResourcePolicyDomain:
1273 type=ParseCommandOption(MagickResourceOptions,MagickFalse,name);
1279 limit=MagickResourceInfinity;
1280 if (LocaleCompare(
"unlimited",value) != 0)
1281 limit=StringToMagickSizeType(value,100.0);
1282 if ((ResourceType) type == TimeResource)
1283 limit=(MagickSizeType) ParseMagickTimeToLive(value);
1284 return(SetMagickResourceLimit((ResourceType) type,limit));
1288 case SystemPolicyDomain:
1290 if (LocaleCompare(name,
"max-memory-request") == 0)
1295 limit=MagickResourceInfinity;
1296 if (LocaleCompare(
"unlimited",value) != 0)
1297 limit=StringToMagickSizeType(value,100.0);
1298 SetMaxMemoryRequest(limit);
1301 if (LocaleCompare(name,
"memory-map") == 0)
1303 if (LocaleCompare(value,
"anonymous") != 0)
1304 return(MagickFalse);
1305 ResetVirtualAnonymousMemory();
1308 if (LocaleCompare(name,
"precision") == 0)
1313 limit=StringToInteger(value);
1314 SetMagickPrecision(limit);
1319 case CoderPolicyDomain:
1320 case DelegatePolicyDomain:
1321 case FilterPolicyDomain:
1322 case ModulePolicyDomain:
1323 case PathPolicyDomain:
1327 return(MagickFalse);