On 5/22/19 5:25 AM, Daniel P. Berrangé wrote: > On Wed, May 22, 2019 at 11:00:04AM +0200, Fabiano Fidêncio wrote: >> People, >> >> https://gitlab.com/libosinfo/libosinfo/issues/30 brought up an >> interesting fact that I wasn't aware of and may have some negative >> impact on libosinfo consumers. >> >> Basically, GVfs requires access to the session bus (which, by deafult, >> is private and does not accept connections of any other user apart >> from the one that owns the bus), causing any call made to >> `osinfo_{tree,media}_create_from_location()` and any operation of >> osinfo-db-import and osinfo-detect relying on gvfsd-http to *not* work >> when called using sudo/su. >> >> Cole already stated that it could be blocker for virt-install to every >> fully depend on libosinfo as `sudo virt-install ...` should just work. >> >> Now, what are the options we have? (No, this is not a rethorical question ...) >> >> There are a few things that come to my mind: >> - Stop relying on GVfs for anything that's not local and implement the >> `http://` on our side; > > Reluctantly that is probably the best option we have :-( > Yeah it's too bad but I think it's the way to go. Thankfully our needs for fetching http/ftp content should be pretty simple, .treeinfo files are small - Cole _______________________________________________ Libosinfo mailing list Libosinfo@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libosinfo