We use automated configuration management for all our config files. So we use augeas to add/remove some features to .xml files.
We recently tried to add a restriction into policy.xml like this:
/etc/ImageMagic/policy.xml:
Code: Select all
<policy domain="resource" name="disk" value="512MiB"></policy>
But this limit was surprisingly not used by 'convert':
Code: Select all
convert -list resource
File Area Memory Map Disk Thread Time
-------------------------------------------------------------------------------
768 12.511GB 5.826GiB 11.652GiB unlimited 6 unlimited
Code: Select all
<policy domain="resource" name="disk" value="512MiB"/>
Code: Select all
convert -list resource
File Area Memory Map Disk Thread Time
-------------------------------------------------------------------------------
768 12.511GB 5.826GiB 11.652GiB 512MiB 6 unlimited