Re: [libvirt] [PATCH 2/3] New utility functions virFileCreate and virDirCreate

2010-01-13 Thread Laine Stump
On 01/13/2010 09:32 AM, Serge E. Hallyn wrote: Quoting Serge E. Hallyn (se...@us.ibm.com): Quoting Laine Stump (la...@laine.org): These functions create a new file or directory with the given uid/gid. If the flag VIR_FILE_CREATE_AS_UID is given, they do this by forking a new process,

Re: [libvirt] [PATCH 2/3] New utility functions virFileCreate and virDirCreate

2010-01-13 Thread Serge E. Hallyn
Quoting Serge E. Hallyn (se...@us.ibm.com): > Quoting Laine Stump (la...@laine.org): > > These functions create a new file or directory with the given > > uid/gid. If the flag VIR_FILE_CREATE_AS_UID is given, they do this by > > forking a new process, calling setuid/setgid in the new process, and >

Re: [libvirt] [PATCH 2/3] New utility functions virFileCreate and virDirCreate

2010-01-13 Thread Serge E. Hallyn
Quoting Laine Stump (la...@laine.org): > These functions create a new file or directory with the given > uid/gid. If the flag VIR_FILE_CREATE_AS_UID is given, they do this by > forking a new process, calling setuid/setgid in the new process, and > then creating the file. This is better than simply

Re: [libvirt] [PATCH 2/3] New utility functions virFileCreate and virDirCreate

2010-01-13 Thread Daniel P. Berrange
On Wed, Jan 13, 2010 at 01:25:06AM -0500, Laine Stump wrote: > These functions create a new file or directory with the given > uid/gid. If the flag VIR_FILE_CREATE_AS_UID is given, they do this by > forking a new process, calling setuid/setgid in the new process, and > then creating the file. This

[libvirt] [PATCH 2/3] New utility functions virFileCreate and virDirCreate

2010-01-12 Thread Laine Stump
These functions create a new file or directory with the given uid/gid. If the flag VIR_FILE_CREATE_AS_UID is given, they do this by forking a new process, calling setuid/setgid in the new process, and then creating the file. This is better than simply calling open then fchown, because in the latter

Re: [libvirt] [PATCH 2/3] New utility functions virFileCreate and virDirCreate

2010-01-12 Thread Daniel P. Berrange
On Mon, Jan 11, 2010 at 12:46:11AM -0500, Laine Stump wrote: > These functions create a new file or directory with the given > uid/gid. If the flag VIR_FILE_CREATE_AS_UID is given, they do this by > forking a new process, calling setuid/setgid in the new process, and > then creating the file. This

[libvirt] [PATCH 2/3] New utility functions virFileCreate and virDirCreate

2010-01-10 Thread Laine Stump
These functions create a new file or directory with the given uid/gid. If the flag VIR_FILE_CREATE_AS_UID is given, they do this by forking a new process, calling setuid/setgid in the new process, and then creating the file. This is better than simply calling open then fchown, because in the latter