[ovs-dev] [PATCH] socket-util-unix: Fix umask race in bind_unix_socket().

YAMAMOTO Takashi yamamoto at valinux.co.jp
Fri Aug 8 11:45:33 UTC 2014


> On Thu, Jul 24, 2014 at 12:53:30PM -0700, Ben Pfaff wrote:
>> The umask is a process-wide value, so bind_unix_socket() races with file
>> creation in other Open vSwitch threads.  This fixes the race.
>> 
>> The workaround for non-Linux systems is not ideal, but I do not know any
>> other general solution.  I tested the workaround only on Linux.
>> 
>> CC: YAMAMOTO Takashi <yamamoto at valinux.co.jp>
>> Signed-off-by: Ben Pfaff <blp at nicira.com>
> 
> I'd appreciate a review of this.

sorry for being irresponsive.  the patch you pushed seems good to me.

YAMAMOTO Takashi




More information about the dev mailing list