bug-cpio
[Top][All Lists]
Advanced

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

Re: [Bug-cpio] chmod vs fchmod


From: Dmitry V. Levin
Subject: Re: [Bug-cpio] chmod vs fchmod
Date: Sun, 22 Oct 2006 02:44:04 +0400

On Sat, Oct 21, 2006 at 05:52:29PM -0400, Mike Frysinger wrote:
> redhat put together a patch for cpio-2.6 where it would run fchmod() on the 
> output fd rather than closing the fd and doing chmod() on the filename ... 
> the reason for this being the race condition between opening the file and 
> chmod ...

This particular race is also known as CAN-2005-1111, but there are more
known races.

I submitted two patches almost a year ago
(https://savannah.gnu.org/patch/?4006 and https://savannah.gnu.org/patch/?4007)
with fixes...


-- 
ldv

Attachment: pgpIIh5fnCVaP.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]