[PATCH] elfcompress: Swap fchmod and fchown calls on new file.

Mark Wielaard mark@klomp.org
Sun Jul 22 08:07:00 GMT 2018

On Sat, Jul 21, 2018 at 05:05:43PM +0200, Igor Gnatenko wrote:
> On Sat, Jul 21, 2018 at 4:56 PM Mark Wielaard <mark@klomp.org> wrote:
> > Calling fchmod with a suid bit on a file might silently fail or the suid
> > bit might be slilently cleared by a call to fchown if already set. Swap
> > the calls so that the owner is set first and then set the suid bit.
> >
> > https://bugzilla.redhat.com/show_bug.cgi?id=1607044
> Reported-and-tested-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>

Thanks for testing.
Pushed to master.



More information about the Elfutils-devel mailing list