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

Bug#61801: marked as done (interesting question)



Your message dated Sun, 10 Jun 2001 21:45:31 +0100
with message-id <20010610214531.A10608@polya>
and subject line Fixed
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Darren Benham
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 4 Apr 2000 23:16:59 +0000
Received: (qmail 9033 invoked from network); 4 Apr 2000 23:16:59 -0000
Received: from mserv1b.u-net.net (195.102.240.137)
  by master.debian.org with SMTP; 4 Apr 2000 23:16:59 -0000
Received: from [195.102.198.237] (helo=polya)
	by mserv1b.u-net.net with esmtp (Exim 2.10 #63)
	id 12ccYl-0000D9-00; Wed, 5 Apr 2000 00:16:36 +0100
Received: from jdg by polya with local (Exim 3.12 #1 (Debian))
	id 12ccYo-0001Q8-00; Wed, 05 Apr 2000 00:16:38 +0100
Date: Wed, 5 Apr 2000 00:16:38 +0100
From: Julian Gilbey <J.D.Gilbey@qmw.ac.uk>
To: debian-devel@lists.debian.org, debian-dpkg@lists.debian.org
Cc: Debian bug reports <submit@bugs.debian.org>
Subject: Re: interesting question
Message-ID: <20000405001638.D5215@polya>
References: <20000404124827.A31680@kitenet.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
User-Agent: Mutt/1.0.1i
In-Reply-To: <20000404124827.A31680@kitenet.net>; from joeyh@debian.org on Tue, Apr 04, 2000 at 12:48:27PM -0700

Package: packaging-manual
Version: 3.1.1.1

On Tue, Apr 04, 2000 at 12:48:27PM -0700, Joey Hess wrote to -devel:
> Here's an interesting hypothetical question we came up with at the
> office:
> 
> Suppose a .deb is released that does rm -rf / in its prerm. We know it
> has been installed on a bunch of machines all over the place. How can we
> safely upgrade them?
> 
> [explanation of difficulty snipped]

I just wrote a long thought about similar problems, and then realised
that I didn't understand the packaging manual, section 6.3, para 1.

Could I suggest the following rewording to clarify the issue (which
more clearly describes the behaviour of dpkg):

-----
  1. If a version the package is already installed, call 

       old-prerm upgrade new-version

-  2. If this gives an error (ie, a non-zero exit status), dpkg
-     will attempt instead: 
+  2. If the script runs but exits with a non-zero exit status, dpkg
+     will attempt:

       new-prerm failed-upgrade old-version

  Error unwind, for both the above cases: 

       old-postinst abort-upgrade new-version
-----

Still doesn't solve the problem Joey has, though.  I wonder whether
the possibility of having a "prerm-override" file would help, or
whether it would just complicate things unnecessarily.  Although I
could imagine situations in which non-malicious but still serious bugs
in prerm's could cause similar situations to arise.  Basically, in the
current setup, prerm bugs are mostly unfixable.

   Julian

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

  Julian Gilbey, Dept of Maths, QMW, Univ. of London. J.D.Gilbey@qmw.ac.uk
        Debian GNU/Linux Developer,  see http://www.debian.org/~jdg
  Donate free food to the world's hungry: see http://www.thehungersite.com/
---------------------------------------
Received: (at 61801-done) by bugs.debian.org; 10 Jun 2001 21:32:06 +0000
>From J.D.Gilbey@qmw.ac.uk Sun Jun 10 16:32:06 2001
Return-path: <J.D.Gilbey@qmw.ac.uk>
Received: from mserv1e.vianw.co.uk [::ffff:195.102.240.97] 
	by master.debian.org with esmtp (Exim 3.12 1 (Debian))
	id 159CoY-0005Rv-00; Sun, 10 Jun 2001 16:32:06 -0500
Received: from [195.102.197.228] (helo=polya)
	by mserv1e.vianw.co.uk with esmtp (Exim 3.22 #5)
	id 159CoR-00008D-00
	for 61801-done@bugs.debian.org; Sun, 10 Jun 2001 22:32:00 +0100
Received: from jdg by polya with local (Exim 3.22 #1 (Debian))
	id 159C5T-0002lM-00; Sun, 10 Jun 2001 21:45:31 +0100
Date: Sun, 10 Jun 2001 21:45:31 +0100
From: Julian Gilbey <J.D.Gilbey@qmw.ac.uk>
To: 61801-done@bugs.debian.org
Subject: Fixed
Message-ID: <20010610214531.A10608@polya>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.3.18i
Sender: Julian Gilbey <J.D.Gilbey@qmw.ac.uk>
Delivered-To: 61801-done@bugs.debian.org

This is fixed in the current version of policy (3.5.5.0).

And the malicious prerm code can be solved by having the new version
of the package pre-depend on a package which removes or otherwise
fixes the bad prerm -- it's a bad hack, but would solve the problem.

   Julian

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

         Julian Gilbey, Dept of Maths, Queen Mary, Univ. of London
       Debian GNU/Linux Developer,  see http://people.debian.org/~jdg
  Donate free food to the world's hungry: see http://www.thehungersite.com/



Reply to: