Lines Matching refs:policy_info

215       *policy_info;  in AcquirePolicyCache()  local
221 policy_info=(PolicyInfo *) AcquireMagickMemory(sizeof(*policy_info)); in AcquirePolicyCache()
222 if (policy_info == (PolicyInfo *) NULL) in AcquirePolicyCache()
228 (void) memset(policy_info,0,sizeof(*policy_info)); in AcquirePolicyCache()
229 policy_info->path=(char *) "[built-in]"; in AcquirePolicyCache()
230 policy_info->domain=p->domain; in AcquirePolicyCache()
231 policy_info->rights=p->rights; in AcquirePolicyCache()
232 policy_info->name=(char *) p->name; in AcquirePolicyCache()
233 policy_info->pattern=(char *) p->pattern; in AcquirePolicyCache()
234 policy_info->value=(char *) p->value; in AcquirePolicyCache()
235 policy_info->exempt=MagickTrue; in AcquirePolicyCache()
236 policy_info->signature=MagickCoreSignature; in AcquirePolicyCache()
237 status&=AppendValueToLinkedList(cache,policy_info); in AcquirePolicyCache()
240 ResourceLimitError,"MemoryAllocationFailed","`%s'",policy_info->name); in AcquirePolicyCache()
511 *policy_info; in GetPolicyValue() local
519 policy_info=GetPolicyInfo(name,exception); in GetPolicyValue()
521 if (policy_info == (PolicyInfo *) NULL) in GetPolicyValue()
523 value=policy_info->value; in GetPolicyValue()
598 *policy_info; in IsRightsAuthorized() local
614 policy_info=GetPolicyInfo("*",exception); in IsRightsAuthorized()
616 if (policy_info == (PolicyInfo *) NULL) in IsRightsAuthorized()
675 **policy_info; in ListPolicyInfo() local
688 policy_info=GetPolicyInfoList("*",&number_policies,exception); in ListPolicyInfo()
689 if (policy_info == (const PolicyInfo **) NULL) in ListPolicyInfo()
694 if (policy_info[i]->stealth != MagickFalse) in ListPolicyInfo()
697 (LocaleCompare(path,policy_info[i]->path) != 0)) && in ListPolicyInfo()
698 (policy_info[i]->path != (char *) NULL)) in ListPolicyInfo()
699 (void) FormatLocaleFile(file,"\nPath: %s\n",policy_info[i]->path); in ListPolicyInfo()
700 path=policy_info[i]->path; in ListPolicyInfo()
702 policy_info[i]->domain); in ListPolicyInfo()
704 if ((policy_info[i]->domain == CachePolicyDomain) || in ListPolicyInfo()
705 (policy_info[i]->domain == ResourcePolicyDomain) || in ListPolicyInfo()
706 (policy_info[i]->domain == SystemPolicyDomain)) in ListPolicyInfo()
708 if (policy_info[i]->name != (char *) NULL) in ListPolicyInfo()
709 (void) FormatLocaleFile(file," name: %s\n",policy_info[i]->name); in ListPolicyInfo()
710 if (policy_info[i]->value != (char *) NULL) in ListPolicyInfo()
711 (void) FormatLocaleFile(file," value: %s\n",policy_info[i]->value); in ListPolicyInfo()
716 if (policy_info[i]->rights == NoPolicyRights) in ListPolicyInfo()
718 if ((policy_info[i]->rights & ReadPolicyRights) != 0) in ListPolicyInfo()
720 if ((policy_info[i]->rights & WritePolicyRights) != 0) in ListPolicyInfo()
722 if ((policy_info[i]->rights & ExecutePolicyRights) != 0) in ListPolicyInfo()
725 if (policy_info[i]->pattern != (char *) NULL) in ListPolicyInfo()
727 policy_info[i]->pattern); in ListPolicyInfo()
730 policy_info=(const PolicyInfo **) RelinquishMagickMemory((void *) in ListPolicyInfo()
731 policy_info); in ListPolicyInfo()
780 *policy_info; in LoadPolicyCache() local
793 policy_info=(PolicyInfo *) NULL; in LoadPolicyCache()
871 policy_info=(PolicyInfo *) AcquireCriticalMemory(sizeof(*policy_info)); in LoadPolicyCache()
872 (void) memset(policy_info,0,sizeof(*policy_info)); in LoadPolicyCache()
873 policy_info->path=ConstantString(filename); in LoadPolicyCache()
874 policy_info->exempt=MagickFalse; in LoadPolicyCache()
875 policy_info->signature=MagickCoreSignature; in LoadPolicyCache()
878 if (policy_info == (PolicyInfo *) NULL) in LoadPolicyCache()
883 status=AppendValueToLinkedList(cache,policy_info); in LoadPolicyCache()
887 policy_info->name); in LoadPolicyCache()
888 policy_info=(PolicyInfo *) NULL; in LoadPolicyCache()
903 policy_info->domain=(PolicyDomain) ParseCommandOption( in LoadPolicyCache()
914 policy_info->name=ConstantString(token); in LoadPolicyCache()
924 policy_info->pattern=ConstantString(token); in LoadPolicyCache()
934 policy_info->rights=(PolicyRights) ParseCommandOption( in LoadPolicyCache()
945 policy_info->stealth=IsStringTrue(token); in LoadPolicyCache()
955 policy_info->value=ConstantString(token); in LoadPolicyCache()
1012 static void *DestroyPolicyElement(void *policy_info) in DestroyPolicyElement() argument
1017 p=(PolicyInfo *) policy_info; in DestroyPolicyElement()