GNOME Bugzilla – Bug 785238
Throw a fit if outdir is not empty
Last modified: 2017-08-22 11:12:00 UTC
When thumbnailing in a sandbox, we should complain loudly and fail when thumbnailers through forgetfulness or malice, leave files in the output directory that aren't the thumbnail file we're expecting. This could be temporary working files, or malicious files left there for another part of the system to choke on.
Created attachment 358133 [details] [review] thumbnail: Throw a warning if thumbnailer leaves dangling files When running sandboxed, we could make use "--tmpfs /tmp" to make /tmp disappear along with the thumbnailer, but that would just paper over the fact that those same discarded temporary files would be left in /tmp (RAM if tmpfs) when not sandboxed. So warn about badly behaved thumbnailers.
Attachment 358133 [details] pushed as 842b59a - thumbnail: Throw a warning if thumbnailer leaves dangling files