Does anyone know what exactly happens behind the scenes when Mac OS X checks the disk image file (.dmg)? Is there a way to extend or customize the procedure?
EDIT: I would like to create a disk image that verifies that it is doing exactly what it should do, and nothing more. For example, if I distribute some password management software, an attacker could modify my package to send passwords to an unreasonable third party. For the end user, the functionality will be identical to my program, and they will never know that the package was sabotaged. I would like to perform this check during mount.
source share