Re: Packages' use of dpkg-statoverride
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.
> I've got a package which currently asks whether the svgalib binary
> should be installed suid root. The safest way to do this, of course,
> would be to ship it 755, and then add the suid bit later. However,
> on installation, if the user says that the binary should be suid,
> should the postinst scripts call dpkg-statoverride? Or just set the suid
> bit?
Yes, call statoverride, I think.
--
see shy jo
Reply to: