40#include "MagickCore/studio.h"
41#include "MagickCore/cache-private.h"
42#include "MagickCore/client.h"
43#include "MagickCore/configure.h"
44#include "MagickCore/configure-private.h"
45#include "MagickCore/exception.h"
46#include "MagickCore/exception-private.h"
47#include "MagickCore/linked-list-private.h"
48#include "MagickCore/magick-private.h"
49#include "MagickCore/memory_.h"
50#include "MagickCore/memory-private.h"
51#include "MagickCore/monitor.h"
52#include "MagickCore/monitor-private.h"
53#include "MagickCore/option.h"
54#include "MagickCore/policy.h"
55#include "MagickCore/policy-private.h"
56#include "MagickCore/resource_.h"
57#include "MagickCore/resource-private.h"
58#include "MagickCore/semaphore.h"
59#include "MagickCore/stream-private.h"
60#include "MagickCore/string_.h"
61#include "MagickCore/string-private.h"
62#include "MagickCore/token.h"
63#include "MagickCore/timer-private.h"
64#include "MagickCore/utility.h"
65#include "MagickCore/utility-private.h"
66#include "MagickCore/xml-tree.h"
67#include "MagickCore/xml-tree-private.h"
68#if defined(MAGICKCORE_XML_DELEGATE)
69# include <libxml/parser.h>
70# include <libxml/tree.h>
76#define PolicyFilename "policy.xml"
126static const PolicyMapInfo
129 { UndefinedPolicyDomain, UndefinedPolicyRights, (
const char *) NULL,
130 (
const char *) NULL, (
const char *) NULL }
134 *policy_cache = (LinkedListInfo *) NULL;
142static MagickBooleanType
143 IsPolicyCacheInstantiated(ExceptionInfo *),
144 LoadPolicyCache(LinkedListInfo *,
const char *,
const char *,
const size_t,
173static LinkedListInfo *AcquirePolicyCache(
const char *filename,
174 ExceptionInfo *exception)
188 cache=NewLinkedList(0);
190#if MAGICKCORE_ZERO_CONFIGURATION_SUPPORT
191 magick_unreferenced(filename);
192 status=LoadPolicyCache(cache,ZeroConfigurationPolicy,
"[zero-configuration]",0,
194 if (status == MagickFalse)
195 CatchException(exception);
204 options=GetConfigureOptions(filename,exception);
205 option=(
const StringInfo *) GetNextValueInLinkedList(options);
206 while (option != (
const StringInfo *) NULL)
208 status=LoadPolicyCache(cache,(
const char *) GetStringInfoDatum(option),
209 GetStringInfoPath(option),0,exception);
210 if (status == MagickFalse)
211 CatchException(exception);
212 option=(
const StringInfo *) GetNextValueInLinkedList(options);
214 options=DestroyConfigureOptions(options);
220 for (i=0; i < (ssize_t) (
sizeof(PolicyMap)/
sizeof(*PolicyMap)); i++)
229 policy_info=(PolicyInfo *) AcquireMagickMemory(
sizeof(*policy_info));
230 if (policy_info == (PolicyInfo *) NULL)
232 (void) ThrowMagickException(exception,GetMagickModule(),
233 ResourceLimitError,
"MemoryAllocationFailed",
"`%s'",
234 p->name == (
char *) NULL ?
"" : p->name);
235 CatchException(exception);
238 (void) memset(policy_info,0,
sizeof(*policy_info));
239 policy_info->path=(
char *)
"[built-in]";
240 policy_info->domain=p->domain;
241 policy_info->rights=p->rights;
242 policy_info->name=(
char *) p->name;
243 policy_info->pattern=(
char *) p->pattern;
244 policy_info->value=(
char *) p->value;
245 policy_info->exempt=MagickTrue;
246 policy_info->signature=MagickCoreSignature;
247 status=AppendValueToLinkedList(cache,policy_info);
248 if (status == MagickFalse)
250 (void) ThrowMagickException(exception,GetMagickModule(),
251 ResourceLimitError,
"MemoryAllocationFailed",
"`%s'",
252 p->name == (
char *) NULL ?
"" : p->name);
253 CatchException(exception);
284static PolicyInfo *GetPolicyInfo(
const char *name,ExceptionInfo *exception)
287 policyname[MagickPathExtent],
299 assert(exception != (ExceptionInfo *) NULL);
300 if (IsPolicyCacheInstantiated(exception) == MagickFalse)
301 return((PolicyInfo *) NULL);
306 if (name != (
const char *) NULL)
307 (void) CopyMagickString(policyname,name,MagickPathExtent);
308 for (q=policyname; *q !=
'\0'; q++)
310 if (isspace((
int) ((
unsigned char) *q)) == 0)
312 (void) CopyMagickString(q,q+1,MagickPathExtent);
318 domain=UndefinedPolicyDomain;
319 for (q=policyname; *q !=
'\0'; q++)
324 domain=(PolicyDomain) ParseCommandOption(MagickPolicyDomainOptions,
325 MagickTrue,policyname);
326 (void) CopyMagickString(policyname,q+1,MagickPathExtent);
332 policy=(PolicyInfo *) NULL;
333 LockSemaphoreInfo(policy_semaphore);
334 ResetLinkedListIterator(policy_cache);
335 p=GetHeadElementInLinkedList(policy_cache);
336 if ((name == (
const char *) NULL) || (LocaleCompare(name,
"*") == 0))
338 UnlockSemaphoreInfo(policy_semaphore);
339 if (p != (ElementInfo *) NULL)
340 policy=(PolicyInfo *) p->value;
343 while (p != (ElementInfo *) NULL)
345 policy=(PolicyInfo *) p->value;
346 if ((domain == UndefinedPolicyDomain) || (policy->domain == domain))
347 if (LocaleCompare(policyname,policy->name) == 0)
351 if (p == (ElementInfo *) NULL)
352 policy=(PolicyInfo *) NULL;
354 (
void) SetHeadElementInLinkedList(policy_cache,p);
355 UnlockSemaphoreInfo(policy_semaphore);
386MagickExport
const PolicyInfo **GetPolicyInfoList(
const char *pattern,
387 size_t *number_policies,ExceptionInfo *exception)
398 assert(pattern != (
char *) NULL);
399 assert(number_policies != (
size_t *) NULL);
400 if (IsEventLogging() != MagickFalse)
401 (void) LogMagickEvent(TraceEvent,GetMagickModule(),
"%s",pattern);
403 if (IsPolicyCacheInstantiated(exception) == MagickFalse)
404 return((
const PolicyInfo **) NULL);
405 policies=(
const PolicyInfo **) AcquireQuantumMemory((
size_t)
406 GetNumberOfElementsInLinkedList(policy_cache)+1UL,
sizeof(*policies));
407 if (policies == (
const PolicyInfo **) NULL)
408 return((
const PolicyInfo **) NULL);
409 LockSemaphoreInfo(policy_semaphore);
410 p=GetHeadElementInLinkedList(policy_cache);
411 for (i=0; p != (ElementInfo *) NULL; )
416 policy=(
const PolicyInfo *)p->value;
417 if ((policy->stealth == MagickFalse) &&
418 (GlobExpression(policy->name,pattern,MagickFalse) != MagickFalse))
419 policies[i++]=policy;
422 UnlockSemaphoreInfo(policy_semaphore);
424 policies=(
const PolicyInfo **) RelinquishMagickMemory((
void*) policies);
426 policies[i]=(PolicyInfo *) NULL;
427 *number_policies=(size_t) i;
459static char *AcquirePolicyString(
const char *source,
const size_t pad)
468 if (source != (
char *) NULL)
469 length+=strlen(source);
470 destination=(
char *) NULL;
473 destination=(
char *) AcquireMagickMemory((length+pad)*
sizeof(*destination));
474 if (destination == (
char *) NULL)
475 ThrowFatalException(ResourceLimitFatalError,
"UnableToAcquireString");
476 if (source != (
char *) NULL)
477 (void) memcpy(destination,source,length*
sizeof(*destination));
478 destination[length]=
'\0';
482MagickExport
char **GetPolicyList(
const char *pattern,
size_t *number_policies,
483 ExceptionInfo *exception)
494 assert(pattern != (
char *) NULL);
495 assert(number_policies != (
size_t *) NULL);
496 if (IsEventLogging() != MagickFalse)
497 (void) LogMagickEvent(TraceEvent,GetMagickModule(),
"%s",pattern);
499 if (IsPolicyCacheInstantiated(exception) == MagickFalse)
500 return((
char **) NULL);
501 policies=(
char **) AcquireQuantumMemory((
size_t)
502 GetNumberOfElementsInLinkedList(policy_cache)+1UL,
sizeof(*policies));
503 if (policies == (
char **) NULL)
504 return((
char **) NULL);
505 LockSemaphoreInfo(policy_semaphore);
506 p=GetHeadElementInLinkedList(policy_cache);
507 for (i=0; p != (ElementInfo *) NULL; )
512 policy=(
const PolicyInfo *) p->value;
513 if ((policy->stealth == MagickFalse) &&
514 (GlobExpression(policy->name,pattern,MagickFalse) != MagickFalse))
515 policies[i++]=AcquirePolicyString(policy->name,1);
518 UnlockSemaphoreInfo(policy_semaphore);
520 policies=(
char **) RelinquishMagickMemory(policies);
522 policies[i]=(
char *) NULL;
523 *number_policies=(size_t) i;
549MagickExport
char *GetPolicyValue(
const char *name)
560 assert(name != (
const char *) NULL);
561 if (IsEventLogging() != MagickFalse)
562 (void) LogMagickEvent(TraceEvent,GetMagickModule(),
"%s",name);
563 exception=AcquireExceptionInfo();
564 policy_info=GetPolicyInfo(name,exception);
565 exception=DestroyExceptionInfo(exception);
566 if (policy_info == (PolicyInfo *) NULL)
567 return((
char *) NULL);
568 value=policy_info->value;
569 if ((value == (
const char *) NULL) || (*value ==
'\0'))
570 return((
char *) NULL);
571 return(AcquirePolicyString(value,1));
597static MagickBooleanType IsPolicyCacheInstantiated(ExceptionInfo *exception)
599 if (policy_cache == (LinkedListInfo *) NULL)
601 GetMaxMemoryRequest();
603 ActivateSemaphoreInfo(&policy_semaphore);
604 LockSemaphoreInfo(policy_semaphore);
605 if (policy_cache == (LinkedListInfo *) NULL)
606 policy_cache=AcquirePolicyCache(PolicyFilename,exception);
607 UnlockSemaphoreInfo(policy_semaphore);
609 return(policy_cache != (LinkedListInfo *) NULL ? MagickTrue : MagickFalse);
640MagickExport MagickBooleanType IsRightsAuthorized(
const PolicyDomain domain,
641 const PolicyRights rights,
const char *pattern)
644 *real_pattern = (
char *) NULL;
659 if ((GetLogEventMask() & PolicyEvent) != 0)
660 (void) LogMagickEvent(PolicyEvent,GetMagickModule(),
661 "Domain: %s; rights=%s; pattern=\"%s\" ...",
662 CommandOptionToMnemonic(MagickPolicyDomainOptions,domain),
663 CommandOptionToMnemonic(MagickPolicyRightsOptions,rights),pattern);
664 exception=AcquireExceptionInfo();
665 policy_info=GetPolicyInfo(
"*",exception);
666 exception=DestroyExceptionInfo(exception);
667 if (policy_info == (PolicyInfo *) NULL)
669 authorized=MagickTrue;
670 LockSemaphoreInfo(policy_semaphore);
671 p=GetHeadElementInLinkedList(policy_cache);
672 while (p != (ElementInfo *) NULL)
677 policy=(
const PolicyInfo *) p->value;
678 if (policy->domain == domain)
680 if ((policy->domain == PathPolicyDomain) &&
681 (real_pattern == (
const char *) NULL))
682 real_pattern=realpath_utf8(pattern);
683 if (real_pattern != (
char*) NULL)
684 match=GlobExpression(real_pattern,policy->pattern,MagickFalse);
686 match=GlobExpression(pattern,policy->pattern,MagickFalse);
687 if (match != MagickFalse)
689 if ((rights & ReadPolicyRights) != 0)
690 authorized=(policy->rights & ReadPolicyRights) != 0 ? MagickTrue :
692 if ((rights & WritePolicyRights) != 0)
693 authorized=(policy->rights & WritePolicyRights) != 0 ?
694 MagickTrue : MagickFalse;
695 if ((rights & ExecutePolicyRights) != 0)
696 authorized=(policy->rights & ExecutePolicyRights) != 0 ?
697 MagickTrue : MagickFalse;
702 UnlockSemaphoreInfo(policy_semaphore);
703 if (real_pattern != (
char *) NULL)
704 real_pattern=DestroyString(real_pattern);
732MagickExport MagickBooleanType ListPolicyInfo(FILE *file,
733 ExceptionInfo *exception)
751 if (file == (
const FILE *) NULL)
753 policy_info=GetPolicyInfoList(
"*",&number_policies,exception);
754 if (policy_info == (
const PolicyInfo **) NULL)
756 path=(
const char *) NULL;
757 for (i=0; i < (ssize_t) number_policies; i++)
759 if (policy_info[i]->stealth != MagickFalse)
761 if (((path == (
const char *) NULL) ||
762 (LocaleCompare(path,policy_info[i]->path) != 0)) &&
763 (policy_info[i]->path != (
char *) NULL))
764 (void) FormatLocaleFile(file,
"\nPath: %s\n",policy_info[i]->path);
765 path=policy_info[i]->path;
766 domain=CommandOptionToMnemonic(MagickPolicyDomainOptions,
767 policy_info[i]->domain);
768 (void) FormatLocaleFile(file,
" Policy: %s\n",domain);
769 if ((policy_info[i]->domain == CachePolicyDomain) ||
770 (policy_info[i]->domain == ResourcePolicyDomain) ||
771 (policy_info[i]->domain == SystemPolicyDomain))
773 if (policy_info[i]->name != (
char *) NULL)
774 (void) FormatLocaleFile(file,
" name: %s\n",policy_info[i]->name);
775 if (policy_info[i]->value != (
char *) NULL)
776 (void) FormatLocaleFile(file,
" value: %s\n",policy_info[i]->value);
780 (void) FormatLocaleFile(file,
" rights: ");
781 if (policy_info[i]->rights == NoPolicyRights)
782 (void) FormatLocaleFile(file,
"None ");
783 if ((policy_info[i]->rights & ReadPolicyRights) != 0)
784 (void) FormatLocaleFile(file,
"Read ");
785 if ((policy_info[i]->rights & WritePolicyRights) != 0)
786 (void) FormatLocaleFile(file,
"Write ");
787 if ((policy_info[i]->rights & ExecutePolicyRights) != 0)
788 (void) FormatLocaleFile(file,
"Execute ");
789 (void) FormatLocaleFile(file,
"\n");
790 if (policy_info[i]->pattern != (
char *) NULL)
791 (void) FormatLocaleFile(file,
" pattern: %s\n",
792 policy_info[i]->pattern);
795 policy_info=(
const PolicyInfo **) RelinquishMagickMemory((
void *)
831static MagickBooleanType LoadPolicyCache(LinkedListInfo *cache,
832 const char *policy,
const char *filename,
const size_t depth,
833 ExceptionInfo *exception)
836 keyword[MagickPathExtent],
854 (void) LogMagickEvent(ConfigureEvent,GetMagickModule(),
855 "Loading policy file \"%s\" ...",filename);
856 if (policy == (
char *) NULL)
859 policy_info=(PolicyInfo *) NULL;
860 token=AcquirePolicyString(policy,MagickPathExtent);
861 extent=strlen(token)+MagickPathExtent;
862 for (q=policy; *q !=
'\0'; )
867 (void) GetNextToken(q,&q,extent,token);
870 (void) CopyMagickString(keyword,token,MagickPathExtent);
871 if (LocaleNCompare(keyword,
"<!DOCTYPE",9) == 0)
876 while ((LocaleNCompare(q,
"]>",2) != 0) && (*q !=
'\0'))
877 (void) GetNextToken(q,&q,extent,token);
880 if (LocaleNCompare(keyword,
"<!--",4) == 0)
885 while ((LocaleNCompare(q,
"->",2) != 0) && (*q !=
'\0'))
886 (void) GetNextToken(q,&q,extent,token);
889 if (LocaleCompare(keyword,
"<include") == 0)
894 while (((*token !=
'/') && (*(token+1) !=
'>')) && (*q !=
'\0'))
896 (void) CopyMagickString(keyword,token,MagickPathExtent);
897 (void) GetNextToken(q,&q,extent,token);
900 (void) GetNextToken(q,&q,extent,token);
901 if (LocaleCompare(keyword,
"file") == 0)
903 if (depth > MagickMaxRecursionDepth)
904 (void) ThrowMagickException(exception,GetMagickModule(),
905 ConfigureError,
"IncludeElementNestedTooDeeply",
"`%s'",token);
909 path[MagickPathExtent],
912 GetPathComponent(filename,HeadPath,path);
914 (void) ConcatenateMagickString(path,DirectorySeparator,
916 if (*token == *DirectorySeparator)
917 (void) CopyMagickString(path,token,MagickPathExtent);
919 (
void) ConcatenateMagickString(path,token,MagickPathExtent);
920 file_xml=FileToXML(path,~0UL);
921 if (file_xml != (
char *) NULL)
923 status&=(MagickStatusType) LoadPolicyCache(cache,file_xml,
924 path,depth+1,exception);
925 file_xml=DestroyString(file_xml);
932 if (LocaleCompare(keyword,
"<policy") == 0)
937 policy_info=(PolicyInfo *) AcquireCriticalMemory(
sizeof(*policy_info));
938 (void) memset(policy_info,0,
sizeof(*policy_info));
939 policy_info->path=AcquirePolicyString(filename,1);
940 policy_info->exempt=MagickFalse;
941 policy_info->signature=MagickCoreSignature;
944 if (policy_info == (PolicyInfo *) NULL)
946 if ((LocaleCompare(keyword,
"/>") == 0) ||
947 (LocaleCompare(keyword,
"</policy>") == 0))
949 status=AppendValueToLinkedList(cache,policy_info);
950 if (status == MagickFalse)
951 (void) ThrowMagickException(exception,GetMagickModule(),
952 ResourceLimitError,
"MemoryAllocationFailed",
"`%s'",
954 policy_info=(PolicyInfo *) NULL;
957 (void) GetNextToken(q,(
const char **) NULL,extent,token);
960 (void) GetNextToken(q,&q,extent,token);
961 (void) GetNextToken(q,&q,extent,token);
967 if (LocaleCompare((
char *) keyword,
"domain") == 0)
969 policy_info->domain=(PolicyDomain) ParseCommandOption(
970 MagickPolicyDomainOptions,MagickTrue,token);
978 if (LocaleCompare((
char *) keyword,
"name") == 0)
980 policy_info->name=AcquirePolicyString(token,1);
988 if (LocaleCompare((
char *) keyword,
"pattern") == 0)
990 policy_info->pattern=AcquirePolicyString(token,1);
998 if (LocaleCompare((
char *) keyword,
"rights") == 0)
1000 policy_info->rights=(PolicyRights) ParseCommandOption(
1001 MagickPolicyRightsOptions,MagickTrue,token);
1009 if (LocaleCompare((
char *) keyword,
"stealth") == 0)
1011 policy_info->stealth=IsStringTrue(token);
1019 if (LocaleCompare((
char *) keyword,
"value") == 0)
1021 policy_info->value=AcquirePolicyString(token,1);
1030 token=(
char *) RelinquishMagickMemory(token);
1031 return(status != 0 ? MagickTrue : MagickFalse);
1052MagickPrivate MagickBooleanType PolicyComponentGenesis(
void)
1055 policy_semaphore=AcquireSemaphoreInfo();
1078static void *DestroyPolicyElement(
void *policy_info)
1083 p=(PolicyInfo *) policy_info;
1084 if (p->exempt == MagickFalse)
1086 if (p->value != (
char *) NULL)
1087 p->value=DestroyString(p->value);
1088 if (p->pattern != (
char *) NULL)
1089 p->pattern=DestroyString(p->pattern);
1090 if (p->name != (
char *) NULL)
1091 p->name=DestroyString(p->name);
1092 if (p->path != (
char *) NULL)
1093 p->path=DestroyString(p->path);
1095 p=(PolicyInfo *) RelinquishMagickMemory(p);
1096 return((
void *) NULL);
1099MagickPrivate
void PolicyComponentTerminus(
void)
1102 ActivateSemaphoreInfo(&policy_semaphore);
1103 LockSemaphoreInfo(policy_semaphore);
1104 if (policy_cache != (LinkedListInfo *) NULL)
1105 policy_cache=DestroyLinkedList(policy_cache,DestroyPolicyElement);
1106 UnlockSemaphoreInfo(policy_semaphore);
1107 RelinquishSemaphoreInfo(&policy_semaphore);
1137static MagickBooleanType ValidateSecurityPolicy(
const char *policy,
1138 const char *url,ExceptionInfo *exception)
1140#if defined(MAGICKCORE_XML_DELEGATE)
1147 document=xmlReadMemory(policy,(
int) strlen(policy),url,NULL,
1148 XML_PARSE_NOERROR | XML_PARSE_NOWARNING);
1149 if (document == (xmlDocPtr) NULL)
1151 (void) ThrowMagickException(exception,GetMagickModule(),ConfigureError,
1152 "PolicyValidationException",
"'%s'",url);
1153 return(MagickFalse);
1155 xmlFreeDoc(document);
1164MagickExport MagickBooleanType SetMagickSecurityPolicy(
const char *policy,
1165 ExceptionInfo *exception)
1179 assert(exception != (ExceptionInfo *) NULL);
1180 if (policy == (
const char *) NULL)
1181 return(MagickFalse);
1182 if (ValidateSecurityPolicy(policy,PolicyFilename,exception) == MagickFalse)
1183 return(MagickFalse);
1184 status=LoadPolicyCache(policy_cache,policy,
"[user-policy]",0,exception);
1185 if (status == MagickFalse)
1190 user_policies=NewLinkedList(0);
1191 status=LoadPolicyCache(user_policies,policy,
"[user-policy]",0,exception);
1192 if (status == MagickFalse)
1194 user_policies=DestroyLinkedList(user_policies,DestroyPolicyElement);
1195 return(MagickFalse);
1197 ResetLinkedListIterator(user_policies);
1198 p=(PolicyInfo *) GetNextValueInLinkedList(user_policies);
1199 while (p != (PolicyInfo *) NULL)
1201 if ((p->name != (
char *) NULL) && (p->value != (
char *) NULL))
1202 (void) SetMagickSecurityPolicyValue(p->domain,p->name,p->value,exception);
1203 p=(PolicyInfo *) GetNextValueInLinkedList(user_policies);
1205 user_policies=DestroyLinkedList(user_policies,DestroyPolicyElement);
1242MagickExport MagickBooleanType SetMagickSecurityPolicyValue(
1243 const PolicyDomain domain,
const char *name,
const char *value,
1244 ExceptionInfo *exception)
1246 magick_unreferenced(exception);
1247 assert(exception != (ExceptionInfo *) NULL);
1248 if ((name == (
const char *) NULL) || (value == (
const char *) NULL))
1249 return(MagickFalse);
1252 case CachePolicyDomain:
1254 if (LocaleCompare(name,
"memory-map") == 0)
1256 if (LocaleCompare(value,
"anonymous") != 0)
1257 return(MagickFalse);
1258 ResetCacheAnonymousMemory();
1259 ResetStreamAnonymousMemory();
1264 case ResourcePolicyDomain:
1269 type=ParseCommandOption(MagickResourceOptions,MagickFalse,name);
1275 limit=MagickResourceInfinity;
1276 if (LocaleCompare(
"unlimited",value) != 0)
1277 limit=StringToMagickSizeType(value,100.0);
1278 if ((ResourceType) type == TimeResource)
1279 limit=(MagickSizeType) ParseMagickTimeToLive(value);
1280 return(SetMagickResourceLimit((ResourceType) type,limit));
1284 case SystemPolicyDomain:
1286 if (LocaleCompare(name,
"max-memory-request") == 0)
1291 limit=MagickResourceInfinity;
1292 if (LocaleCompare(
"unlimited",value) != 0)
1293 limit=StringToMagickSizeType(value,100.0);
1294 SetMaxMemoryRequest(limit);
1297 if (LocaleCompare(name,
"max-profile-size") == 0)
1302 limit=MagickResourceInfinity;
1303 if (LocaleCompare(
"unlimited",value) != 0)
1304 limit=StringToMagickSizeType(value,100.0);
1305 SetMaxProfileSize(limit);
1308 if (LocaleCompare(name,
"memory-map") == 0)
1310 if (LocaleCompare(value,
"anonymous") != 0)
1311 return(MagickFalse);
1312 ResetVirtualAnonymousMemory();
1315 if (LocaleCompare(name,
"precision") == 0)
1320 limit=StringToInteger(value);
1321 SetMagickPrecision(limit);
1326 case CoderPolicyDomain:
1327 case DelegatePolicyDomain:
1328 case FilterPolicyDomain:
1329 case ModulePolicyDomain:
1330 case PathPolicyDomain:
1334 return(MagickFalse);