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

Re: Bug#179125: maintainer scripts tries to exec script in /tmp



Quoting Oliver Elphick <olly@lfix.co.uk>:

> On Mon, 2003-02-03 at 12:07, Thomas Wouters wrote:
> > On Mon, Feb 03, 2003 at 11:00:58AM +0000, Oliver Elphick wrote:
> > 
> > > A temporary script needs to be somewhere, and /tmp is guaranteed to
> > > exist and to be available for temporary files.  I don't see how making
> > > its contents non-executable contributes anything to security; no-one
> has
> > > /tmp in their path, I hope!
> > 
> > I assume you can still do 'interpreter ${TMPDIR}/${tmpfile}' to execute it
> ?
> 
> Not easily, because it is passed to start-stop-daemon.  That was the
> reason for writing a separate file in the first place.

Am I correct in thinking this tempfile is generated in the init script?

I am curious what extraordinary things you must be doing for this program that
it requires a temporary executable to be written and removed each time the init
script is called.

Jamie



Reply to: