18#ifndef MAGICKCORE_POLICY_PRIVATE_H
19#define MAGICKCORE_POLICY_PRIVATE_H
21#if defined(__cplusplus) || defined(c_plusplus)
25#include "MagickCore/utility-private.h"
27#if MAGICKCORE_ZERO_CONFIGURATION_SUPPORT
33 *ZeroConfigurationPolicy = \
38extern MagickPrivate MagickBooleanType
39 IsRightsAuthorizedByName(
const PolicyDomain,
const char *,
const PolicyRights,
41 PolicyComponentGenesis(
void);
43extern MagickPrivate
void
44 PolicyComponentTerminus(
void);
46static inline MagickBooleanType IsPathAuthorized(
const PolicyRights rights,
49 MagickBooleanType status =
50 ((IsRightsAuthorized(PathPolicyDomain,rights,filename) != MagickFalse) &&
51 ((IsRightsAuthorizedByName(SystemPolicyDomain,
"symlink",rights,
"follow") != MagickFalse) ||
52 (is_symlink_utf8(filename) == MagickFalse))) ? MagickTrue : MagickFalse;
56#if defined(__cplusplus) || defined(c_plusplus)