[Tracker] Bad use of /tmp



Hello,


currently trackerd makes a ".Tracker" directory in /tmp and populates it
with /home/laurent/cache (for instance) where cache is used by SQLite3.

The "/tmp/.Tracker" directory is owned by its creator and forbids access
to any foreigner. I think you see what happens when an user wants to run
another trackerd on the same machine and at the same time...

So I propose a patch to let trackerd use directory
"/tmp/Tracker-user.num" (yes, it is not ".Tracker" but "Tracker", I
don't like shadowed files in /tmp) where "user" is the name of the
current logged user and "num" a random integer.
This patch also completely remove the directory in /tmp when trackerd
exits.


And I thank Nicolas Caniart who pointed me out problems with trackerd
and /tmp.


Laurent.

Attachment: fix-for-tmp-dir.diff.gz
Description: GNU Zip compressed data



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]