Red Hat Bugzilla – Bug 498733
Make it easy to grab uqm content once and have it available for all users
Last modified: 2010-04-28 12:28:37 EDT
Description of problem:
When I run uqm it downs a significant amount of content (over 100MB) and places it in my home directory. If another user wants to also play the game the content gets downloaded again. Looking at the script that gets run and available options on the real uqm binary, it looks like I will be able to figure out where to copy the data to and change the script to start uqm pointing to the shared location for the data rather than the home directory.
It would be nice if the figuring out part could be skipped. Maybe detect that the initial script is being run as root and download into a shared area instead of a home directory (and probably not actually start the game). The script could also be modified to check if there is an existing copy of the correct version in the shared area or the home directory before trying to downlaod a copy.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component.
I don't think this is feasible. In almost no case will a user be running uqm as root (please $_DEITY let that be true), and the alternative would be to port autodownloaded to C++, since I don't think setuid root python scripts are possible. I agree that this would be highly valuable on multiuser systems, but I can't think of a good way to do it.
Or, I suppose we could create a common directory for autodownloader to download to that any user could write to, but then a malicious user could remove the data or replace it with malicious data. Farfetched, but it makes me nervous.