In HAL 0.4.7 (and probably earlier versions as well), the file /usr/share/hal/fdi/90defaultpolicy/storage-policy.fdi, which defines the mount options used to attach removable media to the filesystem, sets the 'exec' option on the media by default. For security reasons, this is not a very good idea, and the following micropatch may need applying: --- storage-policy.fdi 2005-02-08 10:04:15.712243769 +0100 +++ storage-policy.fdi.safe 2005-02-08 10:04:06.608035379 +0100 @@ -15 +15 @@ - <merge key="storage.policy.default.mount_option.exec" type="bool">true</merge> + <merge key="storage.policy.default.mount_option.noexec" type="bool">true</merge> Reproducible: Always Steps to Reproduce: 1. 2. 3.
Hmm, not sure about this - foser?
Actually I disagree and this has been discussed on the HAL mailing list AFAIK and they too disagreed. So I'm closing out the issue. It's been present in all HAL versions. I would take it up with UPSTREAM if you want it changed.