18 #ifndef MAGICKCORE_POLICY_PRIVATE_H 19 #define MAGICKCORE_POLICY_PRIVATE_H 21 #if defined(__cplusplus) || defined(c_plusplus) 25 #include "magick/utility-private.h" 27 #if MAGICKCORE_ZERO_CONFIGURATION_SUPPORT 33 *ZeroConfigurationPolicy = \
38 static inline MagickBooleanType IsPathAuthorized(
const PolicyRights rights,
41 MagickBooleanType status =
42 ((IsRightsAuthorized(PathPolicyDomain,rights,filename) != MagickFalse) &&
43 ((IsRightsAuthorizedByName(SystemPolicyDomain,
"symlink",rights,
"follow") != MagickFalse) ||
44 (is_symlink_utf8(filename) == MagickFalse))) ? MagickTrue : MagickFalse;
48 #if defined(__cplusplus) || defined(c_plusplus)