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

Re: DebConf-ing Apache Modules



On Sun, Aug 12, 2001 at 07:14:21PM +0200, Stefan Hornburg (Racke) wrote:
> Joey Hess <joey@kitenet.net> writes:
> 
> > Gregor Hoffleit wrote:
> > > The preinst's of all packages added their name to the choices of the
> > > shared select variable, and the postinst's removed this packages's name.
> > > 
> > > Each postinst would look if it's the last package in the choices list.
> > > If it was, that would mean that it's the last Zope/Apache module package
> > > that's installed in that apt run. Then, this package should care to
> > > restart the Zope/Apache server.
> > 
> > Wow, pretty slick. It does feel like a mild abuse of debconf -- writing
> > to a temp file would work just as well.
> 
> How can we do this in a secure manner ? If we create the temp file
> with mktemp, we have to communicate this name. Otherwise where
> should we place this temp file. 

Creating temp files securely _AS ROOT_ is never an issue.  Don't use
/tmp.  Use /var/run or so.

-- 
Daniel Jacobowitz                           Carnegie Mellon University
MontaVista Software                         Debian GNU/Linux Developer



Reply to: