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 PolicyComponentGenesis(
void);
41extern MagickPrivate
void
42 PolicyComponentTerminus(
void);
44static inline MagickBooleanType IsPathAuthorized(
const PolicyRights rights,
47 MagickBooleanType status =
48 ((IsRightsAuthorized(PathPolicyDomain,rights,filename) != MagickFalse) &&
49 ((IsRightsAuthorizedByName(SystemPolicyDomain,
"symlink",rights,
"follow") != MagickFalse) ||
50 (is_symlink_utf8(filename) == MagickFalse))) ? MagickTrue : MagickFalse;
54#if defined(__cplusplus) || defined(c_plusplus)