Subject: Re: Bug#86747: [ecasound] Fw: Bug#86747: ecawave: insecure and broken tmp-file handling
From: Kai Vehmanen (firstname.lastname@example.org)
Date: Wed Mar 21 2001 - 21:12:55 EET
On Tue, 27 Feb 2001, Junichi Uekawa wrote:
> I would rather have $TMPDIR/ecawave-$USER-clipboard.wav
> I like the same clipboard file being used in consecutive
> invocations of ecawave, and I also don't want to have
> the file lying around forever in my home directory...
This hasn't turned out to be quite a difficult problem. I will probably
solve this by adding a separate tempfile class to libkvutils, which will
offer the necessary services. To avoid symlink problems, all
ecasound/ecawave tempfiles will be created into their own subdirectories
This will also affect ecawave's clipboard. By default, it will go to
/$TMPDIR/ecawave-user/clipboard.wav. This way it can still be used by
multiple instances of ecawave. As temp directories are remove only if
they are empty when ecasound/ecawave exits, it's possible to have a
persistant clipboard. I will probably add a "clean clipboard" command,
that will make sure that also the temp directory is removed.
Of course with other uses of tempfiles (cs-edit for instance), the
files will be unique for each program instance.
PS If you have any hints or other info on how to implement the
tmp directory routines securely, I'm interested. :)
-- http://www.eca.cx Audio software for Linux!
-- To unsubscribe send message 'unsubscribe' in the body of the message to <email@example.com>.
This archive was generated by hypermail 2b28 : Wed Mar 21 2001 - 21:27:33 EET