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

Ben Pfaff blp at nicira.com
Mon Aug 4 21:42:50 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.



More information about the dev mailing list