On Wed, Jul 23, 2014 at 07:01:06AM -0600, Eric Blake wrote:
On 07/23/2014 03:25 AM, Daniel P. Berrange wrote:
> We could however use umask() here if you use a virFork() to start a
> single threaded process. Set umask, create the socket, and then exit,
> allowing the parent to continue.
>
Similar to what we already do in virfile.c for virFileAccessibleAs,
virFileOpenAs, and virDirCreate.
Oh, I had the feeling that I saw such scenario somewhere. And now
that I have v3 of the patches working, I won't be able to get some
kind of abstracting this out of my head.
Martin