Re: debhelper: dh_fixperms should come after dh_suidregister (was: Re: setgid stuff)
>>>>> "Adam" == Adam Klein <aklein@parsley.cortland.com> writes:
Adam> From the dh_suidregister manpage:
Adam> Also note that all files registered by this program
Adam> will *not* be suid in the resulting .deb file. The postinst
Adam> of the package will set their permissions (even if the user
Adam> doesn't have suidmanager installed).
Adam> dh_suidregister clears the bits after adding the proper
Adam> commands to the scripts.
With all due respect, I think you misunderstood the problem.
The problem here is that "dh_fixperms" runs *before* "dh_suidregister".
This is how dh_make, from slink does it. I have heard potato
might be that same.
1. dh_fixperms removes the setuid bit.
2. dh_suidregister fails to register the program, since the setuid
bit was already removed. dh_suidregister cannot remove the
suid bit, as it was already removed.
This seems like a bug in dh_make. dh_fixperms should run after
dh_suidregister, or not at all.
--
Brian May <bam@debian.org>
Reply to: