On Wed, Jan 10, 2001 at 02:57:51PM -0800, Joey Hess wrote:
> Joe Drew wrote:
> > Is dpkg-statoverride meant to be used in a package, or only by sysadmins?
> You can use it in a package's postinst if, for example, you ask "should
> this program be suid?", and act on it by changing the permissions.
Eh? Surely you should be asking in the package's preinst?
Ideally, IMHO, there should be a pre-depends on debconf, a debconf
question about the permissions, the package should be distributed with
the binary setuid (?), and if the user's said they want the permissions
different to the default, dpkg-statoverride should be called in preinst.
Actually, there's no *need* to distribute it setuid in this case. I
can't think of any particularly compelling reason to do it either way.
Cheers,
aj
--
Anthony Towns <aj@humbug.org.au> <http://azure.humbug.org.au/~aj/>
I don't speak for anyone save myself. GPG signed mail preferred.
``Thanks to all avid pokers out there''
-- linux.conf.au, 17-20 January 2001
Attachment:
pgpGbvcn1Fcs8.pgp
Description: PGP signature