GNOME Bugzilla – Bug 792922
Avoid SIGSYS when extracting metadata from non-native GVfs URIs
Last modified: 2018-01-26 11:30:13 UTC
tracker-extract receives a SIGSYS if you try to extract metadata from a file, not a directory, represented by a non-native GVfs URI. eg., this: $ tracker index -f gphoto2://.../path/to/a/JPEG Note that non-native directories can't be indexed due to different reasons. See bug 792337 This is because GDaemonFile, GVfs' implementation of GFile, uses GCredentials which in turn uses getegid and that is blocked by our seccomp filter. For some reason, if you instead go through GVfs' FUSE emulation then GCredentials isn't used. I haven't dug deep enough to know why that is. eg., this works: $ tracker index -f /var/run/user/1000/gvfs/.../path/to/a/JPEG
Created attachment 367464 [details] [review] libtracker-miners-common: Allow GCredentials to work
Comment on attachment 367464 [details] [review] libtracker-miners-common: Allow GCredentials to work Let's keep up with the whack-a-mole game :). I think it makes sense to also add getegid32 because that will probably get used on other arches. Feel free to push after adding it.
Created attachment 367471 [details] [review] libtracker-miners-common: Allow GCredentials to work
Comment on attachment 367471 [details] [review] libtracker-miners-common: Allow GCredentials to work Pushed to master after adding getegid32. Thanks!