commit | 5fd2a45e96670408462e8791415953d9019d1030 | [log] [tgz] |
---|---|---|
author | Pekka Enberg <penberg@kernel.org> | Wed Oct 03 10:54:05 2012 +0300 |
committer | Pekka Enberg <penberg@kernel.org> | Tue Oct 09 09:27:12 2012 +0300 |
tree | 50d147955f2cd93d1b03282a78fdd902ca75feff | |
parent | da22ea8144344b57c88ead0075409746ba93e5a0 [diff] |
kvm tools: Drop lchown() calls from 9p Creating new files in a guest: echo "hello, world" > hello.txt results in EPERM on my machine. The problem is that virtio_p9_create() calls lchown() on UID zero (we are logged in as root in the guest) which obviously doesn't work. In fact, ownership changes can't work unless we have some sort of uid/gid mapping. Therefore, drop the calls to lchown(). Signed-off-by: Pekka Enberg <penberg@kernel.org>