]> git.karo-electronics.de Git - karo-tx-linux.git/commit
kvm tools: Drop lchown() calls from 9p
authorPekka Enberg <penberg@kernel.org>
Wed, 3 Oct 2012 07:54:05 +0000 (10:54 +0300)
committerPekka Enberg <penberg@kernel.org>
Tue, 9 Oct 2012 06:27:12 +0000 (09:27 +0300)
commit5fd2a45e96670408462e8791415953d9019d1030
tree50d147955f2cd93d1b03282a78fdd902ca75feff
parentda22ea8144344b57c88ead0075409746ba93e5a0
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>
tools/kvm/virtio/9p.c