Re: Question on os.tempnam() vulnerability
- From: Grant Edwards <grante@xxxxxxxx>
- Date: Sat, 05 Jan 2008 16:13:22 -0000
On 2008-01-05, Martin v. Löwis <martin@xxxxxxxxxxx> wrote:
I know. That's the point of my question: how do you do that
under Windows?
When you create a new process, you have the option to inherit
file handles to the new process. So the parent should open the
file, and then inherit the handle to the new process.
That's an answer, though not for the question I asked. The
program that's being run requires a that it be passed a
filename on the command-line.
I'm not writing the program that is to open the file. If I
were, I'd just make it a python module and call it instead of
running it in a separate process.
IOW, it's the same approach as on Unix.
Not really. Under Unix you can safely create a temp file with
a name that can be used to open the file. I asked about a way
to do that under Windows as well.
--
Grant Edwards grante Yow! ... I live in a
at FUR-LINE FALLOUT SHELTER
visi.com
.
- Follow-Ups:
- Re: Question on os.tempnam() vulnerability
- From: Fredrik Lundh
- Re: Question on os.tempnam() vulnerability
- From: "Martin v. Löwis"
- Re: Question on os.tempnam() vulnerability
- References:
- Question on os.tempnam() vulnerability
- From: cameronwong88@xxxxxxxxx
- Re: Question on os.tempnam() vulnerability
- From: Fredrik Lundh
- Re: Question on os.tempnam() vulnerability
- From: Grant Edwards
- Re: Question on os.tempnam() vulnerability
- From: Jarek Zgoda
- Re: Question on os.tempnam() vulnerability
- From: Grant Edwards
- Re: Question on os.tempnam() vulnerability
- From: "Martin v. Löwis"
- Question on os.tempnam() vulnerability
- Prev by Date: Re: Fortran to Python
- Next by Date: Re: fastest method to choose a random element
- Previous by thread: Re: Question on os.tempnam() vulnerability
- Next by thread: Re: Question on os.tempnam() vulnerability
- Index(es):
Relevant Pages
|