Comment 9 for bug 1952763

Revision history for this message
Chris Halse Rogers (raof) wrote :

Some questions:
/etc/manila/policy.json is a conffile, so the usual conffile handling stuff should be done - either mv_conffile or rm_conffile from dpkg-maintscript-helper or (since impish has a new-enough dpkg) use the new remove-on-upgrade flag in deb-conffiles.

Since policy.json *is* a conffile, it could have been modified by the user. Is it the case that *any* policy.json file would result in the package failing to work, or would some user-modified configurations work? Particularly since this seems to be security related, I feel we should be cautious.

I suggest that if *any* policy.json file would result in a non-working package we should be removing policy.json if it is unmodified (rather than renaming it), and maybe throwing up a debconf warning if it has been modified?

If some user-modified policy.json could be expected to work, can we detect whether it will or not?