Re: [libvirt] [PATCH 3/5] qemuDomainCreateDeviceRecursive: Don't try to create devices under preserved mount points

2017-05-03 Thread Cedric Bosdonnat
On Fri, 2017-04-28 at 13:22 +0200, Michal Privoznik wrote: > While the code allows devices to already be there (by some > miracle), we shouldn't try to create devices that don't belong to > us. For instance, we shouldn't try to create /dev/shm/file > because /dev/shm is a mount point that is

[libvirt] [PATCH 3/5] qemuDomainCreateDeviceRecursive: Don't try to create devices under preserved mount points

2017-04-28 Thread Michal Privoznik
While the code allows devices to already be there (by some miracle), we shouldn't try to create devices that don't belong to us. For instance, we shouldn't try to create /dev/shm/file because /dev/shm is a mount point that is preserved. Therefore if a file is created there from an outside (e.g. by