From: =?utf-8?q?Bastien_Roucari=C3=A8s?= Date: Sat, 21 Oct 2023 14:11:43 +0000 Subject: Add a debian policy Install also other policy --- config/Makefile.am | 1 + config/{policy-open.xml => policy-debian.xml} | 22 ++++++++++++---------- configure.ac | 6 +++--- 3 files changed, 16 insertions(+), 13 deletions(-) copy config/{policy-open.xml => policy-debian.xml} (92%) Index: imagemagick/config/Makefile.am =================================================================== --- imagemagick.orig/config/Makefile.am 2026-07-07 10:22:10.188962167 +0200 +++ imagemagick/config/Makefile.am 2026-07-07 10:22:10.185766516 +0200 @@ -62,6 +62,7 @@ config/locale.xml \ config/log.xml \ config/mime.xml \ + config/policy-debian.xml \ config/policy-limited.xml \ config/policy-open.xml \ config/policy-secure.xml \ Index: imagemagick/config/policy-debian.xml =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 +++ imagemagick/config/policy-debian.xml 2026-07-07 10:22:10.185900146 +0200 @@ -0,0 +1,162 @@ + + + + + + + + + + + +]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Index: imagemagick/configure.ac =================================================================== --- imagemagick.orig/configure.ac 2026-07-07 10:22:10.188962167 +0200 +++ imagemagick/configure.ac 2026-07-07 10:22:10.186178270 +0200 @@ -837,10 +837,10 @@ [m4_define([MAGICK_SECURITY_POLICY_DEFAULT], [m4_if($1, limited, limited, m4_if($1, secure, secure, open))])dnl AC_MSG_CHECKING([which variant of security policy to enforce]) AC_ARG_WITH([security-policy], - [AS_HELP_STRING([--with-security-policy=open|limited|secure|websafe], + [AS_HELP_STRING([--with-security-policy=open|limited|secure|websafe|debian], [security policy variant to enforce, @<:@default=]MAGICK_SECURITY_POLICY_DEFAULT[@:>@.])], [case $withval in - open|limited|secure|websafe) + open|limited|secure|websafe|debian) security_policy=$withval ;; *) @@ -854,7 +854,7 @@ AC_MSG_RESULT([$security_policy]) ]) # MAGICK_SECURITY_POLICY -_MAGICK_SECURITY_POLICY([open]) +_MAGICK_SECURITY_POLICY([debian]) AC_SUBST([MAGICK_SECURITY_POLICY]) # Disable/Enable support for full delegate paths