Lines Matching refs:policy_info

207       *policy_info;  in AcquirePolicyCache()  local
213 policy_info=(PolicyInfo *) AcquireMagickMemory(sizeof(*policy_info)); in AcquirePolicyCache()
214 if (policy_info == (PolicyInfo *) NULL) in AcquirePolicyCache()
220 (void) ResetMagickMemory(policy_info,0,sizeof(*policy_info)); in AcquirePolicyCache()
221 policy_info->path=(char *) "[built-in]"; in AcquirePolicyCache()
222 policy_info->domain=p->domain; in AcquirePolicyCache()
223 policy_info->rights=p->rights; in AcquirePolicyCache()
224 policy_info->name=(char *) p->name; in AcquirePolicyCache()
225 policy_info->pattern=(char *) p->pattern; in AcquirePolicyCache()
226 policy_info->value=(char *) p->value; in AcquirePolicyCache()
227 policy_info->exempt=MagickTrue; in AcquirePolicyCache()
228 policy_info->signature=MagickCoreSignature; in AcquirePolicyCache()
229 status&=AppendValueToLinkedList(cache,policy_info); in AcquirePolicyCache()
232 ResourceLimitError,"MemoryAllocationFailed","`%s'",policy_info->name); in AcquirePolicyCache()
485 *policy_info; in GetPolicyValue() local
493 policy_info=GetPolicyInfo(name,exception); in GetPolicyValue()
495 if (policy_info == (PolicyInfo *) NULL) in GetPolicyValue()
497 value=policy_info->value; in GetPolicyValue()
572 *policy_info; in IsRightsAuthorized() local
588 policy_info=GetPolicyInfo("*",exception); in IsRightsAuthorized()
590 if (policy_info == (PolicyInfo *) NULL) in IsRightsAuthorized()
649 **policy_info; in ListPolicyInfo() local
662 policy_info=GetPolicyInfoList("*",&number_policies,exception); in ListPolicyInfo()
663 if (policy_info == (const PolicyInfo **) NULL) in ListPolicyInfo()
668 if (policy_info[i]->stealth != MagickFalse) in ListPolicyInfo()
671 (LocaleCompare(path,policy_info[i]->path) != 0)) && in ListPolicyInfo()
672 (policy_info[i]->path != (char *) NULL)) in ListPolicyInfo()
673 (void) FormatLocaleFile(file,"\nPath: %s\n",policy_info[i]->path); in ListPolicyInfo()
674 path=policy_info[i]->path; in ListPolicyInfo()
676 policy_info[i]->domain); in ListPolicyInfo()
678 if ((policy_info[i]->domain == CachePolicyDomain) || in ListPolicyInfo()
679 (policy_info[i]->domain == ResourcePolicyDomain) || in ListPolicyInfo()
680 (policy_info[i]->domain == SystemPolicyDomain)) in ListPolicyInfo()
682 if (policy_info[i]->name != (char *) NULL) in ListPolicyInfo()
683 (void) FormatLocaleFile(file," name: %s\n",policy_info[i]->name); in ListPolicyInfo()
684 if (policy_info[i]->value != (char *) NULL) in ListPolicyInfo()
685 (void) FormatLocaleFile(file," value: %s\n",policy_info[i]->value); in ListPolicyInfo()
690 if (policy_info[i]->rights == NoPolicyRights) in ListPolicyInfo()
692 if ((policy_info[i]->rights & ReadPolicyRights) != 0) in ListPolicyInfo()
694 if ((policy_info[i]->rights & WritePolicyRights) != 0) in ListPolicyInfo()
696 if ((policy_info[i]->rights & ExecutePolicyRights) != 0) in ListPolicyInfo()
699 if (policy_info[i]->pattern != (char *) NULL) in ListPolicyInfo()
701 policy_info[i]->pattern); in ListPolicyInfo()
704 policy_info=(const PolicyInfo **) RelinquishMagickMemory((void *) in ListPolicyInfo()
705 policy_info); in ListPolicyInfo()
754 *policy_info; in LoadPolicyCache() local
767 policy_info=(PolicyInfo *) NULL; in LoadPolicyCache()
845 policy_info=(PolicyInfo *) AcquireMagickMemory(sizeof(*policy_info)); in LoadPolicyCache()
846 if (policy_info == (PolicyInfo *) NULL) in LoadPolicyCache()
848 (void) ResetMagickMemory(policy_info,0,sizeof(*policy_info)); in LoadPolicyCache()
849 policy_info->path=ConstantString(filename); in LoadPolicyCache()
850 policy_info->exempt=MagickFalse; in LoadPolicyCache()
851 policy_info->signature=MagickCoreSignature; in LoadPolicyCache()
854 if (policy_info == (PolicyInfo *) NULL) in LoadPolicyCache()
858 status=AppendValueToLinkedList(cache,policy_info); in LoadPolicyCache()
862 policy_info->name); in LoadPolicyCache()
863 policy_info=(PolicyInfo *) NULL; in LoadPolicyCache()
878 policy_info->domain=(PolicyDomain) ParseCommandOption( in LoadPolicyCache()
889 policy_info->name=ConstantString(token); in LoadPolicyCache()
899 policy_info->pattern=ConstantString(token); in LoadPolicyCache()
909 policy_info->rights=(PolicyRights) ParseCommandOption( in LoadPolicyCache()
920 policy_info->stealth=IsStringTrue(token); in LoadPolicyCache()
930 policy_info->value=ConstantString(token); in LoadPolicyCache()
987 static void *DestroyPolicyElement(void *policy_info) in DestroyPolicyElement() argument
992 p=(PolicyInfo *) policy_info; in DestroyPolicyElement()