,
I tried ./configure --disable-system --enable-virtfs and make. But didnt
face any build failure. Could you please share your build failure
information? virtfs-proxy-helper.1 is created inside the fsdev folder.
Cc: qemu-triv...@nongnu.org
Cc: M. Mohan Kumar mo...@in.ibm.com
Signed-off
Peter Maydell peter.mayd...@linaro.org writes:
How about this approach?
[PATCH] configure: Disable virtfs if softmmu not enabled
Signed-off-by: M. Mohan Kumar mo...@in.ibm.com
---
configure | 11 +--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/configure b/configure
Michael Tokarev m...@tls.msk.ru writes:
11.06.2013 21:23, M. Mohan Kumar wrote:
Peter Maydell peter.mayd...@linaro.org writes:
How about this approach?
Well, this is definitely wrong :)
-if test $softmmu = yes ; then
- if test $virtfs != no ; then
+
+if test $virtfs
Stefan Weil s...@weilnetz.de writes:
This leak was reported by cppcheck.
Signed-off-by: Stefan Weil s...@weilnetz.de
Reviewed-by: M. Mohan Kumar mo...@in.ibm.com
---
fsdev/qemu-fsdev.c |2 ++
1 file changed, 2 insertions(+)
diff --git a/fsdev/qemu-fsdev.c b/fsdev/qemu-fsdev.c
index
Stefan Weil s...@weilnetz.de writes:
The leak was reported by cppcheck.
Function proxy_init also calls g_free for ctx-fs_root.
Avoid reuse of this memory by setting ctx-fs_root to NULL.
Signed-off-by: Stefan Weil s...@weilnetz.de
Reviewed-by: M. Mohan Kumar mo...@in.ibm.com
---
Hi,
I'm
From: M. Mohan Kumar mo...@in.ibm.com
Fix few more memory leaks in virtio-9p-device.c detected using valgrind.
Signed-off-by: M. Mohan Kumar mo...@in.ibm.com
---
hw/9pfs/virtio-9p-device.c | 26 +-
1 file changed, 17 insertions(+), 9 deletions(-)
diff --git a/hw/9pfs
Pattern:
FOO's PCIDeviceInfo method exit is virtio_FOO_exit_pci(), which calls
virtio_FOO_exit() and virtio_exit_pci().
virtio_{net,serial}_exit() call virtio_cleanup().
virtio_blk_exit() doesn't. Why?
virtio-balloon-pci uses virtio_exit_pci() as exit method. No
virtio_cleanup()?
This patch introduce a fallback mechanism for old systems that do not
support utimensat. This will fix build failure with following warnings:
hw/virtio-9p-local.c: In function 'local_utimensat':
hw/virtio-9p-local.c:479: warning: implicit declaration of function
'utimensat'
calls.
Signed-off-by: M. Mohan Kumar mo...@in.ibm.com
---
Makefile.objs |1 +
hw/file-op-9p.h |2 +
hw/virtio-9p-chroot.c | 275 +
hw/virtio-9p.c| 20
hw/virtio-9p.h| 21
5 files changed, 319
Make use of chroot interfaces for passthrough security model to fix the
vulnerability in following symbolic links.
Signed-off-by: M. Mohan Kumar mo...@in.ibm.com
---
hw/virtio-9p-local.c | 284 ++
1 files changed, 218 insertions(+), 66 deletions
alternative handling for UTIME_NOW/OMIT
- Move qemu_utimensat() to cutils.c
V2:
- Introduce qemu_utimensat()
Signed-off-by: Hidetoshi Seto seto.hideto...@jp.fujitsu.com
Looks good to me.
Acked-by: M. Mohan Kumar mo...@in.ibm.com
calls.
Changes from previous version
* Do not send ancillary data if a 9p open/create request fails
* Handle error condition in socket read/write
* Chroot subprocess exits when main qemu process exits
* Return EIO for failed 9p open/create requests
Signed-off-by: M. Mohan Kumar mo...@in.ibm.com
Make use of chroot interfaces for passthrough security model to fix the
vulnerability in following symbolic links.
Signed-off-by: M. Mohan Kumar mo...@in.ibm.com
---
hw/virtio-9p-local.c | 294 ++---
1 files changed, 228 insertions(+), 66 deletions
Add qemu_read_full function
Signed-off-by: M. Mohan Kumar mo...@in.ibm.com
---
osdep.c | 29 +
qemu-common.h |2 ++
2 files changed, 31 insertions(+), 0 deletions(-)
diff --git a/osdep.c b/osdep.c
index 327583b..7046b32 100644
--- a/osdep.c
+++ b/osdep.c
LCREATE function packs address of iounit in the pdu, fix that to send
actual iounit itself.
Signed-off-by: M. Mohan Kumar mo...@in.ibm.com
Acked-by: Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com
---
hw/9pfs/virtio-9p.c |2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git
with fsstress, connectathon, Tuxera POSIX test suite
and LTP FS testcases for all three security models.
M. Mohan Kumar (8):
Implement qemu_read_full
Provide chroot environment server side interfaces
Add client side interfaces for chroot environment
Add support to open a file in chroot
Add qemu_read_full function
Signed-off-by: M. Mohan Kumar mo...@in.ibm.com
---
osdep.c | 32
qemu-common.h |2 ++
2 files changed, 34 insertions(+), 0 deletions(-)
diff --git a/osdep.c b/osdep.c
index 327583b..8d84a88 100644
--- a/osdep.c
+++ b
Implement chroot server side interfaces like sending the file
descriptor to qemu process, reading the object request from socket etc.
Also add chroot main function and other helper routines.
Signed-off-by: M. Mohan Kumar mo...@in.ibm.com
---
Makefile.objs |1 +
hw/9pfs/virtio-9p
Add both server client side interfaces to create regular files in
chroot environment
Signed-off-by: M. Mohan Kumar mo...@in.ibm.com
---
hw/9pfs/virtio-9p-chroot.c | 42 ++
hw/9pfs/virtio-9p-local.c | 22 --
2 files changed, 62
Define QEMU side interfaces used for chroot environment.
Signed-off-by: M. Mohan Kumar mo...@in.ibm.com
---
hw/9pfs/virtio-9p-chroot.c | 78
1 files changed, 78 insertions(+), 0 deletions(-)
diff --git a/hw/9pfs/virtio-9p-chroot.c b/hw/9pfs/virtio
Add both server and client side interfaces to create special files
(directory, device nodes, links and symbolic links)
Signed-off-by: M. Mohan Kumar mo...@in.ibm.com
---
hw/9pfs/virtio-9p-chroot.c | 84 ++-
hw/9pfs/virtio-9p-chroot.h |2 +
hw/9pfs/virtio-9p-local.c
Add chroot functionality for systemcalls that can operate on a file
using relative directory file descriptor.
Signed-off-by: M. Mohan Kumar mo...@in.ibm.com
---
hw/9pfs/virtio-9p-local.c | 222 ++--
1 files changed, 191 insertions(+), 31 deletions
This patch adds both server and client side support to open a file
(directory) in the chroot environment
Signed-off-by: M. Mohan Kumar mo...@in.ibm.com
---
hw/9pfs/virtio-9p-chroot.c | 45 +++--
hw/9pfs/virtio-9p-chroot.h |1 +
hw/9pfs/virtio-9p-local.c
-by: M. Mohan Kumar mo...@in.ibm.com
---
hw/9pfs/virtio-9p-local.c | 19 ++-
1 files changed, 6 insertions(+), 13 deletions(-)
diff --git a/hw/9pfs/virtio-9p-local.c b/hw/9pfs/virtio-9p-local.c
index 08fd67f..d2e32e2 100644
--- a/hw/9pfs/virtio-9p-local.c
+++ b/hw/9pfs/virtio-9p
Hi Blue Swirl,
Thanks for your review comments. I will address these in my next version of
patchset.
M. Mohan Kumar
On Tuesday 18 January 2011 10:38:21 pm Blue Swirl wrote:
On Tue, Jan 18, 2011 at 6:25 AM, M. Mohan Kumar mo...@in.ibm.com wrote:
Add both server client side interfaces
On Thursday 20 January 2011 2:29:54 pm Stefan Hajnoczi wrote:
On Tue, Jan 18, 2011 at 01:54:16PM +0530, M. Mohan Kumar wrote:
-if (lchown(rpath(fs_ctx, path), credp-fc_uid, credp-fc_gid) 0) {
-/*
- * If we fail to change ownership and if we are
- * using
when possible
Changes from version V2
* Treat socket IO errors as fatal, ie qemu will exit
* Split patchset based on chroot side (server) and qemu side(client)
functionalities
M. Mohan Kumar (8):
Implement qemu_read_full
Provide chroot environment server side interfaces
Add client side
Add qemu_read_full function
Signed-off-by: M. Mohan Kumar mo...@in.ibm.com
---
osdep.c | 32
qemu-common.h |2 ++
2 files changed, 34 insertions(+), 0 deletions(-)
diff --git a/osdep.c b/osdep.c
index 327583b..8d84a88 100644
--- a/osdep.c
+++ b
Implement chroot server side interfaces like sending the file
descriptor to qemu process, reading the object request from socket etc.
Also add chroot main function and other helper routines.
Signed-off-by: M. Mohan Kumar mo...@in.ibm.com
---
Makefile.objs |1 +
hw/9pfs/virtio-9p
Define QEMU side interfaces used for chroot environment.
Signed-off-by: M. Mohan Kumar mo...@in.ibm.com
---
hw/9pfs/virtio-9p-chroot.c | 87
1 files changed, 87 insertions(+), 0 deletions(-)
diff --git a/hw/9pfs/virtio-9p-chroot.c b/hw/9pfs/virtio
-by: M. Mohan Kumar mo...@in.ibm.com
---
hw/9pfs/virtio-9p-local.c | 19 ++-
1 files changed, 6 insertions(+), 13 deletions(-)
diff --git a/hw/9pfs/virtio-9p-local.c b/hw/9pfs/virtio-9p-local.c
index c9ece6b..37a2510 100644
--- a/hw/9pfs/virtio-9p-local.c
+++ b/hw/9pfs/virtio-9p
Add both server client side interfaces to create regular files in
chroot environment
Signed-off-by: M. Mohan Kumar mo...@in.ibm.com
---
hw/9pfs/virtio-9p-chroot.c | 41 +
hw/9pfs/virtio-9p-local.c | 22 --
2 files changed, 61
Add both server and client side interfaces to create special files
(directory, device nodes, links and symbolic links)
Signed-off-by: M. Mohan Kumar mo...@in.ibm.com
---
hw/9pfs/virtio-9p-chroot.c | 84 ++
hw/9pfs/virtio-9p-chroot.h |2 +
hw/9pfs/virtio-9p-local.c
This patch adds both server and client side support to open a file
(directory) in the chroot environment
Signed-off-by: M. Mohan Kumar mo...@in.ibm.com
---
hw/9pfs/virtio-9p-chroot.c | 53 ++-
hw/9pfs/virtio-9p-chroot.h |1 +
hw/9pfs/virtio-9p
Add chroot functionality for systemcalls that can operate on a file
using relative directory file descriptor.
Signed-off-by: M. Mohan Kumar mo...@in.ibm.com
---
hw/9pfs/virtio-9p-local.c | 221 +++--
1 files changed, 191 insertions(+), 30 deletions
(fstype_entries, fsle, next);
return 0;
On Tuesday 01 February 2011 4:02:22 pm Daniel P. Berrange wrote:
On Tue, Feb 01, 2011 at 10:55:39AM +0530, M. Mohan Kumar wrote:
Implement chroot server side interfaces like sending the file
descriptor to qemu process, reading the object request
On Wednesday 02 February 2011 3:24:16 pm Stefan Hajnoczi wrote:
On Tue, Feb 1, 2011 at 5:26 AM, M. Mohan Kumar mo...@in.ibm.com wrote:
+/* Receive file descriptor and error status from chroot process */
+static int v9fs_receivefd(int sockfd, int *error)
The return value and int *error
instead of exiting
* Changed data types as suggested by Blue Swirl
* Chroot process reports error through qemu process
Changes from version V2
* Treat socket IO errors as fatal, ie qemu will exit
* Split patchset based on chroot side (server) and qemu side(client)
functionalities
M. Mohan Kumar (8
Add both server client side interfaces to create regular files in
chroot environment
Signed-off-by: M. Mohan Kumar mo...@in.ibm.com
---
hw/9pfs/virtio-9p-chroot-sv.c | 41 +
hw/9pfs/virtio-9p-local.c | 21 +++--
2 files changed, 60
-by: M. Mohan Kumar mo...@in.ibm.com
---
hw/9pfs/virtio-9p-local.c | 19 ++-
1 files changed, 6 insertions(+), 13 deletions(-)
diff --git a/hw/9pfs/virtio-9p-local.c b/hw/9pfs/virtio-9p-local.c
index 9975ed1..9d2d31c 100644
--- a/hw/9pfs/virtio-9p-local.c
+++ b/hw/9pfs/virtio-9p
Define QEMU side interfaces used for chroot environment.
Signed-off-by: M. Mohan Kumar mo...@in.ibm.com
---
Makefile.objs |2 +-
hw/9pfs/virtio-9p-chroot-clnt.c | 96 +++
hw/9pfs/virtio-9p-chroot.h |1 +
3 files changed, 98
Implement chroot server side interfaces like sending the file
descriptor to qemu process, reading the object request from socket etc.
Also add chroot main function and other helper routines.
Signed-off-by: M. Mohan Kumar mo...@in.ibm.com
---
Makefile.objs |1 +
hw/9pfs/virtio
Add chroot functionality for systemcalls that can operate on a file
using relative directory file descriptor.
Signed-off-by: M. Mohan Kumar mo...@in.ibm.com
---
hw/9pfs/virtio-9p-local.c | 222 +++--
1 files changed, 192 insertions(+), 30 deletions
This patch adds both server and client side support to open a file
(directory) in the chroot environment
Signed-off-by: M. Mohan Kumar mo...@in.ibm.com
---
hw/9pfs/virtio-9p-chroot-clnt.c | 22 +---
hw/9pfs/virtio-9p-chroot-sv.c | 26 +++
hw/9pfs/virtio-9p
Add both server and client side interfaces to create special files
(directory, device nodes, links and symbolic links)
Signed-off-by: M. Mohan Kumar mo...@in.ibm.com
---
hw/9pfs/virtio-9p-chroot-clnt.c | 26 ++
hw/9pfs/virtio-9p-chroot-sv.c | 59 ++
hw/9pfs
Add qemu_read_full function
Signed-off-by: M. Mohan Kumar mo...@in.ibm.com
---
osdep.c | 32
qemu-common.h |2 ++
2 files changed, 34 insertions(+), 0 deletions(-)
diff --git a/osdep.c b/osdep.c
index 327583b..8d84a88 100644
--- a/osdep.c
+++ b
On Thursday 17 February 2011 4:19:17 pm Stefan Hajnoczi wrote:
On Wed, Feb 16, 2011 at 12:23 PM, M. Mohan Kumar mo...@in.ibm.com wrote:
+switch (type) {
+case T_MKNOD:
+request.data.type = T_MKNOD;
+break;
+case T_MKDIR:
+request.data.type = T_MKDIR
-by: M. Mohan Kumar mo...@in.ibm.com
---
hw/virtio-9p-debug.c | 14 ++
hw/virtio-9p.c | 50 ++
hw/virtio-9p.h | 30 ++
3 files changed, 94 insertions(+), 0 deletions(-)
diff --git a/hw/virtio
, lock all bytes starting at the location
'start' through to the end of file
proc_id[4] - process id that wants to take lock/owns the task
in case of reply
client[4] - Client id of the system that owns the process
Signed-off-by: M. Mohan Kumar mo...@in.ibm.com
---
hw
-by: M. Mohan Kumar mo...@in.ibm.com
Signed-off-by: Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com
---
hw/virtio-9p-debug.c | 14 ++
hw/virtio-9p.c | 50 ++
hw/virtio-9p.h | 30 ++
3 files
, lock all bytes starting at the location
'start' through to the end of file
proc_id[4] - process id that wants to take lock/owns the task
in case of reply
client[4] - Client id of the system that owns the process
Signed-off-by: M. Mohan Kumar mo...@in.ibm.com
Signed
of the symbolic link referred by fid.
Signed-off-by: M. Mohan Kumar mo...@in.ibm.com
Reviewed-by: Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com
---
hw/virtio-9p-debug.c |8
hw/virtio-9p.c | 44
hw/virtio-9p.h |9 +
3
Make 9P server recognize 9P2000.L protocol version
Signed-off-by: M. Mohan Kumar mo...@in.ibm.com
---
hw/virtio-9p.c |6 +-
hw/virtio-9p.h |6 ++
2 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/hw/virtio-9p.c b/hw/virtio-9p.c
index e5d0112..25bd723 100644
]
files[8] ffree[8] fsid[8] namelen[4]
Signed-off-by: Sripathi Kodi sripat...@in.ibm.com
Signed-off-by: M. Mohan Kumar mo...@in.ibm.com
---
hw/file-op-9p.h |2 +
hw/virtio-9p-local.c |6
hw/virtio-9p.c | 63
any provision to set only mtime or atime. So
change v9fs_wstat_post_chmod function to use utimensat function to change
the atime and mtime fields. If tv_nsec field is set to the special value
UTIME_OMIT, corresponding file time stamp is not updated.
Signed-off-by: M. Mohan Kumar mo...@in.ibm.com
is returned with
the mknod reply message.
Note:
Existing v9fs_do_mknod function is changed to accomodate the dotl mknod
version.
Signed-off-by: M. Mohan Kumar mo...@in.ibm.com
---
hw/virtio-9p.c | 76 ++-
hw/virtio-9p.h | 13 +
2 files
Compute iounit based on the host filesystem block size and pass it to
client with open/create response. Also return iounit as statfs's f_bsize
for optimal block size transfers.
Signed-off-by: M. Mohan Kumar mo...@in.ibm.com
---
hw/virtio-9p.c | 56
Change the v9fs_file_readn function to limit the maximum transfer size
based on the iounit instead of msize.
Also remove the redundant check for limiting the transfer size in
v9fs_file_write. This check is done by p9_client_write.
Signed-off-by: M. Mohan Kumar mo...@in.ibm.com
---
fs/9p
Change the v9fs_file_readn function to limit the maximum transfer size
based on the iounit or msize.
Also remove the redundant check for limiting the transfer size in
v9fs_file_write. This check is done by p9_client_write.
Signed-off-by: M. Mohan Kumar mo...@in.ibm.com
---
fs/9p/vfs_file.c
is selected as the opcode for TMKDIR from the reserved list.
Signed-off-by: M. Mohan Kumar mo...@in.ibm.com
---
hw/virtio-9p-debug.c | 11 +++
hw/virtio-9p.c | 81 ++---
hw/virtio-9p.h |2 +
3 files changed, 89 insertions(+), 5 deletions
with
the mkdir reply message.
Note: 72 is selected as the opcode for TMKDIR from the reserved list.
Signed-off-by: M. Mohan Kumar mo...@in.ibm.com
---
fs/9p/vfs_inode.c | 76 ++-
include/net/9p/9p.h |2 +
include/net/9p/client.h |2 +
net/9p
From c5dca54f67ec6aac16c6c5e09958417b2b3ee5a1 Mon Sep 17 00:00:00 2001
From: M. Mohan Kumar mo...@in.ibm.com
Date: Thu, 4 Mar 2010 14:23:07 +0530
Subject: [PATCH] Check for invalid initrd file
When qemu is invoked with an invalid initrd file, it crashes. Following
patch prints a error message
When qemu is invoked with an invalid initrd file, it crashes. Following
patch prints a error message and exits if an invalid initrd is
specified. Includes changes suggested by JV.
Signed-off-by: M. Mohan Kumar mo...@in.ibm.com
---
hw/pc.c |6 ++
1 files changed, 6 insertions(+), 0
-off-by: M. Mohan Kumar mo...@in.ibm.com
---
hw/9pfs/virtio-9p-local.c | 19 ++-
1 files changed, 6 insertions(+), 13 deletions(-)
diff --git a/hw/9pfs/virtio-9p-local.c b/hw/9pfs/virtio-9p-local.c
index c92c5dd..f5dba35 100644
--- a/hw/9pfs/virtio-9p-local.c
+++ b/hw/9pfs/virtio
Add qemu_read_full function
Signed-off-by: M. Mohan Kumar mo...@in.ibm.com
---
osdep.c | 32
qemu-common.h |2 ++
2 files changed, 34 insertions(+), 0 deletions(-)
diff --git a/osdep.c b/osdep.c
index 327583b..8d84a88 100644
--- a/osdep.c
+++ b
9p Chroot environment needs APIs defined in qemu-thread.c, so enable
CONFIG_THREAD if virtfs is enabled
Signed-off-by: M. Mohan Kumar mo...@in.ibm.com
---
configure |1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/configure b/configure
index 2560357..9eddd38 100755
Implement chroot daemon side interfaces like sending the file
descriptor to qemu process, reading the object request from socket etc.
Also add chroot main function and other helper routines.
Signed-off-by: M. Mohan Kumar mo...@in.ibm.com
---
Makefile.objs |1 +
hw/9pfs/virtio
Add both chroot deamon qemu side interfaces to create regular files in
chroot environment
Signed-off-by: M. Mohan Kumar mo...@in.ibm.com
---
hw/9pfs/virtio-9p-chroot-dm.c | 39 +++
hw/9pfs/virtio-9p-local.c | 21 +++--
2 files changed
QEMU side interfaces to communicate with chroot daemon process.
Signed-off-by: M. Mohan Kumar mo...@in.ibm.com
---
Makefile.objs |2 +-
hw/9pfs/virtio-9p-chroot-qemu.c | 97 +++
hw/9pfs/virtio-9p-chroot.h |1 +
3 files changed
This patch adds both chroot deamon and qemu side support to open a file/
directory in the chroot environment
Signed-off-by: M. Mohan Kumar mo...@in.ibm.com
---
hw/9pfs/virtio-9p-chroot-qemu.c | 24 +++-
hw/9pfs/virtio-9p-chroot.h |2 +-
hw/9pfs/virtio-9p-local.c
Add both chroot deamon and qemu side interfaces to create special files
(directory, device nodes, links and symbolic links)
Signed-off-by: M. Mohan Kumar mo...@in.ibm.com
---
hw/9pfs/virtio-9p-chroot-dm.c | 57
hw/9pfs/virtio-9p-chroot-qemu.c | 19
hw/9pfs
Add chroot functionality for systemcalls that can operate on a file
using relative directory file descriptor.
Signed-off-by: M. Mohan Kumar mo...@in.ibm.com
---
hw/9pfs/virtio-9p-local.c | 227 +++--
1 files changed, 197 insertions(+), 30 deletions
version V2
* Treat socket IO errors as fatal, ie qemu will exit
* Split patchset based on chroot side (server) and qemu side(client)
functionalities
M. Mohan Kumar (9):
Implement qemu_read_full
virtio-9p: Enable CONFIG_THREAD if CONFIG_VIRTFS is enabled
virtio-9p: Provide chroot daemon side
On Thursday 03 March 2011 5:08:10 pm Stefan Hajnoczi wrote:
On Mon, Feb 28, 2011 at 11:22 AM, M. Mohan Kumar mo...@in.ibm.com wrote:
+retval = recvmsg(sockfd, msg, 0);
+if (retval 0) {
+*sock_error = 1;
+return -EIO;
+}
Are we guaranteed
by reusing the virtio-9p-local.c implementation
in chilld side. That may involve breaking down existing local functions?
M. Mohan Kumar
* Changed data types as suggested by Blue Swirl
* Chroot process reports error through qemu process
Changes from version V2
* Treat socket IO errors as fatal, ie qemu will exit
* Split patchset based on chroot side (server) and qemu side(client)
functionalities
M. Mohan Kumar (9):
Implement
9p Chroot environment needs APIs defined in qemu-thread.c, so enable
CONFIG_THREAD if virtfs is enabled
Signed-off-by: M. Mohan Kumar mo...@in.ibm.com
---
configure |1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/configure b/configure
index 2560357..9eddd38 100755
Add qemu_read_full function
Signed-off-by: M. Mohan Kumar mo...@in.ibm.com
---
osdep.c | 32
qemu-common.h |2 ++
2 files changed, 34 insertions(+), 0 deletions(-)
diff --git a/osdep.c b/osdep.c
index 327583b..8d84a88 100644
--- a/osdep.c
+++ b
Implement chroot worker side interfaces like sending the file
descriptor to qemu process, reading the object request from socket etc.
Also add chroot main function and other helper routines.
Signed-off-by: M. Mohan Kumar mo...@in.ibm.com
---
Makefile.objs |1 +
hw/9pfs
This patch adds both chroot worker and qemu side support to open a file/
directory in the chroot environment
Signed-off-by: M. Mohan Kumar mo...@in.ibm.com
---
hw/9pfs/virtio-9p-chroot.c | 28 ++-
hw/9pfs/virtio-9p-chroot.h |2 +-
hw/9pfs/virtio-9p-local.c | 62
QEMU side interfaces to communicate with chroot worker process.
Signed-off-by: M. Mohan Kumar mo...@in.ibm.com
---
Makefile.objs |2 +-
hw/9pfs/virtio-9p-chroot.c | 92
hw/9pfs/virtio-9p-chroot.h |1 +
3 files changed, 94
-off-by: M. Mohan Kumar mo...@in.ibm.com
---
hw/9pfs/virtio-9p-local.c | 19 ++-
1 files changed, 6 insertions(+), 13 deletions(-)
diff --git a/hw/9pfs/virtio-9p-local.c b/hw/9pfs/virtio-9p-local.c
index 904ee71..864334d 100644
--- a/hw/9pfs/virtio-9p-local.c
+++ b/hw/9pfs/virtio
Add both chroot worker qemu side interfaces to create regular files in
chroot environment
Signed-off-by: M. Mohan Kumar mo...@in.ibm.com
---
hw/9pfs/virtio-9p-chroot-worker.c | 36
hw/9pfs/virtio-9p-local.c | 26 --
2
Add both chroot worker and qemu side interfaces to create special files
(directory, device nodes, links and symbolic links)
Signed-off-by: M. Mohan Kumar mo...@in.ibm.com
---
hw/9pfs/virtio-9p-chroot-worker.c | 52
hw/9pfs/virtio-9p-chroot.c| 23 +
hw
Add chroot functionality for systemcalls that can operate on a file
using relative directory file descriptor.
Signed-off-by: M. Mohan Kumar mo...@in.ibm.com
---
hw/9pfs/virtio-9p-local.c | 229 +++--
1 files changed, 199 insertions(+), 30 deletions
QEMU side interfaces to communicate with chroot worker process.
Signed-off-by: M. Mohan Kumar mo...@in.ibm.com
---
Makefile.objs |2 +-
hw/9pfs/virtio-9p-chroot.c | 92
hw/9pfs/virtio-9p-chroot.h |1 +
3 files changed, 94
* Chroot process reports error through qemu process
Changes from version V2
* Treat socket IO errors as fatal, ie qemu will exit
* Split patchset based on chroot side (server) and qemu side(client)
functionalities
M. Mohan Kumar (13):
Implement qemu_read_full
virtio-9p: Enable CONFIG_THREAD
-off-by: M. Mohan Kumar mo...@in.ibm.com
---
hw/9pfs/virtio-9p-local.c | 19 ++-
1 files changed, 6 insertions(+), 13 deletions(-)
diff --git a/hw/9pfs/virtio-9p-local.c b/hw/9pfs/virtio-9p-local.c
index 48ca7ab..65622de 100644
--- a/hw/9pfs/virtio-9p-local.c
+++ b/hw/9pfs/virtio
Add chroot functionality for systemcalls that can operate on a file
using relative directory file descriptor.
Signed-off-by: M. Mohan Kumar mo...@in.ibm.com
---
hw/9pfs/virtio-9p-local.c | 114 +
1 files changed, 104 insertions(+), 10 deletions
Support for removing file or directory in chroot environment. Add
interfaces to remove file/directory in chroot worker and qemu side.
Signed-off-by: M. Mohan Kumar mo...@in.ibm.com
---
hw/9pfs/virtio-9p-chroot-worker.c | 34 ++
hw/9pfs/virtio-9p-chroot.h
Add support to do chmod operation in chroot process.
Signed-off-by: M. Mohan Kumar mo...@in.ibm.com
---
hw/9pfs/virtio-9p-chroot-worker.c | 18 ++
hw/9pfs/virtio-9p-chroot.h|1 +
hw/9pfs/virtio-9p-local.c |5 +++--
3 files changed, 22 insertions(+), 2
Implement chroot worker side interfaces like sending the file
descriptor to qemu process, reading the object request from socket etc.
Also add chroot main function and other helper routines.
Signed-off-by: M. Mohan Kumar mo...@in.ibm.com
---
Makefile.objs |1 +
hw/9pfs
Add support to do chown in chroot process
Signed-off-by: M. Mohan Kumar mo...@in.ibm.com
---
hw/9pfs/virtio-9p-chroot-worker.c | 18 ++
hw/9pfs/virtio-9p-chroot.h|1 +
hw/9pfs/virtio-9p-local.c |9 +
3 files changed, 24 insertions(+), 4 deletions
Add qemu_read_full function
Signed-off-by: M. Mohan Kumar mo...@in.ibm.com
---
osdep.c | 32
qemu-common.h |2 ++
2 files changed, 34 insertions(+), 0 deletions(-)
diff --git a/osdep.c b/osdep.c
index 327583b..8d84a88 100644
--- a/osdep.c
+++ b
QEMU side interfaces to communicate with chroot worker process.
Signed-off-by: M. Mohan Kumar mo...@in.ibm.com
---
Makefile.objs |2 +-
hw/9pfs/virtio-9p-chroot.c | 92
hw/9pfs/virtio-9p-chroot.h |1 +
3 files changed, 94
This patch adds both chroot worker and qemu side support to open a file/
directory in the chroot environment
Signed-off-by: M. Mohan Kumar mo...@in.ibm.com
---
hw/9pfs/virtio-9p-chroot.c | 29 +++
hw/9pfs/virtio-9p-chroot.h |2 +-
hw/9pfs/virtio-9p-local.c | 80
Add both chroot worker qemu side interfaces to create regular files in
chroot environment
Signed-off-by: M. Mohan Kumar mo...@in.ibm.com
---
hw/9pfs/virtio-9p-chroot-worker.c | 36
hw/9pfs/virtio-9p-chroot.h|1 +
hw/9pfs/virtio-9p-local.c
Support renaming a file or directory in chroot envirnoment. Add
interfaces for renaming in chroot worker and qemu side.
Signed-off-by: M. Mohan Kumar mo...@in.ibm.com
---
hw/9pfs/virtio-9p-chroot-worker.c | 17 +
hw/9pfs/virtio-9p-chroot.h|1 +
hw/9pfs/virtio-9p
9p Chroot environment needs APIs defined in qemu-thread.c, so enable
CONFIG_THREAD if virtfs is enabled
Signed-off-by: M. Mohan Kumar mo...@in.ibm.com
---
configure |1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/configure b/configure
index 2560357..9eddd38 100755
Add both chroot worker and qemu side interfaces to create special files
(directory, device nodes, links and symbolic links)
Signed-off-by: M. Mohan Kumar mo...@in.ibm.com
---
hw/9pfs/virtio-9p-chroot-worker.c | 52
hw/9pfs/virtio-9p-chroot.h|5 +++
hw
1 - 100 of 263 matches
Mail list logo